blob: aeb04386b1940c5cc3afc11eec64046eb432856f [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001diff --git a/system/core/base/strings.cpp b/system/core/base/strings.cpp
2index b8775df..eceb844 100644
3--- a/system/core/base/strings.cpp
4+++ b/system/core/base/strings.cpp
5@@ -100,5 +100,9 @@ bool EndsWith(const std::string& s, const char* suffix) {
6 return s.compare(offset, suffix_length, suffix) == 0;
7 }
8
9+bool EqualsIgnoreCase(const std::string& lhs, const std::string& rhs) {
10+ return strcasecmp(lhs.c_str(), rhs.c_str()) == 0;
11+}
12+
13 } // namespace base
14 } // namespace android