From fed40d5dd5203bae678be7aea6fd91c73b43e298 Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Mon, 11 Sep 2023 19:12:18 -0400 Subject: 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 --- include/openvic-dataloader/csv/Parser.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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& get_lines() const; -- cgit v1.2.3-56-ga3b1