Returns true if string @a str starts with the character @a prefix. */
| 301 | |
| 302 | /** Returns true if string @a str starts with the character @a prefix. */ |
| 303 | inline bool cmHasPrefix(cm::string_view str, char prefix) |
| 304 | { |
| 305 | return !str.empty() && (str.front() == prefix); |
| 306 | } |
| 307 | |
| 308 | /** Returns true if string @a str starts with string @a prefix. */ |
| 309 | inline bool cmHasPrefix(cm::string_view str, cm::string_view prefix) |
searching dependent graphs…