Re: How to detect curly quotes
Re: How to detect curly quotes
- Subject: Re: How to detect curly quotes
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 31 Mar 2009 16:39:33 -0600
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 (email@hidden)
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:
This email sent to email@hidden