A low-level, non-allocating CSV tokenizer for Zig that reads any std.Io.Reader and yields tokens.
v0.4.0
a98a6ae4 · Jeffrey C. Ollie ·

zig-csv 0.4.0

v0.3.0
75c0ba8d · Jeffrey C. Ollie ·

zig-csv 0.3.0

v0.2.1
ee1c1d02 · Jeffrey C. Ollie ·

zig-csv 0.2.1

v0.2.0
c79d0b2d · Jeffrey C. Ollie ·

zig-csv 0.2.0

Adds a strict .crlf record terminator for RFC 4180's reading, where only the pair ends a record. Makes CsvConfig.quote work: it was only half consulted, so any value but the default misparsed. Distinguishes UnclosedQuote from ShortBuffer, so a malformed file is not reported as an undersized buffer. Consumes a UTF-8 byte order mark by default, with skip_bom to turn it off.

v0.1.0
a4fe5436 · Jeffrey C. Ollie ·

zig-csv 0.1.0

Accepts CR, LF, or CRLF as the record terminator, configured through the new RowSeparator rather than a single byte. Parses a final record that the input does not terminate. Scans unquoted fields through a lookup table, which is worth about 179% on plain CSV and 277% on long fields.