Re: NSScanner Oddities
Re: NSScanner Oddities
- Subject: Re: NSScanner Oddities
- From: Evan Gross <email@hidden>
- Date: Tue, 19 Mar 2002 00:45:40 -0500
On 3/18/02 10:39 PM, "Brock Brandenberg" <email@hidden> wrote:
>
I am trying to trim leading and trailing whitespace from some text
>
objects, but I'm having difficulty understanding why NSScanner skips
>
some of the characters it does.
>
You might want to check out a Core Foundation function, found in CFString.h.
Might do just what you want without messing with NSScanner:
// CFString.h has a nice function to do this...
CFStringTrimWhitespace((CFMutableStringRef) theNSString);
Worked for me...
Evan Gross
Rainmaker Research Inc.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.