mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
refactor & optimize xml parser
This commit is contained in:
parent
04b6b6b546
commit
84b3b82dba
6 changed files with 384 additions and 376 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue