On Jul 21, 2012, at 6:26 PM, Alex Kac <a...@webis.net> wrote: > I'm creating an index for a table that we're sorting. Sorting using localized > compare will properly compare ç with c. But then my index shows both c and ç. > Given that I'm simply taking the first character of the string, how can I get > the letter "C" when the string starts with "Ç"?
You will probably want to do your comparisons based on strings that you've folded via -stringByFoldingWithOptions:locale:, and i fyou fold with diacritic insensitivity then you should fold out the cedillas. -- David Duncan _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com