Index: base/strings/string_util.h |
diff --git a/base/strings/string_util.h b/base/strings/string_util.h |
index a573e227df96f6d83ff9febd7695a8a75c854138..e20bbf0a40c59f9440a23812ca7e8723dd2c9dec 100644 |
--- a/base/strings/string_util.h |
+++ b/base/strings/string_util.h |
@@ -249,21 +249,11 @@ BASE_EXPORT bool IsStringUTF8(const std::string& str); |
BASE_EXPORT bool IsStringASCII(const StringPiece& str); |
BASE_EXPORT bool IsStringASCII(const string16& str); |
-} // namespace base |
- |
-#if defined(OS_WIN) |
-#include "base/strings/string_util_win.h" |
-#elif defined(OS_POSIX) |
-#include "base/strings/string_util_posix.h" |
-#else |
-#error Define string operations appropriately for your platform |
-#endif |
- |
// Converts the elements of the given string. This version uses a pointer to |
// clearly differentiate it from the non-pointer variant. |
template <class str> inline void StringToLowerASCII(str* s) { |
for (typename str::iterator i = s->begin(); i != s->end(); ++i) |
- *i = base::ToLowerASCII(*i); |
+ *i = ToLowerASCII(*i); |
} |
template <class str> inline str StringToLowerASCII(const str& s) { |
@@ -273,6 +263,16 @@ template <class str> inline str StringToLowerASCII(const str& s) { |
return output; |
} |
+} // namespace base |
+ |
+#if defined(OS_WIN) |
+#include "base/strings/string_util_win.h" |
+#elif defined(OS_POSIX) |
+#include "base/strings/string_util_posix.h" |
+#else |
+#error Define string operations appropriately for your platform |
+#endif |
+ |
// Converts the elements of the given string. This version uses a pointer to |
// clearly differentiate it from the non-pointer variant. |
template <class str> inline void StringToUpperASCII(str* s) { |