Re: camelCase
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