• 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: Given NSString containing a letter like Ç, how do I convert that to a C?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Given NSString containing a letter like Ç, how do I convert that to a C?


  • Subject: Re: Given NSString containing a letter like Ç, how do I convert that to a C?
  • From: Alex Kac <email@hidden>
  • Date: Sat, 21 Jul 2012 21:35:01 -0500

Yup. That's what I was looking for. The word "Folding" just didn't register with me as what I was looking for as I searched the docs. Thanks!

On Jul 21, 2012, at 8:57 PM, David Duncan <email@hidden> wrote:

> On Jul 21, 2012, at 6:26 PM, Alex Kac <email@hidden> 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
>

Alex Kac - President and Founder
Web Information Solutions, Inc.

"Patience is the companion of wisdom."
--Anonymous





_______________________________________________

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: 
 >Given NSString containing a letter like Ç, how do I convert that to a C? (From: Alex Kac <email@hidden>)
 >Re: Given NSString containing a letter like Ç, how do I convert that to a C? (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Given NSString containing a letter like Ç, how do I convert that to a C?
  • Next by Date: Where do you specify the string that explains why your app wants push notifications?
  • Previous by thread: Re: Given NSString containing a letter like Ç, how do I convert that to a C?
  • Next by thread: Where do you specify the string that explains why your app wants push notifications?
  • Index(es):
    • Date
    • Thread