| 4346 | |
| 4347 | #ifdef _WIN32 |
| 4348 | static inline std::wstring UTF8ToWchar(const std::string &str) { |
| 4349 | int wstr_size = |
| 4350 | MultiByteToWideChar(CP_UTF8, 0, str.data(), (int)str.size(), NULL, 0); |
| 4351 | std::wstring wstr(wstr_size, 0); |
| 4352 | MultiByteToWideChar(CP_UTF8, 0, str.data(), (int)str.size(), &wstr[0], |
| 4353 | (int)wstr.size()); |
| 4354 | return wstr; |
| 4355 | } |
| 4356 | #endif |
| 4357 | |
| 4358 |
no test coverage detected