MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / is_hex_string

Function is_hex_string

common/hf-cache.cpp:97–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97static bool is_hex_string(const std::string & s, size_t expected_len) {
98 if (s.length() != expected_len) {
99 return false;
100 }
101 for (const char c : s) {
102 if (!is_hex_char(c)) {
103 return false;
104 }
105 }
106 return true;
107}
108
109static bool is_alphanum(const char c) {
110 return (c >= 'A' && c <= 'Z') ||

Callers 2

is_valid_commitFunction · 0.85
is_valid_oidFunction · 0.85

Calls 2

is_hex_charFunction · 0.85
lengthMethod · 0.80

Tested by

no test coverage detected