• 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: Working with 32-bit Unicode (NSString stringWithUTF32String: (const UTF32Char *) bytes needed)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Working with 32-bit Unicode (NSString stringWithUTF32String: (const UTF32Char *) bytes needed) (From: Andrew Thompson <email@hidden>)

  • Prev by Date: Re: Current Selector
  • Next by Date: Re: Cocoa Text Handling Crashes
  • Previous by thread: Re: Working with 32-bit Unicode (NSString stringWithUTF32String: (const UTF32Char *) bytes needed)
  • Next by thread: foundation kit (help i'm new to cocoa)
  • Index(es):
    • Date
    • Thread