MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / parse_int

Function parse_int

subprojects/llama.cpp/src/llama-grammar.cpp:150–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150static const char * parse_int(const char * src) {
151 const char * pos = src;
152 while (is_digit_char(*pos)) {
153 pos++;
154 }
155 if (pos == src) {
156 throw std::runtime_error(std::string("expecting integer at ") + src);
157 }
158 return pos;
159}
160
161static std::pair<uint32_t, const char *> parse_char(const char * src) {
162 if (*src == '\\') {

Callers 2

parse_tokenFunction · 0.85
parse_sequenceMethod · 0.85

Calls 2

is_digit_charFunction · 0.85
stringClass · 0.85

Tested by

no test coverage detected