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

Function unicode_byte_to_utf8

subprojects/llama.cpp/src/unicode.cpp:905–908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903}
904
905std::string unicode_byte_to_utf8(uint8_t byte) {
906 static std::unordered_map<uint8_t, std::string> map = unicode_byte_to_utf8_map();
907 return map.at(byte);
908}
909
910uint8_t unicode_utf8_to_byte(const std::string & utf8) {
911 static std::unordered_map<std::string, uint8_t> map = unicode_utf8_to_byte_map();

Callers 2

byte_to_tokenMethod · 0.85

Calls 2

unicode_byte_to_utf8_mapFunction · 0.85
atMethod · 0.65

Tested by

no test coverage detected