Parses a complete CSV document including header and all data rows.
Parses a complete CSV document including header and all data rows.
Value parameters
config
the CSV configuration
input
the full CSV input string
Attributes
Returns
Right((header, dataRows)) on success where header contains column names (empty if config.hasHeader is false) and dataRows contains all data rows, or Left(CsvError.ParseError(...)) on malformed input
Parses a single CSV row starting at the given offset.
Parses a single CSV row starting at the given offset.
Value parameters
config
the CSV configuration controlling delimiter and quoting
input
the full CSV input string
offset
the character position to start parsing from
Attributes
Returns
Right((fields, newOffset)) on success where fields contains the parsed field values and newOffset is the position after the consumed row, or Left(CsvError.ParseError(...)) on malformed input