I stand corrected.
It does read into a buffer, then parse one character at a time. Perhaps my function is slow because I read one character at a time instead of reading into a buffer.
Phil
On 2/10/07, Phil Dawes <pdawes@users.sf.net> wrote:
Phil Bewig wrote:
>
> Based on my very quick reading, it looks like libcsv doesn't allow
> embedded newlines, doesn't handle odd end-of-line conventions, and hard
> codes the comma as field separator. Perhaps my code is slower because
> it does all these things?
>
Hi Phil,
I might be missing something, but I think it does everything except
allow other field seperators. It also parses one character at a time.
See the 'parse_csv' c function in:
http://www.phildawes.net/2007/gambit-csv/0.1/csv.scm
Cheers,
Phil