MCPcopy Create free account
hub / github.com/cinit/TMoe / parseInt64

Method parseInt64

app/src/main/cpp/utils/TextUtils.cpp:18–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18bool utils::parseInt64(int64_t *result, std::string_view str, int base) {
19 auto ret = std::from_chars(str.data(), str.data() + str.size(), *result, base);
20 return int(ret.ec) == 0;
21}
22
23bool utils::parseUInt64(uint64_t *result, std::string_view str, int base) {
24 auto ret = std::from_chars(str.data(), str.data() + str.size(), *result, base);

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected