diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/string_util.cc | 5 | ||||
-rw-r--r-- | base/string_util.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/base/string_util.cc b/base/string_util.cc index a62b905..11ac623 100644 --- a/base/string_util.cc +++ b/base/string_util.cc @@ -851,6 +851,11 @@ bool EndsWithT(const STR& str, const STR& search, bool case_sensitive) { } } +bool EndsWith(const std::string& str, const std::string& search, + bool case_sensitive) { + return EndsWithT(str, search, case_sensitive); +} + bool EndsWith(const std::wstring& str, const std::wstring& search, bool case_sensitive) { return EndsWithT(str, search, case_sensitive); diff --git a/base/string_util.h b/base/string_util.h index 1c58e91..89caf4f 100644 --- a/base/string_util.h +++ b/base/string_util.h @@ -291,6 +291,9 @@ bool StartsWith(const string16& str, bool case_sensitive); // Returns true if str ends with search, or false otherwise. +bool EndsWith(const std::string& str, + const std::string& search, + bool case_sensitive); bool EndsWith(const std::wstring& str, const std::wstring& search, bool case_sensitive); |