Skip to main content

Module csv

Module csv 

Source
Expand description

Comma-separated values (CSV) fields, written and read as RFC 4180 describes them.

Enums§

CsvError
Text that is not valid CSV. Each line number counts from 1.

Functions§

escape_field
Returns field quoted when it holds a comma, a quote or a line break, with each inner quote doubled.
fmt_f64
Returns value as a CSV field, with full round-trip precision and no trailing .0 on a whole number.
parse_records
Splits text into records of fields, undoing escape_field.