• 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: How to detect curly quotes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to detect curly quotes (From: Steve Cronin <email@hidden>)

  • Prev by Date: How to detect curly quotes
  • Next by Date: Re: Shortcut handling in different keyboard layouts
  • Previous by thread: How to detect curly quotes
  • Next by thread: Re: How to detect curly quotes
  • Index(es):
    • Date
    • Thread