MCPcopy Create free account
hub / github.com/Norbyte/ositools / FromUTF8

Function FromUTF8

OsiLoader/Utils.cpp:153–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151
152
153std::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//

Callers 1

LaunchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected