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

Function unicode_byte_to_utf8

external/llama_tokenizer/unicode.cpp:1029–1032  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1027}
1028
1029std::string unicode_byte_to_utf8(uint8_t byte) {
1030 static std::unordered_map<uint8_t, std::string> map = unicode_byte_to_utf8_map();
1031 return map.at(byte);
1032}
1033
1034uint8_t unicode_utf8_to_byte(const std::string & utf8) {
1035 static std::unordered_map<std::string, uint8_t> map = unicode_utf8_to_byte_map();

Callers 1

Calls 2

unicode_byte_to_utf8_mapFunction · 0.85
atMethod · 0.45

Tested by

no test coverage detected