MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / QuoteIfNecessary

Function QuoteIfNecessary

cli.cpp:359–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359std::string QuoteIfNecessary(std::string str)
360{
361 if (str.find(' ') == std::string::npos)
362 {
363 return str;
364 }
365 else
366 {
367 return "'" + str + "'";
368 }
369}
370
371/*---------------------------------------------------------------------------------------------------------*\
372| Option processing functions |

Callers 1

OptionListDevicesFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected