Re: Which Foundation classes should I use for parsing text from a file?
Re: Which Foundation classes should I use for parsing text from a file?
- Subject: Re: Which Foundation classes should I use for parsing text from a file?
- From: Filip van der Meeren <email@hidden>
- Date: Fri, 19 Jun 2009 17:06:17 +0200
You have 2 options:
NSScanner or
CFStringTokenizerRef
I prefer the NSScanner for regular parsing, but if you want to parse
for words, then you should opt for the Tokenizer...
Filip van der Meeren
On 19 Jun 2009, at 16:58, Michael A. Crawford wrote:
My NS class vocabulary is a little shallow when it comes to text
processing. I'm sure that there are classes in Foundation that can
be used to put together a text processing application in short
order, I just don't know what they are. I'm looking through the
docs now, but I'm kind of in a hurry and would prefer to minimize
the trial-error duration of my current endeavor.
So, which class or combination of classes do you recommend for read
in ASCII text from a file and them parsing it out based on a given
structure?
-Michael
_______________________________________________
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
_______________________________________________
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