MCPcopy Create free account
hub / github.com/alibaba/graph-learn / FastStringToDouble

Function FastStringToDouble

graphlearn/src/common/string/numeric.cc:210–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210bool FastStringToDouble(const char* str, double* value) {
211 char* end = nullptr;
212 double ret = strtod(str, &end);
213 while (isspace(*end)) ++end;
214 if (*end == '\0') {
215 *value = ret;
216 return true;
217 }
218 return false;
219}
220
221std::string Int32ToString(int32_t i) {
222 char buffer[12];

Callers 1

ParseAttributeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected