diff options
Diffstat (limited to 'base/strings.cpp')
-rw-r--r-- | base/strings.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/strings.cpp b/base/strings.cpp index 7a94ad78c..46fe93995 100644 --- a/base/strings.cpp +++ b/base/strings.cpp @@ -112,5 +112,9 @@ bool EndsWithIgnoreCase(const std::string& s, const char* suffix) { return EndsWith(s, suffix, false); } +bool EqualsIgnoreCase(const std::string& lhs, const std::string& rhs) { + return strcasecmp(lhs.c_str(), rhs.c_str()) == 0; +} + } // namespace base } // namespace android |