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

Side by Side Diff: base/strings/string_piece.h

Issue 1125773004: Pull in ASCII<->UTF16 from Chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/mini_chromium@master
Patch Set: Created 5 years, 7 months 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « base/base.gyp ('k') | base/strings/string_util.h » ('j') | base/strings/string_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698