• 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: Where is my bicycle?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where is my bicycle?


  • Subject: Re: Where is my bicycle?
  • From: Michael Crawford <email@hidden>
  • Date: Mon, 06 Apr 2015 17:02:17 -0700

If you're unable to do what you need with Cocoa, maybe it would work to use ICU.


Michael David Crawford, Consulting Software Engineer
email@hidden
http://www.warplife.com/mdc/

   Available for Software Development in the Portland, Oregon Metropolitan
Area.


On Mon, Apr 6, 2015 at 4:57 PM, Quincey Morris
<email@hidden> wrote:
> On Apr 6, 2015, at 16:29 , pscott <email@hidden> wrote:
>>
>> But what you were describing *would* be UCS-2. To claim UTF-16 support, variable length encoding must be handled.
>
> It's pretty much understood -- on this list -- that NSString is based on UTF-16, so we tend to cut the corner that's bothering you. This is complicated by the fact that NSString is a bit weird. Its underlying representation is UTF-16 strings, but its API is "array of UTF-16 code units". That means you can create an invalid UTF-16 string with the NSString API. The fact that we're not supposed to do that is also pretty much understood.
>
> This messiness, along with the use of the ambiguous word "character" or "Unicode character" in the documentation, is all for historical reasons.
>
> NSCharacterSet is something else again. We don't actually know whether:
>
> -- it's implemented as a set of UTF-16 code units, instead of code points
>
> -- it handles UTF-16 surrogate pairs properly, in which of its API methods
>
> -- it handles UTF-32 code units properly, in which of its API methods
>
> -- it has bugs that prevent it from doing what it's intended to do, whatever that is
>
> Greg has basically given us the answers: "not code units", "possibly", "it's supposed to", and "probably". :)
>
>
>
> _______________________________________________
>
> 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: 
 >Where is my bicycle? (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Where is my bicycle? (From: Quincey Morris <email@hidden>)
 >Re: Where is my bicycle? (From: Greg Parker <email@hidden>)
 >Re: Where is my bicycle? (From: Greg Parker <email@hidden>)
 >Re: Where is my bicycle? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Where is my bicycle?
  • Next by Date: Making an array property without a backing store. How?
  • Previous by thread: Re: Where is my bicycle?
  • Next by thread: Re: Where is my bicycle?
  • Index(es):
    • Date
    • Thread