Re: using UTF-32 in NSString.
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