[fpc-pascal] CSV via PCRE
S. Fisher
expandafter at yahoo.com
Sat Nov 10 23:39:52 CET 2007
--- Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
> OK, while we are busy with show-and-tell... Then have a look at my
> token library implementation.
>
> http://tinyurl.com/395vgp
>
> Sample Usage:
>
> tokenizer := TTokens.Create(FieldSpecLine, ', ', '"', '"', '\',
> tsMultipleSeparatorsBetweenTokens);
> try
> lField := tokenizer.Token(2);
> lAnotherField := tokenizer.Token(4);
> finally
> tokenizer.Free;
> end;
That's not a working sample. It has no CSV record to parse.
Give a working program that we can run with no modifications
whatsoever; parse an actual CSV record; print every field
in the record. That's what my sample did.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the fpc-pascal
mailing list