Re: How to detect curly quotes

2009-04-01 Thread Dave DeLong
Just to chime in The RegexKit linked below is absolutely FANTASTIC. I use it pretty much any time I need to do beyond-basic text manipulation. RegexKitLite is some NSString categories, allowing you to do things like [myString isMatchedByRegex:@"some regex"] and so on. It's incredibl

Re: How to detect curly quotes

2009-04-01 Thread John Engelhart
On Tue, Mar 31, 2009 at 6:21 PM, Steve Cronin wrote: > Folks; > > I'm reading input from a text file (stringWithContentsOfFile) I have no > control over. > Testing is going well until a I encounter a phrase is wrapped in curly > quotes. > (Note phrases wrapped in straight quotes are fine) > > Wit

Re: How to detect curly quotes

2009-03-31 Thread Greg Guerin
Steve Cronin wrote: I'm reading input from a text file (stringWithContentsOfFile) I have no control over. Testing is going well until a I encounter a phrase is wrapped in curly quotes. (Note phrases wrapped in straight quotes are fine) Without trying to digest the entirety of the Mac OS Tex

Re: How to detect curly quotes

2009-03-31 Thread Nick Zitzmann
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 0x

How to detect curly quotes

2009-03-31 Thread Steve Cronin
Folks; I'm reading input from a text file (stringWithContentsOfFile) I have no control over. Testing is going well until a I encounter a phrase is wrapped in curly quotes. (Note phrases wrapped in straight quotes are fine) Without trying to digest the entirety of the Mac OS Text Encoding