Re: Initializing unichar variable with a human readable letter
Re: Initializing unichar variable with a human readable letter
- Subject: Re: Initializing unichar variable with a human readable letter
- From: Alastair Houghton <email@hidden>
- Date: Sun, 18 Jul 2010 17:34:24 +0100
On 18 Jul 2010, at 09:38, vincent habchi wrote:
> Since I use the unichar to make comparisons, I could also have initialized a custom NSCharacterSet with "é", but, as we say here in France: "it's like using a bulldozer to break a nut shell".
It's worth perhaps pointing out that comparing with the unichar 'é' (U+00E9) won't pick up the equivalent sequence ('e', U+0301). i.e. unless you know that all 'é' characters in your input are precomposed, you will miss some of them.
You might, therefore, be better using NSString...
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden