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

Method parseDouble

valdi_core/src/valdi_core/cpp/Utils/TextParser.cpp:158–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156}
157
158std::optional<double> TextParser::parseDouble() {
159 double d;
160
161 if (!parseDouble(d)) {
162 return std::nullopt;
163 }
164
165 return d;
166}
167
168std::optional<int> TextParser::parseInt() {
169 int i;

Callers 3

readValueFromJSONReaderFunction · 0.45
TESTFunction · 0.45
preprocessTextShadowFunction · 0.45

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.36