• 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: using UTF-32 in NSString.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: using UTF-32 in NSString.


  • Subject: Re: using UTF-32 in NSString.
  • From: Aki Inoue <email@hidden>
  • Date: Mon, 28 Jun 2010 15:52:56 -0700

CFStringGetSurrogatePairForLongCharacter is an inline function.  You can just copy the definition to your project (with warning once your baseline become SL and later).

Aki

On Jun 28, 2010, at 3:17 PM, Georg Seifert wrote:

>
>> You can do something like this:
>> UniChar characters[2];
>> CFIndex length = (CFStringGetSurrogatePairForLongCharacter(0x1ABCD, characters) ? 2 : 1);
>>
>> CFStringCreateWithCharacters(NULL, characters, length);
>>
>> Aki
>
> Is there anything like this in Leopard. This functions are new in Snow Leopard.
>
> Thanks for all the answers.
>
> Georg_______________________________________________
>
> 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

References: 
 >using UTF-32 in NSString. (From: Georg Seifert <email@hidden>)
 >Re: using UTF-32 in NSString. (From: Aki Inoue <email@hidden>)
 >Re: using UTF-32 in NSString. (From: Georg Seifert <email@hidden>)

  • Prev by Date: Re: inference of block return type
  • Next by Date: Re: Unstuffing my build
  • Previous by thread: Re: using UTF-32 in NSString.
  • Next by thread: Re: using UTF-32 in NSString.
  • Index(es):
    • Date
    • Thread