| 108 | } |
| 109 | |
| 110 | std::wstring ToWString(const std::string& string) |
| 111 | { |
| 112 | auto cString = string.c_str(); |
| 113 | int size = MultiByteToWideChar(CP_UTF8, 0, cString, (int)string.size(), nullptr, 0); |
| 114 | auto wString = std::wstring(size, 0); |
| 115 | MultiByteToWideChar(CP_UTF8, 0, cString, (int)strlen(cString), &wString[0], size); |
| 116 | return wString; |
| 117 | } |
| 118 | |
| 119 | std::wstring ToWString(const char* cString) |
| 120 | { |
no test coverage detected