~/lightning

Reading CSV Files with Standard C++

Lightningat Meeting C++ 2023 · 2023-11-12..11-14· [c-and-cpp]
slides:none on file

Claims that ranges::split fails on quoted fields, because CSV permits commas, quotes and embedded newlines. Notes std::quoted is stream-only and returns strings not string_views, so it doesn't avoid allocations. Shows getline breaks when fields contain newline characters. Describes a practical approach: treat the file as a buffer of characters, use views to split then merge quoted segments back together, and handle multiple input files for real datasets (butterfly records) to compute trends without copying the whole file.

AI-written summary · about

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.