|
| const std::vector< std::string > & | columns () const noexcept |
| | The column names, in file order.
|
| |
| std::optional< std::size_t > | column_index (std::string_view name) const |
| | The index of a column.
|
| |
| bool | has_column (std::string_view name) const |
| | Whether a column exists.
|
| |
| std::size_t | size () const noexcept |
| | Number of data rows.
|
| |
| bool | empty () const noexcept |
| | Whether there are no data rows.
|
| |
| tsv_row | row (std::size_t i) const |
| | A row.
|
| |
| std::vector< tsv_row > | rows () const |
| | All rows.
|
| |
| const std::string & | source () const noexcept |
| | The source name used in errors.
|
| |
| std::uint64_t | content_hash () const noexcept |
| | Hash of the parsed content: columns and cells, without comments, blank lines, line-end style or byte order mark.
|
| |
A parsed tab-separated file.
Copies share the text, so rows taken from one copy stay valid while any copy is alive.
Definition at line 423 of file tsv.hpp.
| std::uint64_t dasmig::core::tsv_document::content_hash |
( |
| ) |
const |
|
inlinenoexcept |
Hash of the parsed content: columns and cells, without comments, blank lines, line-end style or byte order mark.
The same data checked out with LF or CRLF line ends hashes the same.
- Returns
- 64-bit FNV-1a of the canonical content.
Definition at line 537 of file tsv.hpp.