#ifndef CEPIS_SRC_CSV_HPP #define CEPIS_SRC_CSV_HPP #include #include #include namespace cepis::detail { /// Parses RFC 4180 CSV into rows of fields. /// /// Values may contain commas, quotes and newlines when double-quoted, with /// `""` as the escape — splitting on `,` would corrupt exactly the street /// names most likely to matter. A leading UTF-8 BOM is dropped, `\r\n` and /// `\n` both end a record, and a trailing newline does not produce an empty /// final row. std::vector> parse_csv(std::string_view text); } // namespace cepis::detail #endif // CEPIS_SRC_CSV_HPP