On Mar 31, 2009, at 4:21 PM, Steve Cronin wrote:
Without trying to digest the entirety of the Mac OS Text Encoding system, can someone suggest a simple way to detect these characters?
You can use NSScanner with a character set containing quote characters. The ones you probably want are 0x201C and 0x201D, but if you need to scan foreign language strings as well, then you'll also need to add French-style quotes, Japanese-style quotes, etc...
Nick Zitzmann <http://www.chronosnet.com/> _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com