commit | 7872ff3fb76d35dbf90eeaabccffb70e1de33a75 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Jan 13 18:51:32 2017 -0800 |
committer | Elliott Hughes <enh@google.com> | Fri Jan 13 18:51:32 2017 -0800 |
tree | 02990eea8373ca871e38b44b4a3f62d114588f61 | |
parent | 7c2a67d7cd8c8372241bec5167cb265f45a10982 [diff] [blame] |
bootable/recovery wants EqualsIgnoreCase. Bug: N/A Test: ran tests Change-Id: I4a6ee9eba0514b8bb8fb0489f4d370964ce9c1c2
diff --git a/strings.cpp b/strings.cpp index 7a94ad7..46fe939 100644 --- a/strings.cpp +++ b/strings.cpp
@@ -112,5 +112,9 @@ 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