|
csv-parser 1.1.0
Csv::Parser (csv-parser)
|
A helper class for compile-time buffer construction and string unescaping. More...
#include <csv_cell_string_buffer.h>
Public Member Functions | |
| constexpr | CellStringBuffer (std::string_view cell, bool has_escaped_quotes) |
| Constructor. | |
| constexpr std::string_view | getStringView () const |
| Return a string view to the stored data. | |
| constexpr std::size_t | getBufferSize () const noexcept |
| Return buffer size, as determined by the template parameter. | |
A helper class for compile-time buffer construction and string unescaping.
| Size | Buffer size (number of characters without any terminating null). |
|
inlineexplicitconstexpr |
Constructor.
Copies the cleaned-up cell data into the buffer.
| cell | Cell data to clean up and copy into the buffer. |
| has_escaped_quotes | If true, the data in cell is cleaned up (unescaped) before being copied into the buffer. |
| std::out_of_range | if the buffer is too small to hold the cleaned-up string. |