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

Method parseUInt32

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

Source from the content-addressed store, hash-verified

11}
12
13bool utils::parseUInt32(uint32_t *result, std::string_view str, int base) {
14 auto ret = std::from_chars(str.data(), str.data() + str.size(), *result, base);
15 return int(ret.ec) == 0;
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);

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected