MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / ToWString

Function ToWString

TombEngine/Specific/trutils.cpp:110–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 }
109
110 std::wstring ToWString(const std::string& string)
111 {
112 auto cString = string.c_str();
113 int size = MultiByteToWideChar(CP_UTF8, 0, cString, (int)string.size(), nullptr, 0);
114 auto wString = std::wstring(size, 0);
115 MultiByteToWideChar(CP_UTF8, 0, cString, (int)strlen(cString), &wString[0], size);
116 return wString;
117 }
118
119 std::wstring ToWString(const char* cString)
120 {

Callers 7

GetAssetPathFunction · 0.85
AddStringMethod · 0.85
RenderTitleImageMethod · 0.85
SaveScreenshotMethod · 0.85
LoadOrCompileMethod · 0.85
LoadLevelFileFunction · 0.85
DialogProcFunction · 0.85

Calls 2

c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected