OLD | NEW |
1 // Copyright 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright 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 MINI_CHROMIUM_BASE_STRINGS_STRING_PIECE_H_ | 5 #ifndef MINI_CHROMIUM_BASE_STRINGS_STRING_PIECE_H_ |
6 #define MINI_CHROMIUM_BASE_STRINGS_STRING_PIECE_H_ | 6 #define MINI_CHROMIUM_BASE_STRINGS_STRING_PIECE_H_ |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <iterator> | 9 #include <iterator> |
10 #include <ostream> | 10 #include <ostream> |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 template<typename StringType> | 150 template<typename StringType> |
151 std::ostream& operator<<(std::ostream& ostream, | 151 std::ostream& operator<<(std::ostream& ostream, |
152 const BasicStringPiece<StringType>& string_piece) { | 152 const BasicStringPiece<StringType>& string_piece) { |
153 ostream.write(string_piece.data(), string_piece.size()); | 153 ostream.write(string_piece.data(), string_piece.size()); |
154 return ostream; | 154 return ostream; |
155 } | 155 } |
156 | 156 |
157 typedef BasicStringPiece<std::string> StringPiece; | 157 typedef BasicStringPiece<std::string> StringPiece; |
158 typedef BasicStringPiece<string16> StringPiece16; | 158 typedef BasicStringPiece<string16> StringPiece16; |
159 | 159 |
160 } // namespace base; | 160 } // namespace base |
161 | 161 |
162 #endif // MINI_CHROMIUM_BASE_STRINGS_STRING_PIECE_H_ | 162 #endif // MINI_CHROMIUM_BASE_STRINGS_STRING_PIECE_H_ |
OLD | NEW |