MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / is_digit_char

Function is_digit_char

smallthinker/src/llama-grammar.cpp:91–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91static bool is_digit_char(char c) {
92 return '0' <= c && c <= '9';
93}
94
95static bool is_word_char(char c) {
96 return ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || c == '-' || is_digit_char(c);

Callers 3

is_word_charFunction · 0.85
parse_intFunction · 0.85
parse_sequenceMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected