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

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

Issue 16331011: Move string files in base/ to the string subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « base/stringprintf_unittest.cc ('k') | base/strings/string16.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_STRINGS_STRING16_H_
6 #define BASE_STRING16_H_ 6 #define BASE_STRINGS_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
11 // string16. We also define char16, which string16 is based upon. 11 // string16. We also define char16, which string16 is based upon.
12 // 12 //
13 // WHY: 13 // WHY:
14 // On Windows, wchar_t is 2 bytes, and it can conveniently handle UTF-16/UCS-2 14 // On Windows, wchar_t is 2 bytes, and it can conveniently handle UTF-16/UCS-2
15 // data. Plenty of existing code operates on strings encoded as UTF-16. 15 // data. Plenty of existing code operates on strings encoded as UTF-16.
16 // 16 //
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 extern template 179 extern template
180 class BASE_EXPORT std::basic_string<base::char16, base::string16_char_traits>; 180 class BASE_EXPORT std::basic_string<base::char16, base::string16_char_traits>;
181 181
182 #endif // WCHAR_T_IS_UTF32 182 #endif // WCHAR_T_IS_UTF32
183 183
184 // TODO(brettw) update users of string16 to use the namespace and remove 184 // TODO(brettw) update users of string16 to use the namespace and remove
185 // this "using". 185 // this "using".
186 using base::char16; 186 using base::char16;
187 using base::string16; 187 using base::string16;
188 188
189 #endif // BASE_STRING16_H_ 189 #endif // BASE_STRINGS_STRING16_H_
OLDNEW
« no previous file with comments | « base/stringprintf_unittest.cc ('k') | base/strings/string16.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698