• 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: Initializing unichar variable with a human readable letter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Initializing unichar variable with a human readable letter (From: vincent habchi <email@hidden>)
 >Re: Initializing unichar variable with a human readable letter (From: Ken Thomases <email@hidden>)
 >Re: Initializing unichar variable with a human readable letter (From: vincent habchi <email@hidden>)

  • Prev by Date: Re: HTTP Pipe lining communication in iPhone application
  • Next by Date: Re: NSInteger compare - Help Needed
  • Previous by thread: Re: Initializing unichar variable with a human readable letter
  • Next by thread: Re: Initializing unichar variable with a human readable letter
  • Index(es):
    • Date
    • Thread