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

Function unicode_cpt_flags_from_cpt

smallthinker/src/unicode.cpp:633–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631}
632
633unicode_cpt_flags unicode_cpt_flags_from_cpt(const uint32_t cpt) {
634 static const unicode_cpt_flags undef(unicode_cpt_flags::UNDEFINED);
635 static const auto cpt_flags = unicode_cpt_flags_array();
636 return cpt < cpt_flags.size() ? cpt_flags[cpt] : undef;
637}
638
639unicode_cpt_flags unicode_cpt_flags_from_utf8(const std::string & utf8) {
640 static const unicode_cpt_flags undef(unicode_cpt_flags::UNDEFINED);

Callers 5

preprocessMethod · 0.85
unicode_regex_splitFunction · 0.85

Calls 2

unicode_cpt_flags_arrayFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected