parsing/csv_parse_utils
library
Classes
-
CsvParseResult
-
The outcome of parseCsv: the successfully-parsed rows plus a per-row
errors list for the rows that failed validation.
-
CsvRowError
-
A single row that failed structural validation during parseCsv, kept so
the import can continue and report every bad row at once instead of aborting
on the first one.
Functions
-
parseCsv(String input, {String delimiter = ',', int? expectedColumns})
→ CsvParseResult
-
Parses a multi-line CSV
input, collecting per-row errors instead of
throwing on the first bad row — the shape a user-facing import needs so it
can surface every problem at once.
-
parseCsvLine(String line, {String delimiter = ','})
→ List<String>
-
Parse one CSV line (handle quoted fields, commas inside quotes). Roadmap #141.
Audited: 2026-06-12 11:26 EDT