| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef BASE_STRING16_H_ | 5 #ifndef BASE_STRING16_H_ |
| 6 #define BASE_STRING16_H_ | 6 #define BASE_STRING16_H_ |
| 7 | 7 |
| 8 // WHAT: | 8 // WHAT: |
| 9 // A version of std::basic_string that provides 2-byte characters even when | 9 // A version of std::basic_string that provides 2-byte characters even when |
| 10 // wchar_t is not implemented as a 2-byte type. You can access this class as | 10 // wchar_t is not implemented as a 2-byte type. You can access this class as |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 117 |
| 118 static int_type eof() { | 118 static int_type eof() { |
| 119 return static_cast<int_type>(EOF); | 119 return static_cast<int_type>(EOF); |
| 120 } | 120 } |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace base | 123 } // namespace base |
| 124 | 124 |
| 125 typedef std::basic_string<char16, base::string16_char_traits> string16; | 125 typedef std::basic_string<char16, base::string16_char_traits> string16; |
| 126 | 126 |
| 127 extern std::ostream& operator<<(std::ostream& out, const string16& str); |
| 128 |
| 127 #endif // WCHAR_T_IS_UTF32 | 129 #endif // WCHAR_T_IS_UTF32 |
| 128 | 130 |
| 129 #endif // BASE_STRING16_H_ | 131 #endif // BASE_STRING16_H_ |
| OLD | NEW |