MCPcopy Create free account
hub / github.com/Kong/insomnia / ConvertLPSTRToWString

Function ConvertLPSTRToWString

packages/insomnia/src/cpp/insomnia.cpp:79–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77}
78
79std::wstring ConvertLPSTRToWString(LPSTR lpstr) {
80 int size_needed = MultiByteToWideChar(CP_ACP, 0, lpstr, -1, NULL, 0);
81 std::wstring wstr(size_needed, 0);
82 ::MultiByteToWideChar(CP_ACP, 0, lpstr, -1, &wstr[0], size_needed);
83 return wstr;
84}
85
86bool PathHasSpace(const std::wstring &path) { return path.find(L' ') != std::wstring::npos; }
87

Callers 1

WinMainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected