MCPcopy Create free account
hub / github.com/bytedance/sonic-cpp / carry_one

Method carry_one

include/sonic/dom/parser.h:150–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 sonic_force_inline bool carry_one(char c, uint64_t &sum) const {
151 uint8_t d = static_cast<uint8_t>(c - '0');
152 if (d > 9) {
153 return false;
154 }
155 sum = sum * 10 + d;
156 return true;
157 }
158
159 sonic_force_inline uint64_t str2int(const char *s, size_t &i) const {
160 uint64_t sum = 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected