MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / toInt64

Function toInt64

lib/config/proto.cc:52–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52static int64_t toInt64(const std::string& value)
53{
54 size_t idx;
55 int64_t d = std::stoll(value, &idx);
56 if (value[idx] != '\0')
57 error("invalid number '{}'", value);
58 return d;
59}
60
61static uint64_t toUint64(const std::string& value)
62{

Callers 1

setMethod · 0.85

Calls 1

errorFunction · 0.85

Tested by

no test coverage detected