| 237 | #ifdef _WIN32 |
| 238 | |
| 239 | wstring string_to_wstring(const string &str) |
| 240 | { |
| 241 | const int length_wc = MultiByteToWideChar(CP_UTF8, 0, str.c_str(), str.length(), nullptr, 0); |
| 242 | wstring str_wc(length_wc, 0); |
| 243 | MultiByteToWideChar(CP_UTF8, 0, str.c_str(), str.length(), &str_wc[0], length_wc); |
| 244 | return str_wc; |
| 245 | } |
| 246 | |
| 247 | string string_from_wstring(const wstring &str) |
| 248 | { |
no test coverage detected