| 114 | } |
| 115 | |
| 116 | std::wstring toUtf16([[maybe_unused]] const std::string_view& src) |
| 117 | { |
| 118 | #ifdef _WIN32 |
| 119 | int srcLen = static_cast<int>(src.size()); |
| 120 | int sizeReq = MultiByteToWideChar(CP_ACP, 0, src.data(), srcLen, nullptr, 0); |
| 121 | auto result = std::wstring(sizeReq, 0); |
| 122 | MultiByteToWideChar(CP_ACP, 0, src.data(), srcLen, result.data(), sizeReq); |
| 123 | return result; |
| 124 | #else |
| 125 | perror("STUB!\n"); |
| 126 | return std::to_wstring(0); |
| 127 | #endif |
| 128 | } |
| 129 | } |
no test coverage detected