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

Function AnsiToWString

SampleFramework12/v1.00/Utility.h:23–28  ·  view source on GitHub ↗

Converts an ANSI string to a std::wstring

Source from the content-addressed store, hash-verified

21
22// Converts an ANSI string to a std::wstring
23inline std::wstring AnsiToWString(const char* ansiString)
24{
25 wchar buffer[512];
26 Win32Call(MultiByteToWideChar(CP_ACP, 0, ansiString, -1, buffer, 512));
27 return std::wstring(buffer);
28}
29
30inline std::string WStringToAnsi(const wchar* wideString)
31{

Callers 4

GetExpandedShaderCodeFunction · 0.85
OpenMethod · 0.85
SaveTextureAsEXRFunction · 0.85
CreateWithAssimpMethod · 0.85

Calls 1

Win32CallFunction · 0.85

Tested by

no test coverage detected