| 19 | } |
| 20 | |
| 21 | std::wstring SDR::String::FromUTF8(const std::string& input) |
| 22 | { |
| 23 | std::wstring ret; |
| 24 | |
| 25 | auto size = MultiByteToWideChar(CP_UTF8, 0, input.data(), input.size(), nullptr, 0); |
| 26 | ret.resize(size, 0); |
| 27 | |
| 28 | MultiByteToWideChar(CP_UTF8, 0, input.data(), input.size(), &ret.front(), size); |
| 29 | |
| 30 | return ret; |
| 31 | } |
| 32 | |
| 33 | std::wstring SDR::String::FromUTF8(const char* input) |
| 34 | { |
nothing calls this directly
no outgoing calls
no test coverage detected