MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / UTF8ToWchar

Function UTF8ToWchar

Source/ThirdParty/tinyexr/tinyexr.h:4348–4355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4346
4347#ifdef _WIN32
4348static inline std::wstring UTF8ToWchar(const std::string &str) {
4349 int wstr_size =
4350 MultiByteToWideChar(CP_UTF8, 0, str.data(), (int)str.size(), NULL, 0);
4351 std::wstring wstr(wstr_size, 0);
4352 MultiByteToWideChar(CP_UTF8, 0, str.data(), (int)str.size(), &wstr[0],
4353 (int)wstr.size());
4354 return wstr;
4355}
4356#endif
4357
4358

Callers 4

MemoryMappedFileMethod · 0.85
SaveEXRImageToFileFunction · 0.85
ParseEXRVersionFromFileFunction · 0.85

Calls 2

dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected