| 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 | } |