| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/strings/string16.h" | 5 #include "base/strings/string16.h" |
| 6 | 6 |
| 7 #if defined(WCHAR_T_IS_UTF16) | 7 #if defined(WCHAR_T_IS_UTF16) && !defined(_AIX) |
| 8 | 8 |
| 9 #error This file should not be used on 2-byte wchar_t systems | 9 #error This file should not be used on 2-byte wchar_t systems |
| 10 // If this winds up being needed on 2-byte wchar_t systems, either the | 10 // If this winds up being needed on 2-byte wchar_t systems, either the |
| 11 // definitions below can be used, or the host system's wide character | 11 // definitions below can be used, or the host system's wide character |
| 12 // functions like wmemcmp can be wrapped. | 12 // functions like wmemcmp can be wrapped. |
| 13 | 13 |
| 14 #elif defined(WCHAR_T_IS_UTF32) | 14 #elif defined(WCHAR_T_IS_UTF32) |
| 15 | 15 |
| 16 #include <ostream> | 16 #include <ostream> |
| 17 | 17 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 void PrintTo(const string16& str, std::ostream* out) { | 74 void PrintTo(const string16& str, std::ostream* out) { |
| 75 *out << str; | 75 *out << str; |
| 76 } | 76 } |
| 77 | 77 |
| 78 } // namespace base | 78 } // namespace base |
| 79 | 79 |
| 80 template class std::basic_string<base::char16, base::string16_char_traits>; | 80 template class std::basic_string<base::char16, base::string16_char_traits>; |
| 81 | 81 |
| 82 #endif // WCHAR_T_IS_UTF32 | 82 #endif // WCHAR_T_IS_UTF32 |
| OLD | NEW |