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

Function QuotePathIfNeeded

packages/insomnia/src/cpp/insomnia.cpp:88–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86bool PathHasSpace(const std::wstring &path) { return path.find(L' ') != std::wstring::npos; }
87
88std::wstring QuotePathIfNeeded(const std::wstring &path) {
89 return PathHasSpace(path) ? L"\"" + path + L"\"" : path;
90}
91
92int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
93 std::wstring cmdLine = ::ConvertLPSTRToWString(lpCmdLine);

Callers 1

WinMainFunction · 0.85

Calls 1

PathHasSpaceFunction · 0.85

Tested by

no test coverage detected