> On Apr 6, 2015, at 10:15 AM, Quincey Morris 
> <quinceymor...@rivergatesoftware.com> wrote:
> 
>> On Apr 6, 2015, at 09:19 , Gerriet M. Denkmann <gerr...@mdenkmann.de> wrote:
>> 
>> Where is my bicycle gone? What am I doing wrong?
> 
> The problem is that it’s unclear whether the “characters” in NSCharacterSet 
> are internally UTF-16 code units, UTF-32 code units, Unicode code points, or 
> something else. According to the NSCharacterSet documentation:

I'm not an expert here, but my understanding is that when Cocoa says 
"character" it usually means "UTF-16 code unit". @"🚲".length == 2, for example. 
Cocoa's string API designed when Unicode was still a true 16-bit character set.


-- 
Greg Parker     gpar...@apple.com     Runtime Wrangler



_______________________________________________

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

Reply via email to