| 151 | |
| 152 | |
| 153 | std::wstring FromUTF8(std::string const & s) |
| 154 | { |
| 155 | int size = MultiByteToWideChar(CP_UTF8, 0, s.c_str(), (int)s.size(), NULL, 0); |
| 156 | std::wstring converted; |
| 157 | converted.resize(size); |
| 158 | MultiByteToWideChar(CP_UTF8, 0, s.c_str(), (int)s.size(), converted.data(), (int)converted.size()); |
| 159 | return converted; |
| 160 | } |
| 161 | |
| 162 | |
| 163 | // |