diff options
author | Spartan322 <Megacake1234@gmail.com> | 2023-09-12 01:12:18 +0200 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2023-09-14 10:30:42 +0200 |
commit | fed40d5dd5203bae678be7aea6fd91c73b43e298 (patch) | |
tree | 1c6dd3021397aa6b75b684ff7647b9ffbd2a4025 /include/openvic-dataloader | |
parent | 3017487fa30b7f6593bd14e9c9d952ab948a6b80 (diff) |
Overhaul CSV parsing and align with Victoria 2 CSVs
Fix "" not being converted into " in Csv files
Move duplicated Grammar in CsvGrammar.hpp to Grammar.inc
Add ParseOptions to simplify template options
Add StringValue disable option:
Inlines value escapes
Add strings namespace to grammars for `ParseOptions.SupportStrings = true`
Add string parse handling to parse_csv via argument
Diffstat (limited to 'include/openvic-dataloader')
-rw-r--r-- | include/openvic-dataloader/csv/Parser.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/openvic-dataloader/csv/Parser.hpp b/include/openvic-dataloader/csv/Parser.hpp index fadaf3a..fffd92a 100644 --- a/include/openvic-dataloader/csv/Parser.hpp +++ b/include/openvic-dataloader/csv/Parser.hpp @@ -28,7 +28,7 @@ namespace ovdl::csv { constexpr Parser& load_from_file(const detail::Has_c_str auto& path); - bool parse_csv(); + bool parse_csv(bool handle_strings = false); const std::vector<csv::LineObject>& get_lines() const; |