Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(893)

Unified Diff: base/string_util.h

Issue 197018: Strip .plugin off of Mac plugin names when showing the crash info bar. (Closed)
Patch Set: Add a test with the match in the middle Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/string_util.cc » ('j') | base/string_util_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/string_util.h
diff --git a/base/string_util.h b/base/string_util.h
index c7f31153172ca22a688a718cad1825bea248c62d..0ae0185b057f599c66738c500386f07fcc928ce3 100644
--- a/base/string_util.h
+++ b/base/string_util.h
@@ -363,6 +363,12 @@ bool StartsWith(const std::wstring& str,
const std::wstring& search,
bool case_sensitive);
+// Returns true if str ends with search, or false otherwise.
+bool EndsWith(const std::wstring& str,
+ const std::wstring& search,
+ bool case_sensitive);
+
+
// Determines the type of ASCII character, independent of locale (the C
// library versions will change based on locale).
template <typename Char>
« no previous file with comments | « no previous file | base/string_util.cc » ('j') | base/string_util_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698