MCPcopy Create free account
hub / github.com/Snapchat/Valdi / makeStringFromUTF16

Method makeStringFromUTF16

valdi_core/src/valdi_core/cpp/Utils/StringCache.cpp:76–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76StringBox StringCache::makeStringFromUTF16(const char16_t* utf16String, size_t len) noexcept {
77 auto pair = utf16ToUtf8(utf16String, len);
78 return makeString(pair.first, pair.second);
79}
80
81StringCache& StringCache::getGlobal() noexcept {
82 static auto* kCache = new StringCache();

Callers 3

toStringBoxMethod · 0.80
propertyNameToStringMethod · 0.80
valueToStringMethod · 0.80

Calls 1

utf16ToUtf8Function · 0.85

Tested by

no test coverage detected