| 96 | } |
| 97 | |
| 98 | bool StartsWithIgnoreCase(const std::string& s, const char* prefix) { |
| 99 | return strncasecmp(s.c_str(), prefix, strlen(prefix)) == 0; |
| 100 | } |
| 101 | |
| 102 | bool StartsWithIgnoreCase(const std::string& s, const std::string& prefix) { |
| 103 | return strncasecmp(s.c_str(), prefix.c_str(), prefix.size()) == 0; |