MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / utf8_to_utf16

Function utf8_to_utf16

modules/core/core/include/OpenString/unicode.h:187–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 }
186
187 [[nodiscard]] constexpr std::array<char16_t, utf16::SEQUENCE_MAXIMUM_LENGTH> utf8_to_utf16(ochar8_t const* const utf8, const u64 length) noexcept
188 {
189 return utf32_to_utf16(utf8_to_utf32(utf8, length));
190 }
191
192 [[nodiscard]] constexpr std::array<ochar8_t, UTF8_SEQUENCE_MAXIMUM_LENGTH> utf16_to_utf8(char16_t const* const utf16, const u64 length) noexcept
193 {

Callers

nothing calls this directly

Calls 2

utf32_to_utf16Function · 0.85
utf8_to_utf32Function · 0.85

Tested by

no test coverage detected