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

Function unicode_utf8_to_byte

subprojects/llama.cpp/src/unicode.cpp:910–913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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();
912 return map.at(utf8);
913}
914
915uint32_t unicode_tolower(uint32_t cpt) {
916 // binary search

Callers 1

llama_decode_textFunction · 0.85

Calls 2

unicode_utf8_to_byte_mapFunction · 0.85
atMethod · 0.65

Tested by

no test coverage detected