MCPcopy Create free account
hub / github.com/citron-neo/emulator / UTF8ToUTF16

Function UTF8ToUTF16

src/common/string_util.cpp:172–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170#endif
171
172std::u16string UTF8ToUTF16(std::string_view input) {
173 std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t> convert;
174 return convert.from_bytes(input.data(), input.data() + input.size());
175}
176
177#if defined(_MSC_VER)
178#pragma warning(pop)

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected