Arthur031221
f01284d372
[core:encoding/csv] Read the final multiline record before EOF
...
The multiline line reader returned EOF with buffered data, so record
parsing discarded the last row when the file had no trailing newline.
Clear EOF while data remains, as the normal line reader does.
Add regressions for final records, empty input and unterminated quotes.
The normal core suite passes 627 tests with the new CSV tests included.
2026-10-02 14:10:58 +08:00
Stephen Hara
8757541ba4
docs: fix errors in encoding/csv examples
...
Fix 1 is passing an `io.Stream` to `reader_init` instead of a
`FileStream`.
Fix 2 is an `err` that should (probably?) have been `csv_err`.
2026-07-18 20:27:33 +09:00
Jeroen van Rijn
e7dbabf668
core:os -> core:os/old && core:os/os2 -> core:os
2026-02-09 15:50:21 +01:00
Jeroen van Rijn
02477b2526
eprintf
2026-02-08 12:44:06 +01:00
Jeroen van Rijn
304f22c8af
core:os -> core:os/os for CSV, INI, and XML
...
Also had to vendor `core:encoding/ini` into `core:os/os2` for the user directories on *nix,
as it used that package to read `~/.config/user-dirs.dirs`, causing an import cycle.
2026-02-08 12:42:24 +01:00
Jeroen van Rijn
236111864e
Link doc lines to source specifications.
2025-10-10 18:29:52 +02:00
Jeroen van Rijn
7a9ea3ee6d
Further overhaul of package line comments.
2025-10-09 23:05:29 +02:00
Wesley Kerfoot
cac18b4aba
Fix incorrect CSV reader settings for example, fix typo in docs
2025-05-27 14:27:22 -04:00
Laytan Laats
288312a812
core: improve package doc comments for the documentation generator
2024-09-03 19:59:04 +02:00
Laytan Laats
bfedcd7035
encoding/csv: fix examples
2024-08-30 23:31:31 +02:00
gingerBill
5f7fef92fa
Update example to use err != nil instead
2024-08-04 12:25:50 +01:00
Jeroen van Rijn
d97fe41834
Mark deux
2024-06-24 22:45:12 +02:00
Jeroen van Rijn
d3d73590d3
Fix CSV comments.
2024-06-24 22:43:14 +02:00
Jeroen van Rijn
2a4ddbb7be
Remove core:mem import in example.
2024-05-24 13:35:32 +02:00
Jeroen van Rijn
3b739dc5cc
Add iterator_next(&r) to CSV.
2024-05-24 13:26:12 +02:00
gingerBill
20223345a4
Return partial reads
2024-04-19 00:33:31 +01:00
gingerBill
3812d5e002
Only override the comma value on *_init if it is "invalid"
2024-04-19 00:19:02 +01:00
gingerBill
334e08c750
Update numerous package declaration names
2024-04-18 12:17:39 +01:00
gingerBill
5023313c03
Minor cleanups to the core library
2023-09-30 20:26:04 +01:00
Lucas Perlind
e0d9092df8
Document return values of strings and add allocator errors where
...
possible
2023-04-07 20:39:01 +10:00
Jeroen van Rijn
7bc21c6691
Allow CSV/TSV reader to read multi-line fields.
2022-05-13 14:19:04 +02:00
gingerBill
251da264ed
Remove unneeded semicolons from the core library
2021-08-31 22:21:13 +01:00
gingerBill
4035fec784
Add more uses of or_return
2021-08-15 18:13:56 +01:00
gingerBill
37253f2621
Add encoding/csv Writer
2021-01-09 00:21:47 +00:00
gingerBill
da380d6fc4
Add encoding/csv Reader
2021-01-08 23:24:35 +00:00