Re: String parsing advice...
Re: String parsing advice...
- Subject: Re: String parsing advice...
- From: Alastair Houghton <email@hidden>
- Date: Wed, 12 Dec 2007 12:14:25 +0000
On 12 Dec 2007, at 12:11, I. Savant wrote:
HI. I have a string I need to parse which is a comma separated list
of variously typed elements... eg.
.... so you're looking for a CSV (comma separated value) parser?
http://www.google.com/search?client=safari&rls=en-us&q=csv+parser&ie=UTF-8&oe=UTF-8
There are plenty of examples out there that correctly handle
situations where separators/delimiters are inside quotes, etc.
More pertinently, there are plenty of Cocoa implementations already:
<http://www.google.co.uk/search?hl=en&q=cocoa+csv>
Not that coding such a parser is difficult anyway, especially using
NSScanner and NSCharacterSet.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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