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

Unified Diff: base/string16.cc

Issue 9641017: Add PrintTo for string16 (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/string16.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/string16.cc
diff --git a/base/string16.cc b/base/string16.cc
index a801610fe4decc89deda1d966b86481a16af8399..ce13f9eaf497823cb061b2325bdd8fba8e04768e 100644
--- a/base/string16.cc
+++ b/base/string16.cc
@@ -75,6 +75,10 @@ namespace base {
std::ostream& operator<<(std::ostream& out, const string16& str) {
return out << UTF16ToUTF8(str);
}
+
+void PrintTo(const string16& str, std::ostream* out) {
+ *out << str;
+}
}
#endif // WCHAR_T_IS_UTF32
« no previous file with comments | « base/string16.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698