• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: camelCase
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: camelCase


  • Subject: Re: camelCase
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 17 Jan 2012 18:01:39 +1100

On 17/01/2012, at 5:21 PM, BareFeetWare wrote:

> For the record, my pure AppleScript solution seems to work fine:
>
> CamelCase("The people of Neuchâtel might not be impressed")
>
> gives:
>
> thePeopleOfNeuchâtelMightNotBeImpressed

But only because there were no accented characters at the beginning of those words. Throw in a word like, oh, äpfel, and it fails (in the handlers for changing case that you posted).

The point of having handlers in libraries, it seems to me, is to have code that just works, and doesn't need thinking about. Code that only works in English doesn't pass that test, IMO.

> While I'm here,I should also point out that there have been at least three different interpretations of what camelCase is, by posters on this thread.

Yep, although I think the initial post made clear that the request was actually for what is more generally referred to as title case. The example given was "this example please" -> "This Example Please".


--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: camelCase
      • From: Christopher Stone <email@hidden>
References: 
 >ScriptingAddition for camelcase (From: Ronald Hofmann <email@hidden>)
 >Re: ScriptingAddition for camelcase (From: BareFeetWare <email@hidden>)
 >Re: ScriptingAddition for camelcase (solved via PHP) (From: Ronald Hofmann <email@hidden>)
 >Re: ScriptingAddition for camelcase (solved via PHP) (From: Shane Stanley <email@hidden>)
 >camelCase (From: BareFeetWare <email@hidden>)

  • Prev by Date: camelCase
  • Next by Date: Re: camelCase
  • Previous by thread: camelCase
  • Next by thread: Re: camelCase
  • Index(es):
    • Date
    • Thread