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

Unified Diff: base/strings/string_util.cc

Issue 1182183003: Move EndsWith to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/app/delay_load_hook_win.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 c1fc05673b2de00776009c0cc29583b441c55a3f..ef77b3562cd7569ae191d4f3f7cc714131a678e7 100644
--- a/base/strings/string_util.cc
+++ b/base/strings/string_util.cc
@@ -503,8 +503,6 @@ bool StartsWith(const string16& str,
CaseInsensitiveCompare<char16>());
}
-} // namespace base
-
template <typename STR>
bool EndsWithT(const STR& str, const STR& search, bool case_sensitive) {
size_t str_length = str.length();
@@ -528,6 +526,8 @@ bool EndsWith(const string16& str, const string16& search,
return EndsWithT(str, search, case_sensitive);
}
+} // namespace base
+
static const char* const kByteStringsUnlocalized[] = {
" B",
" kB",
« no previous file with comments | « base/strings/string_util.h ('k') | chrome/app/delay_load_hook_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698