Returns true if string @a str ends with the character @a suffix. */
| 330 | |
| 331 | /** Returns true if string @a str ends with the character @a suffix. */ |
| 332 | inline bool cmHasSuffix(cm::string_view str, char suffix) |
| 333 | { |
| 334 | return !str.empty() && (str.back() == suffix); |
| 335 | } |
| 336 | |
| 337 | /** Returns true if string @a str ends with string @a suffix. */ |
| 338 | inline bool cmHasSuffix(cm::string_view str, cm::string_view suffix) |
searching dependent graphs…