| 427 | } |
| 428 | |
| 429 | inline bool contains (std::string_view t, std::string_view s) { return t.find (s) != std::string::npos; } |
| 430 | inline bool startsWith (std::string_view t, char s) { return ! t.empty() && t.front() == s; } |
| 431 | inline bool endsWith (std::string_view t, char s) { return ! t.empty() && t.back() == s; } |
| 432 |