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

Unified Diff: base/strings/string_util.cc

Issue 1176583003: Move EqualsASCII to the base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@string_util2
Patch Set: Created 5 years, 6 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/strings/string_util.h ('k') | chrome/browser/banners/app_banner_data_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/strings/string_util.cc
diff --git a/base/strings/string_util.cc b/base/strings/string_util.cc
index 9fd823aa964e847619c55f53800238c270e368f0..cc7769343b5a592a2d081c89e3203dc82be8f720 100644
--- a/base/strings/string_util.cc
+++ b/base/strings/string_util.cc
@@ -476,14 +476,14 @@ bool LowerCaseEqualsASCII(const char16* a_begin,
return DoLowerCaseEqualsASCII(a_begin, a_end, b);
}
-} // namespace base
-
-bool EqualsASCII(const string16& a, const base::StringPiece& b) {
+bool EqualsASCII(const string16& a, const StringPiece& b) {
if (a.length() != b.length())
return false;
return std::equal(b.begin(), b.end(), a.begin());
}
+} // namespace base
+
bool StartsWithASCII(const std::string& str,
const std::string& search,
bool case_sensitive) {
« no previous file with comments | « base/strings/string_util.h ('k') | chrome/browser/banners/app_banner_data_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698