MCPcopy Create free account
hub / github.com/blender/cycles / string_to_wstring

Function string_to_wstring

src/util/string.cpp:239–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237#ifdef _WIN32
238
239wstring string_to_wstring(const string &str)
240{
241 const int length_wc = MultiByteToWideChar(CP_UTF8, 0, str.c_str(), str.length(), nullptr, 0);
242 wstring str_wc(length_wc, 0);
243 MultiByteToWideChar(CP_UTF8, 0, str.c_str(), str.length(), &str_wc[0], length_wc);
244 return str_wc;
245}
246
247string string_from_wstring(const wstring &str)
248{

Callers 5

directory_iteratorMethod · 0.85
path_statFunction · 0.85
path_existsFunction · 0.85
path_fopenFunction · 0.85

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected