Check if the string contains the prefix
| 113 | |
| 114 | // Check if the string contains the prefix |
| 115 | inline bool |
| 116 | ContainsPrefix(const std::string_view str, const std::string &prefix) |
| 117 | { |
| 118 | return str.size() < prefix.size() ? false : (strncasecmp(str.data(), prefix.data(), prefix.size()) == 0); |
| 119 | } |
| 120 | // vim: set ts=4 sw=4 et : |
no test coverage detected