MCPcopy Create free account
hub / github.com/alibaba/MNN / set

Method set

transformers/llm/engine/src/tokenizer/unicode.cpp:117–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115struct CharSet {
116 uint64_t bits[4] = {};
117 void set(uint8_t b) { bits[b >> 6] |= 1ULL << (b & 63); }
118 bool test(uint8_t b) const { return (bits[b >> 6] >> (b & 63)) & 1; }
119 void negate() { for (auto& w : bits) w = ~w; }
120 void merge(const CharSet& o) { for (int i = 0; i < 4; i++) bits[i] |= o.bits[i]; }

Callers 10

cs_letterFunction · 0.45
cs_numberFunction · 0.45
cs_whitespaceFunction · 0.45
cs_markFunction · 0.45
cs_punctFunction · 0.45
cs_symbolFunction · 0.45
add_literalMethod · 0.45
add_escape_to_csMethod · 0.45
parse_classMethod · 0.45
parse_atomMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected