refactor & optimize xml parser
This commit is contained in:
+10
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user