WIP, Continue writing additional parser tests

This commit is contained in:
ado
2023-07-28 00:17:22 +02:00
parent 6dfc30d5c9
commit 31cbd20f8f
5 changed files with 289 additions and 119 deletions

View File

@@ -776,9 +776,9 @@ private:
std::vector<std::string> get_header() {
std::vector<std::string> header;
std::string header_buffer = next_line_buffer_;
converter_.split(header_buffer.data(), delim_);
auto& header_row_raw = converter_.splitter_.split_data_;
for (const auto& [begin, end] : header_row_raw) {
ss::splitter<Options...> splitter;
splitter.split(header_buffer.data(), delim_);
for (const auto& [begin, end] : splitter.split_data_) {
header.emplace_back(begin, end);
}
return header;

View File

@@ -269,7 +269,7 @@ private:
static_assert(
!multiline::enabled ||
(multiline::enabled && (quote::enabled || escape::enabled)),
"to enable multiline either quote or escape need to be enabled");
"to enable multiline either quote or escape needs to be enabled");
static_assert(!(trim_all::enabled && trim_left_only::enabled) &&
!(trim_all::enabled && trim_right_only::enabled),