MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / WStringToAnsi

Function WStringToAnsi

SampleFramework11/v1.02/Utility.h:37–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37inline std::string WStringToAnsi(const wchar* wideString)
38{
39 char buffer[512];
40 Win32Call(WideCharToMultiByte(CP_ACP, 0, wideString, -1, buffer, 612, NULL, NULL));
41 return std::string(buffer);
42}
43
44// Splits up a string using a delimiter
45inline void Split(const std::wstring& str, std::vector<std::wstring>& parts, const std::wstring& delimiters = L" ")

Callers 3

CompileShaderFunction · 0.85
SaveTextureAsEXRFunction · 0.85
CreateWithAssimpMethod · 0.85

Calls 1

Win32CallFunction · 0.85

Tested by

no test coverage detected