On Oct 2, 2009, at 4:19 PM, Alex Kac wrote:

Yes! In any case, I'm sure libcsv is more powerful and correct, but the category there worked for my purposes working with several cloud services.

You need only address quoted fields, line breaks within fields, respect character encodings, and line ending variations (CR/LF/CR+LF). Cocoa handles two of these four automagically (in most cases for character encodings, all cases for line endings). The parsing category on macresearch.org adds the other two.

I'm fascinated by the NSMutableCharacterSet efficiency issue but the category seems to work quickly on impressively-sized files (100,000 records with 100 fields, with reasonably long text in the fields), despite its memory inefficiencies. I'll be giving it a test with Mike's suggested modification to see how much better it runs, though. :-)

--
I.S.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to