MCPcopy Create free account
hub / github.com/cocos/cocos-engine / UTF16ToUTF8

Function UTF16ToUTF8

native/cocos/base/UTF8.cpp:251–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251bool UTF16ToUTF8(const std::u16string &utf16, ccstd::string &outUtf8) { //NOLINT
252 return utfConvert(utf16, outUtf8, ConvertUTF16toUTF8);
253}
254
255bool UTF16ToUTF32(const std::u16string &utf16, std::u32string &outUtf32) { //NOLINT
256 return utfConvert(utf16, outUtf32, ConvertUTF16toUTF32);

Callers 6

getStringUTFCharsJNIFunction · 0.70
saveFileMethod · 0.50
openDirectoryMethod · 0.50
openMultipleInternalMethod · 0.50
js_TextDecoder_decodeFunction · 0.50
StringViewToUtf8Function · 0.50

Calls 1

utfConvertFunction · 0.85

Tested by 1

StringViewToUtf8Function · 0.40