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

Method tryParseWhitespaces

valdi_core/src/valdi_core/cpp/Utils/TextParser.cpp:134–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134bool TextParser::tryParseWhitespaces() {
135 auto parsed = false;
136
137 while (tryParsePredicate(isWhitespace)) {
138 parsed = true;
139 }
140
141 return parsed;
142}
143
144template<typename T, typename F, typename... Args>
145static bool doParseNumber(const std::string_view& str, size_t& position, T& output, F&& fn, Args&&... args) {

Callers 15

tryParseTokenMethod · 0.80
parseTokenMethod · 0.80
parseIntMethod · 0.80
parseUIntMethod · 0.80
parseDoubleMethod · 0.80
readListFunction · 0.80
doParseClassSchemaFunction · 0.80
parseEnumSchemaFunction · 0.80
parseFunctionSchemaFunction · 0.80
rewriteImportFunction · 0.80
TESTFunction · 0.80
preprocessBorderFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64