• 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: NSString really Unicode?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: NSString really Unicode? (From: Ondra Cada <email@hidden>)
 >Re: NSString really Unicode? (From: "James J. Merkel" <email@hidden>)

  • Prev by Date: Re: Clicking Dock Icon creates a new window
  • Next by Date: Re: What's most common cause of SIGSEGV and SIGBUS
  • Previous by thread: Re: NSString really Unicode?
  • Next by thread: Re: NSString really Unicode?
  • Index(es):
    • Date
    • Thread