rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | diff --git a/system/core/base/strings.cpp b/system/core/base/strings.cpp |
| 2 | index 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 |