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

Function countUtf32ToUtf16

valdi_core/src/valdi_core/cpp/Text/UTF16Utils.cpp:234–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234size_t countUtf32ToUtf16(uint32_t utf32Character) {
235 return utf32Character > 0xFFFF ? 2 : 1;
236}
237
238size_t countUtf32ToUtf16(const uint32_t* utf32String, size_t length) {
239 size_t utf16Count = 0;

Callers 4

utf32ToUtf16Function · 0.85
UTF16ToUTF32IndexMethod · 0.85
newStringFromUtf32Function · 0.85
resolveParagraphsICUMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected