|
MT Core (C++)
Core library for replacing C++ standard in project usage
|
CSV namespace for CSV-related utilities. More...
Namespaces | |
| namespace | common |
Classes | |
| struct | ColEnd |
| Special output-only type for indicating the end of a colum. More... | |
| struct | Options |
| CSV options for defining the CSV format. More... | |
| struct | ReadError |
| struct | RowEnd |
| Special output-only type for indicating the end of a row. More... | |
| struct | SliceParser |
Typedefs | |
| using | Column = std::variant<i64, u64, Slice<const char>, f64> |
| Column type. | |
| using | WriteElem = std::variant<i64, u64, Slice<const char>, f64, Slice<const Column>, RowEnd, ColEnd> |
| Elements that can be written to a CSV writer. | |
Enumerations | |
| enum class | ReadErrorCode { INTERNAL_LIMIT_REACHED , UNEXPECTED_EOF , INVALID_LINE_ENDING , QUOTE_PREMATURELY_TERMINATED , UNEXPECTED_QUOTE , END_OF_FILE , ALLOCATION_FAILED , SIZE_EXCEEDED } |
Functions | |
| u64 | bit_match_64 (char ch, Slice< const char > s) |
| template<WriterImpl WI> | |
| io::Writer< csv::impl::Writer< WI > > | writer (io::Writer< WI > &underlying, Options opts={}) |
| Creates a CSV writer which will encode the data before writing it out. | |
Variables | |
| static constexpr u64 | chunkSize = 64 |
CSV namespace for CSV-related utilities.
|
strong |
| Enumerator | |
|---|---|
| INTERNAL_LIMIT_REACHED | |
| UNEXPECTED_EOF | |
| INVALID_LINE_ENDING | |
| QUOTE_PREMATURELY_TERMINATED | |
| UNEXPECTED_QUOTE | |
| END_OF_FILE | |
| ALLOCATION_FAILED | |
| SIZE_EXCEEDED | |
Definition at line 27 of file common.hpp.
|
staticconstexpr |
Definition at line 25 of file common.hpp.