cmStringAlgorithms: Add cmRemoveQuotes

- Add `cmRemoveQuotes` function to cmStringAlgorithms
- Remove unused removeQuotes inline functions
This commit is contained in:
Sebastian Holtermann
2019-08-08 13:33:58 +02:00
parent 242435a9c8
commit 27090096ef
5 changed files with 40 additions and 16 deletions
+3
View File
@@ -41,6 +41,9 @@ inline bool cmIsSpace(char ch)
/** Returns a string that has whitespace removed from the start and the end. */
std::string cmTrimWhitespace(cm::string_view str);
/** Returns a string that has quotes removed from the start and the end. */
std::string cmRemoveQuotes(cm::string_view str);
/** Escape quotes in a string. */
std::string cmEscapeQuotes(cm::string_view str);