MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / unicode_cpts_to_utf8

Function unicode_cpts_to_utf8

subprojects/llama.cpp/src/unicode.cpp:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28static std::string unicode_cpts_to_utf8(const std::vector<uint32_t> & cps) {
29 std::string result;
30 for (size_t i = 0; i < cps.size(); ++i) {
31 result.append(unicode_cpt_to_utf8(cps[i]));
32 }
33 return result;
34}
35
36uint32_t unicode_cpt_from_utf8(const std::string & utf8, size_t & offset) {
37 assert(offset < utf8.size());

Callers

nothing calls this directly

Calls 3

unicode_cpt_to_utf8Function · 0.85
sizeMethod · 0.65
appendMethod · 0.65

Tested by

no test coverage detected