[Biococoa-dev] first non-whitespace character

Koen van der Drift kvddrift at earthlink.net
Mon Nov 29 20:00:38 EST 2004

On Nov 29, 2004, at 8:12 AM, Alexander Griekspoor wrote:

> I believe NSString's rangeOfCharacterFromSet: should get you there 
> (there are more other options if needed in two extended methods). Use 
> [NSCharacterSet alphanumericCharacterSet] as the set, and I believe 
> you should get the range of the first character that it will meet. 
> Check out the other "default sets" for sets that might proove a better 
> or faster (smaller) option.

Of course!  I was looking at NSScanner, but didn't see anything there 
that would work.


- Koen.

More information about the Biococoa-dev mailing list