MCPcopy Create free account
hub / github.com/cinder/Cinder / UTF8ToWchar

Function UTF8ToWchar

include/tinyexr/tinyexr.h:4423–4430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4421
4422#ifdef _WIN32
4423static inline std::wstring UTF8ToWchar(const std::string &str) {
4424 int wstr_size =
4425 MultiByteToWideChar(CP_UTF8, 0, str.data(), (int)str.size(), NULL, 0);
4426 std::wstring wstr(wstr_size, 0);
4427 MultiByteToWideChar(CP_UTF8, 0, str.data(), (int)str.size(), &wstr[0],
4428 (int)wstr.size());
4429 return wstr;
4430}
4431#endif
4432
4433

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