MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / unicode_cpt_flags_from_cpt

Function unicode_cpt_flags_from_cpt

external/llama_tokenizer/unicode.cpp:1014–1018  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1012}
1013
1014unicode_cpt_flags unicode_cpt_flags_from_cpt(const uint32_t cpt) {
1015 static const unicode_cpt_flags undef(unicode_cpt_flags::UNDEFINED);
1016 static const auto cpt_flags = unicode_cpt_flags_array();
1017 return cpt < cpt_flags.size() ? cpt_flags[cpt] : undef;
1018}
1019
1020unicode_cpt_flags unicode_cpt_flags_from_utf8(const std::string & utf8) {
1021 static const unicode_cpt_flags undef(unicode_cpt_flags::UNDEFINED);

Calls 2

unicode_cpt_flags_arrayFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected