Re: NSString really Unicode?
Re: NSString really Unicode?
- Subject: Re: NSString really Unicode?
- From: Clark Cox <email@hidden>
- Date: Sat, 13 Mar 2004 20:31:10 -0500
On Mar 13, 2004, at 09:22, James J. Merkel wrote:
>
Ok, I stand corrected on that. You can prepend the correct BOM and
>
read a LE string.
>
>
One more thing -- if you have a Unicode string aString, the following
>
will work:
>
>
[aString isEqualToString:@"Jim"]; -- even when aString uses, for
>
example, 16-bit characters while @"Jim" uses 7-bit ASCII characters.
Not quite, the both use 16-bit characters (at least when viewed from
the outside). It doesn't matter how an NSString is created, it always
presents the same API, and has behavior identical to any other
NSString. In this respect, NSString is a perfect example of
encapsulation and data-hiding.
--
Clark S. Cox III
email@hidden
http://homepage.mac.com/clarkcox3/
http://homepage.mac.com/clarkcox3/blog/B1196589870/index.html
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.