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

Method decode

modules/core/core/src/string/OpenString/wide_text.cpp:62–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 }
61
62 void wide_text::decode(codeunit_sequence& out) const noexcept
63 {
64#if _WIN64
65 out = text::from_utf16(reinterpret_cast<const char16_t*>(this->sequence_.data())).raw();
66#elif __linux__ || __MACH__
67 out = text::from_utf32(reinterpret_cast<const char32_t*>(this->sequence_.data())).raw();
68#endif
69 }
70}

Callers 2

from_wideMethod · 0.45
produceMethod · 0.45

Calls 2

rawMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected