refactor & optimize xml parser

This commit is contained in:
MihailRis
2024-12-05 20:12:02 +03:00
parent 04b6b6b546
commit 84b3b82dba
6 changed files with 384 additions and 376 deletions
+10 -8
View File
@@ -11,15 +11,17 @@
using namespace json;
class Parser : BasicParser {
dv::value parseList();
dv::value parseObject();
dv::value parseValue();
public:
Parser(std::string_view filename, std::string_view source);
namespace {
class Parser : BasicParser {
dv::value parseList();
dv::value parseObject();
dv::value parseValue();
public:
Parser(std::string_view filename, std::string_view source);
dv::value parse();
};
dv::value parse();
};
}
inline void newline(
std::stringstream& ss, bool nice, uint indent, const std::string& indentstr