Files
Nim/lib
cui fliter 792e21dd9e parsecsv: reset parser state when reopening (#26197)
`CsvParser.open` did not reset parser-specific state when reopening a
parser.

After parsing one input and reusing the same parser for another input,
the previous `row`, `headers`, and `processedRows()` value could remain
visible. In particular, calling `readHeaderRow()` on an empty second
input did not clear the previous headers.

Reset the parser state in `open`:

- clear `row`
- clear `headers`
- reset `currRow` to zero

Signed-off-by: cuishuang <imcusg@gmail.com>
2026-09-09 21:25:14 +02:00
..
2017-02-20 17:24:19 +02:00
2026-07-30 14:54:12 +02:00
2013-03-16 23:53:07 +01:00
2021-06-03 14:00:53 +02:00