• 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: Which Foundation classes should I use for parsing text from a file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Which Foundation classes should I use for parsing text from a file? (From: "Michael A. Crawford" <email@hidden>)

  • Prev by Date: Which Foundation classes should I use for parsing text from a file?
  • Next by Date: Re: NSRuntime.loadLibrary(/usr/lib/java/libObjCJava.dylib) error
  • Previous by thread: Which Foundation classes should I use for parsing text from a file?
  • Next by thread: Re: Which Foundation classes should I use for parsing text from a file?
  • Index(es):
    • Date
    • Thread