MCPcopy Create free account
hub / github.com/Kitware/CMake / Quote

Method Quote

Source/cmGlobalFastbuildGenerator.cxx:692–699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

690}
691
692std::string cmGlobalFastbuildGenerator::Quote(std::string const& str,
693 std::string const& quotation)
694{
695 std::string result = str;
696 cmSystemTools::ReplaceString(result, quotation, "^" + quotation);
697 cmSystemTools::ReplaceString(result, FASTBUILD_DOLLAR_TAG, "$");
698 return quotation + result + quotation;
699}
700std::string cmGlobalFastbuildGenerator::QuoteIfHasSpaces(std::string str)
701{
702 if (str.find(' ') != std::string::npos) {

Callers 2

RegexQuoteFunction · 0.45
EvaluateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected