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

Side by Side Diff: base/string16.h

Issue 9652005: base: Add more BASE_EXPORT macros (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/mac/foundation_util.h ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 // WHAT: 9 // WHAT:
10 // A version of std::basic_string that provides 2-byte characters even when 10 // A version of std::basic_string that provides 2-byte characters even when
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // std::basic_string<char> (string) and std::basic_string<wchar_t> (wstring). 157 // std::basic_string<char> (string) and std::basic_string<wchar_t> (wstring).
158 // 158 //
159 // This also works around a Mac OS X linker bug in ld64-85.2.1 (Xcode 3.1.2), 159 // This also works around a Mac OS X linker bug in ld64-85.2.1 (Xcode 3.1.2),
160 // in which the linker does not fully coalesce symbols when dead code 160 // in which the linker does not fully coalesce symbols when dead code
161 // stripping is enabled. This bug causes the memory errors described above 161 // stripping is enabled. This bug causes the memory errors described above
162 // to occur even when a std::basic_string<> does not cross shared library 162 // to occur even when a std::basic_string<> does not cross shared library
163 // boundaries, such as in statically-linked executables. 163 // boundaries, such as in statically-linked executables.
164 // 164 //
165 // TODO(mark): File this bug with Apple and update this note with a bug number. 165 // TODO(mark): File this bug with Apple and update this note with a bug number.
166 166
167 extern template class std::basic_string<char16, base::string16_char_traits>; 167 extern template
168 class BASE_EXPORT std::basic_string<char16, base::string16_char_traits>;
168 169
169 typedef std::basic_string<char16, base::string16_char_traits> string16; 170 typedef std::basic_string<char16, base::string16_char_traits> string16;
170 171
171 namespace base { 172 namespace base {
172 BASE_EXPORT extern std::ostream& operator<<(std::ostream& out, 173 BASE_EXPORT extern std::ostream& operator<<(std::ostream& out,
173 const string16& str); 174 const string16& str);
174 } 175 }
175 176
176 #endif // WCHAR_T_IS_UTF32 177 #endif // WCHAR_T_IS_UTF32
177 178
178 #endif // BASE_STRING16_H_ 179 #endif // BASE_STRING16_H_
OLDNEW
« no previous file with comments | « base/mac/foundation_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698