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

Unified Diff: base/strings/string16.h

Issue 809563003: Build fix for previous c16 change (Closed) Base URL: https://chromium.googlesource.com/chromium/mini_chromium@master
Patch Set: Created 6 years 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/strings/string16.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/strings/string16.h
diff --git a/base/strings/string16.h b/base/strings/string16.h
index c912785ebc6d0d9d37b03748d6c60d397f8cde95..a2bd527008f4047ebc70910e167b3ba57bca276c 100644
--- a/base/strings/string16.h
+++ b/base/strings/string16.h
@@ -28,6 +28,25 @@ namespace base {
typedef uint16_t char16;
+} // namespace base
+
+#endif // WCHAR_T_IS_UTF32
+
+namespace base {
Mark Mentovai 2014/12/16 02:18:29 This is all getting a bit sloppy. How about making
scottmg 2014/12/16 17:32:23 Yeah, it's a bit messy. The common can't go at the
+
+int c16memcmp(const char16* s1, const char16* s2, size_t n);
+size_t c16len(const char16* s);
+const char16* c16memchr(const char16* s, char16 c, size_t n);
+char16* c16memmove(char16* s1, const char16* s2, size_t n);
+char16* c16memcpy(char16* s1, const char16* s2, size_t n);
+char16* c16memset(char16* s, char16 c, size_t n);
+
+} // namespace base
+
+#if defined(WCHAR_T_IS_UTF32)
+
+namespace base {
+
struct string16_char_traits {
typedef char16 char_type;
typedef int int_type;
@@ -106,15 +125,4 @@ extern template class std::basic_string<base::char16,
#endif // WCHAR_T_IS_UTF32
-namespace base {
-
-int c16memcmp(const char16* s1, const char16* s2, size_t n);
-size_t c16len(const char16* s);
-const char16* c16memchr(const char16* s, char16 c, size_t n);
-char16* c16memmove(char16* s1, const char16* s2, size_t n);
-char16* c16memcpy(char16* s1, const char16* s2, size_t n);
-char16* c16memset(char16* s, char16 c, size_t n);
-
-} // namespace base
-
#endif // MINI_CHROMIUM_BASE_STRINGS_STRING16_H_
« no previous file with comments | « no previous file | base/strings/string16.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698