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

Function unicode_cpts_to_utf8

external/llama_tokenizer/unicode.cpp:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22static std::string unicode_cpts_to_utf8(const std::vector<uint32_t> & cps) {
23 std::string result;
24 for (size_t i = 0; i < cps.size(); ++i) {
25 result.append(unicode_cpt_to_utf8(cps[i]));
26 }
27 return result;
28}
29
30uint32_t unicode_cpt_from_utf8(const std::string & utf8, size_t & offset) {
31 assert(offset < utf8.size());

Callers

nothing calls this directly

Calls 2

unicode_cpt_to_utf8Function · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected