• 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: NSString's compare: doesn't work...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString's compare: doesn't work...


  • Subject: Re: NSString's compare: doesn't work...
  • From: Bob Ippolito <email@hidden>
  • Date: Fri, 25 Feb 2005 01:51:48 -0500


On Feb 25, 2005, at 1:21 AM, Simon Boissonnault wrote:

It seems that NSString's compare: method can't solve one of my problem, and now I'm wondering if I'll have to reinvent the wheel or not... It's about accented characters... When I compare, any accented letter must NOT match a non accented one. Yet, compare: does this, partially...

For example : é = e, but é != ê. While e != é, and e != ê.

I'm stuck...

Use compare:options:range:locale: with NSLiteralSearch or isEqual:

-bob

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSString's compare: doesn't work... (From: Simon Boissonnault <email@hidden>)

  • Prev by Date: NSString's compare: doesn't work...
  • Next by Date: Re: Re: Correct usage of replaceOccurencesOfString:withString:options:range
  • Previous by thread: NSString's compare: doesn't work...
  • Next by thread: Re: Re: Correct usage of replaceOccurencesOfString:withString:options:range
  • Index(es):
    • Date
    • Thread