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

Function FastStringTo64

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

Source from the content-addressed store, hash-verified

186}
187
188bool FastStringTo64(const char* str, int64_t* value) {
189 char* end = nullptr;
190 int64_t ret = strtol(str, &end, 10);
191 while (isspace(*end)) ++end;
192 if (*end == '\0') {
193 *value = ret;
194 return true;
195 }
196 return false;
197}
198
199bool FastStringToFloat(const char* str, float* value) {
200 char* end = nullptr;

Callers 4

ParseAttributeFunction · 0.85
ParseRecordMethod · 0.85
ParseRecordMethod · 0.85
GetRecordCountMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected