Subject: Re: How to detect curly quotes




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@xxxxxxxxxxxxxxx)

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/maillists%40codeha.us

This email sent to maillists@xxxxxxxxx

...



Privacy