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

Function WStringToAnsi

SampleFramework12/v1.00/Utility.h:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30inline std::string WStringToAnsi(const wchar* wideString)
31{
32 char buffer[512];
33 Win32Call(WideCharToMultiByte(CP_ACP, 0, wideString, -1, buffer, 612, NULL, NULL));
34 return std::string(buffer);
35}
36
37// Splits up a string using a delimiter
38inline void Split(const std::wstring& str, std::vector<std::wstring>& parts, const std::wstring& delimiters = L" ")

Callers 4

WriteLogFunction · 0.85
CompileShaderFunction · 0.85
SaveTextureAsEXRFunction · 0.85
CreateWithAssimpMethod · 0.85

Calls 1

Win32CallFunction · 0.85

Tested by

no test coverage detected