| 127 | // so call into a vendored utf8 implementation instead. |
| 128 | |
| 129 | std::wstring UTF8ToWideStringInternal(std::string_view source) { |
| 130 | std::wstring ws; |
| 131 | #if WCHAR_MAX > 0xFFFF |
| 132 | ::utf8::utf8to32(source.begin(), source.end(), std::back_inserter(ws)); |
| 133 | #else |
| 134 | ::utf8::utf8to16(source.begin(), source.end(), std::back_inserter(ws)); |
| 135 | #endif |
| 136 | return ws; |
| 137 | } |
| 138 | |
| 139 | std::string WideStringToUTF8Internal(const std::wstring& source) { |
| 140 | std::string s; |
no test coverage detected