MCPcopy Create free account
hub / github.com/chen3feng/toft / ShellQuoteIfNeed

Function ShellQuoteIfNeed

encoding/shell.cpp:29–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29std::string ShellQuoteIfNeed(const std::string& str, char quote_char)
30{
31 if (ShellIsQuoteNeed(str))
32 return ShellQuote(str, quote_char);
33 return str;
34}
35
36bool ShellUnquote(const std::string& str, std::string* result)
37{

Callers 1

JoinCommandLineFunction · 0.85

Calls 2

ShellIsQuoteNeedFunction · 0.85
ShellQuoteFunction · 0.85

Tested by

no test coverage detected