MCPcopy Create free account
hub / github.com/Snapchat/Valdi / parse

Method parse

valdi_core/src/valdi_core/cpp/Utils/TextParser.cpp:100–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100bool TextParser::parse(char c) {
101 if (!tryParse(c)) {
102 setErrorAtCurrentPosition(fmt::format("Expecting character '{}'", c));
103 return false;
104 }
105
106 return true;
107}
108
109bool TextParser::tryParse(std::string_view term) {
110 auto positionBefore = _position;

Callers 3

parseTokenMethod · 0.45
parseStringMethod · 0.45
correctJsonToValueFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected