summaryrefslogtreecommitdiffstats
path: root/src/data_parser.hh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 04:48:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-07 04:48:35 +0000
commit207df6fc406e81bfeebdff7f404bd242ff3f099f (patch)
treea1a796b056909dd0a04ffec163db9363a8757808 /src/data_parser.hh
parentReleasing progress-linux version 0.11.2-1~progress7.99u1. (diff)
downloadlnav-207df6fc406e81bfeebdff7f404bd242ff3f099f.tar.xz
lnav-207df6fc406e81bfeebdff7f404bd242ff3f099f.zip
Merging upstream version 0.12.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--src/data_parser.hh14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/data_parser.hh b/src/data_parser.hh
index ca54a58..e2e4c70 100644
--- a/src/data_parser.hh
+++ b/src/data_parser.hh
@@ -209,6 +209,7 @@ class data_parser {
public:
static data_format FORMAT_SEMI;
static data_format FORMAT_COMMA;
+ static data_format FORMAT_EMDASH;
static data_format FORMAT_PLAIN;
static FILE* TRACE_FILE;
@@ -259,13 +260,7 @@ public:
this->std::list<element>::push_front(elem);
}
- void push_back(const element& elem, const char* fn, int line)
- {
- ELEMENT_TRACE;
-
- require(elem.e_capture.c_end >= -1);
- this->std::list<element>::push_back(elem);
- }
+ void push_back(const element& elem, const char* fn, int line);
void pop_front(const char* fn, int line)
{
@@ -335,6 +330,8 @@ public:
const element& get_pair_elem() const;
+ bool is_value() const;
+
void print(FILE* out, data_scanner&, int offset = 0) const;
data_scanner::capture_t e_capture;
@@ -402,7 +399,8 @@ public:
element_list_t& key_comps,
element_list_t& value,
const element_list_t& in_list,
- int group_depth);
+ int group_depth,
+ element_list_t::iterator iter);
void parse();