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

Function cmEscapeQuotes

Source/cmStringAlgorithms.cxx:76–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76std::string cmEscapeQuotes(cm::string_view str)
77{
78 std::string result;
79 result.reserve(str.size());
80 for (char const ch : str) {
81 if (ch == '"') {
82 result += '\\';
83 }
84 result += ch;
85 }
86 return result;
87}
88
89namespace {
90template <std::size_t N, typename T>

Callers 3

testStringAlgorithmsFunction · 0.85
LLVMFuzzerTestOneInputFunction · 0.85

Calls 2

reserveMethod · 0.80
sizeMethod · 0.45

Tested by 1

testStringAlgorithmsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…