Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
158
std::optional<double> TextParser::parseDouble() {
159
double d;
160
161
if (!parseDouble(d)) {
162
return std::nullopt;
163
}
164
165
return d;
166
}
167
168
std::optional<int> TextParser::parseInt() {
169
int i;
Callers
3
readValueFromJSONReader
Function · 0.45
TEST
Function · 0.45
preprocessTextShadow
Function · 0.45
Calls
no outgoing calls
Tested by
1
TEST
Function · 0.36