Re: Separate string/file into "words"
Re: Separate string/file into "words"
- Subject: Re: Separate string/file into "words"
- From: Chas Spillar <email@hidden>
- Date: Mon, 27 Mar 2006 17:59:24 -0800
- Thread-topic: Separate string/file into "words"
I think there is an NSScanner class that may be more of what you want...
Chas.
> From: Will Koffel <email@hidden>
> Date: Mon, 27 Mar 2006 14:02:32 -0500
> To: Cocoa Cocoa-Dev <email@hidden>
> Subject: Separate string/file into "words"
>
> I'm wondering if there's a tricky way that I'm missing to split a
> file on whitespace. NSString's componentsSeparatedByString:(NSString
> *) is a little unflexible in that regards. Something more like
> componentsSeparatedByCharacterSet:(NSCharacterSet *) that split on
> any of the included characters?
>
> Couldn't find any examples online, thought I'd ask before
> implementing myself (and having to sweat the performance implications
> I might introduce).
>
> -Will
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden