Re: NSScanner question
Re: NSScanner question
- Subject: Re: NSScanner question
- From: Koen van der Drift <email@hidden>
- Date: Tue, 19 Mar 2013 22:26:01 -0400
I agree with you guys as well about the limits of NSScanner. In this case it is a fairly simple extraction of a few substrings for a short string, and it works just fine with the NSScanner.
- Koen.
On Mar 19, 2013, at 9:37 PM, Jens Alfke <email@hidden> wrote:
>
> On Mar 19, 2013, at 4:37 PM, Graham Cox <email@hidden> wrote:
>
>> I don't find NSScanner all that useful for searching for specific strings in a stream.
>
> Agreed. There is a very narrow range of use cases for NSScanner — simple searches can be done with NS[Mutable]String directly, and more sophisticated ones tend to require (or be easier with) NSRegularExpression. I’ve only ended up using NSScanner a handful of times, ever.
>
> —Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden