• 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: NSScanner Oddities
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: NSScanner Oddities
  • Next by Date: Re: Newbie with stupid question cont.
  • Previous by thread: Re: NSScanner Oddities
  • Next by thread: Memory Requirements
  • Index(es):
    • Date
    • Thread