| 60 | } |
| 61 | |
| 62 | std::string cmRemoveQuotes(cm::string_view str) |
| 63 | { |
| 64 | // We process only strings that have two quotes at least. |
| 65 | // Also front() and back() are only defined behavior on non empty strings. |
| 66 | if (str.size() >= 2 && // |
| 67 | str.front() == '"' && // |
| 68 | str.back() == '"') { |
| 69 | // Remove a quote from the front and back |
| 70 | str.remove_prefix(1); |
| 71 | str.remove_suffix(1); |
| 72 | } |
| 73 | return std::string(str); |
| 74 | } |
| 75 | |
| 76 | std::string cmEscapeQuotes(cm::string_view str) |
| 77 | { |
searching dependent graphs…