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

Side by Side Diff: base/string16.cc

Issue 6410105: run iwyu on base! Base URL: svn://svn.chromium.org/chrome/trunk/src/base
Patch Set: Created 9 years, 10 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/shared_memory_posix.cc ('k') | base/string_number_conversions.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <stdio.h>
6 #include <string.h>
7 #include <string>
8
5 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "build/build_config.h"
6 11
7 #if defined(WCHAR_T_IS_UTF16) 12 #if defined(WCHAR_T_IS_UTF16)
8 13
9 #error This file should not be used on 2-byte wchar_t systems 14 #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 15 // 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 16 // definitions below can be used, or the host system's wide character
12 // functions like wmemcmp can be wrapped. 17 // functions like wmemcmp can be wrapped.
13 18
14 #elif defined(WCHAR_T_IS_UTF32) 19 #elif defined(WCHAR_T_IS_UTF32)
15 20
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 76
72 template class std::basic_string<char16, base::string16_char_traits>; 77 template class std::basic_string<char16, base::string16_char_traits>;
73 78
74 namespace base { 79 namespace base {
75 std::ostream& operator<<(std::ostream& out, const string16& str) { 80 std::ostream& operator<<(std::ostream& out, const string16& str) {
76 return out << UTF16ToUTF8(str); 81 return out << UTF16ToUTF8(str);
77 } 82 }
78 } 83 }
79 84
80 #endif // WCHAR_T_IS_UTF32 85 #endif // WCHAR_T_IS_UTF32
OLDNEW
« no previous file with comments | « base/shared_memory_posix.cc ('k') | base/string_number_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698