|
csv-parser 1.1.0
Csv::Parser (csv-parser)
|
A value of a cell. More...
#include <csv_cell.h>
Public Member Functions | |
| CellStringValue ()=default | |
| Constructor. | |
| template<typename BehaviorPolicy > | |
| CellStringValue (std::string_view cell, CellTypeHint hint, BehaviorPolicy policy) | |
| Constructor, which stores a copy of the cell data. | |
| const std::string & | getString () const |
| Get stored cell reference as string. | |
A value of a cell.
The object owns its data and does not reference the original CSV text. All cell contents are treated as strings. This may be useful if the CSV has string data without quotes.
| Csv::CellStringValue::CellStringValue | ( | std::string_view | cell, |
| CellTypeHint | hint, | ||
| BehaviorPolicy | policy | ||
| ) |
Constructor, which stores a copy of the cell data.
| cell | Cell data to store. |
| hint | Type hint associated with the cell during parsing. |
| policy | Argument used for type inference. |
| BehaviorPolicy | Policy to use for parsing, same as BehaviorPolicy in Parser. |
|
inline |
Get stored cell reference as string.
Cell type is assumed to be String, regardless of autodetected type. The string has collapsed consecutive double-quotes inside.