MCPcopy Create free account
hub / github.com/Tencent/libpag / Utf16ToUtf8

Function Utf16ToUtf8

exporter/src/utils/StringHelper.cpp:266–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266std::string Utf16ToUtf8(const char16_t* u16str) {
267 if (u16str == nullptr) {
268 return "";
269 }
270 QString qString = QString::fromUtf16(u16str);
271 return qString.toUtf8().toStdString();
272}
273
274std::u16string Utf8ToUtf16(const std::string& u8str) {
275 std::u16string u16str;

Callers 2

AeMemoryHandleToStringFunction · 0.85
GetProjectFileBytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected