Files
Nim/tests/stdlib
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
..
2026-02-10 13:21:35 +01:00
2020-11-13 16:15:13 +08:00
2025-11-12 20:33:26 +08:00
2021-01-07 19:16:26 +01:00
2022-09-29 12:16:42 +02:00
2022-10-22 13:42:46 +02:00
2025-11-12 20:33:26 +08:00
2021-10-24 11:51:57 +02:00
2023-06-09 16:03:28 +02:00
2020-10-18 12:57:13 -04:00
2025-09-09 20:05:12 +02:00
2023-06-08 08:02:57 +02:00