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

Unified Diff: base/strings/string_util.h

Issue 1233043003: Remove some legacy versions of StartsWith and EndsWith. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « base/android/library_loader/library_prefetcher.cc ('k') | base/strings/string_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/strings/string_util.h
diff --git a/base/strings/string_util.h b/base/strings/string_util.h
index d7a08c869bcba0e18b4c842f1a454d3ff4c9f6f4..755215c0850da117aa664fbc67a10285d3054456 100644
--- a/base/strings/string_util.h
+++ b/base/strings/string_util.h
@@ -381,19 +381,6 @@ inline bool StartsWithASCII(const std::string& str,
case_sensitive ? CompareCase::SENSITIVE
: CompareCase::INSENSITIVE_ASCII);
}
-BASE_EXPORT bool StartsWith(const string16& str,
- const string16& search,
- bool case_sensitive);
-inline bool EndsWith(const std::string& str,
- const std::string& search,
- bool case_sensitive) {
- return EndsWith(StringPiece(str), StringPiece(search),
- case_sensitive ? CompareCase::SENSITIVE
- : CompareCase::INSENSITIVE_ASCII);
-}
-BASE_EXPORT bool EndsWith(const string16& str,
- const string16& search,
- bool case_sensitive);
// Determines the type of ASCII character, independent of locale (the C
// library versions will change based on locale).
« no previous file with comments | « base/android/library_loader/library_prefetcher.cc ('k') | base/strings/string_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698