Re: NSString really Unicode?
Re: NSString really Unicode?
- Subject: Re: NSString really Unicode?
- From: Ondra Cada <email@hidden>
- Date: Sat, 13 Mar 2004 18:16:33 +0100
Jim,
On Saturday, Mar 13, 2004, at 15:22 Europe/Prague, James J. Merkel
wrote:
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.
Sure. The trick is, there is no "Unicode string" or "7-bit ASCII
string". All NSStrings are equal -- in principle, they are all Unicode
strings, regardless how they happened to be created (the actual storage
needs not be Unicode, but that's encapsulated and thus unimportant).
Welcome in the charm of a proper object-oriented API ;)
---
Ondra Hada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.