Re: Working with 32-bit Unicode (NSString stringWithUTF32String: (const UTF32Char *) bytes needed)
Re: Working with 32-bit Unicode (NSString stringWithUTF32String: (const UTF32Char *) bytes needed)
- Subject: Re: Working with 32-bit Unicode (NSString stringWithUTF32String: (const UTF32Char *) bytes needed)
- From: Douglas Davidson <email@hidden>
- Date: Tue, 7 Jan 2003 12:55:12 -0800
On Monday, January 6, 2003, at 06:29 PM, Andrew Thompson wrote:
We use UTF-16, so you can just use surrogate pairs. NSLayoutManager
et
al. understand them. I'm not sure if we have anything public for
bulk-converting 32-bit data, though.
As I understand it that would require I have a Big Honking Table (tm)
of composed char <-> surrogate pair mappings, if I want to be able to
handle the general case and not just a few characters of interest. Is
such a thing readily available?
No, no, it's just a simple bit function, just like for UTF-8. See
www.unicode.org for details.
Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.