MCPcopy Create free account
hub / github.com/SoarGroup/Soar / parse_double

Function parse_double

Core/SVS/src/common.cpp:141–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139}
140
141bool parse_double(const string& s, double& v)
142{
143 if (s.empty())
144 {
145 return false;
146 }
147
148 char* end;
149 v = strtod(s.c_str(), &end);
150 if (*end != '\0')
151 {
152 return false;
153 }
154 return true;
155}
156
157bool parse_int(const string& s, int& v)
158{

Callers 7

proxy_use_subMethod · 0.70
parse_vec3Function · 0.70
parse_modsFunction · 0.70
unserializeFunction · 0.70
read_dataFunction · 0.50
read_tabularFunction · 0.50
mainFunction · 0.50

Calls

no outgoing calls

Tested by 3

read_dataFunction · 0.40
read_tabularFunction · 0.40
mainFunction · 0.40