• 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: localizedCompare: with Thai
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: localizedCompare: with Thai


  • Subject: Re: localizedCompare: with Thai
  • From: Deborah Goldsmith <email@hidden>
  • Date: Wed, 15 Apr 2009 16:01:39 -0700

Yes, it's correct behavior. localizedCompare: compares logically, not visually.

If you did a diacritic-insensitive compare, they would compare equal, because MAI EK is primary ignorable.

Deborah Goldsmith
Apple Inc.
email@hidden

On Apr 15, 2009, at 12:13 AM, Gerriet M. Denkmann wrote:

This is the logical order of the Thai word for "low":
THAI CHARACTER TO TAO, THAI CHARACTER MAI EK, THAI CHARACTER SARA AM

and this is the order usually used in writing (bottom to top):
THAI CHARACTER TO TAO, THAI CHARACTER SARA AM, THAI CHARACTER MAI EK.

Both strings look (at least in 10.5.6) identical - with the MAI EK correctly on top of SARA AM.

But localizedCompare: thinks that they are not (i.e. does not return NSOrderedSame).
Is this correct?


Kind regards,

Gerriet.

_______________________________________________

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

_______________________________________________

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


  • Follow-Ups:
    • Re: localizedCompare: with Thai
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >localizedCompare: with Thai (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Reading in dictionary from txt file: options for speed
  • Next by Date: Re: Daylight Savings Time
  • Previous by thread: localizedCompare: with Thai
  • Next by thread: Re: localizedCompare: with Thai
  • Index(es):
    • Date
    • Thread