Removes an existing suffix character of from the string @a str. */
| 361 | |
| 362 | /** Removes an existing suffix character of from the string @a str. */ |
| 363 | inline void cmStripSuffixIfExists(std::string& str, char suffix) |
| 364 | { |
| 365 | if (cmHasSuffix(str, suffix)) { |
| 366 | str.pop_back(); |
| 367 | } |
| 368 | } |
| 369 | |
| 370 | /** Removes an existing suffix string of from the string @a str. */ |
| 371 | inline void cmStripSuffixIfExists(std::string& str, cm::string_view suffix) |
no test coverage detected
searching dependent graphs…