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

Function JoinCommandLine

encoding/shell.cpp:340–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338}
339
340std::string JoinCommandLine(const std::vector<std::string>& args)
341{
342 std::string result;
343 for (size_t i = 0; i < args.size(); ++i) {
344 if (i != 0)
345 result += ' ';
346 const std::string& arg = args[i];
347 result += ShellQuoteIfNeed(arg);
348 }
349 return result;
350}
351
352} // namespace toft

Callers 2

TESTFunction · 0.85
CreateMethod · 0.85

Calls 2

ShellQuoteIfNeedFunction · 0.85
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68