Chromium Code Reviews| 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_ |