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

Method parseInt32

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

Source from the content-addressed store, hash-verified

6#include "TextUtils.h"
7
8bool utils::parseInt32(int *result, std::string_view str, int base) {
9 auto ret = std::from_chars(str.data(), str.data() + str.size(), *result, base);
10 return int(ret.ec) == 0;
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);

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected