From 297f161a02d79cef88f55906722534bee2da730b Mon Sep 17 00:00:00 2001 From: Ryan Harrison Date: Wed, 28 Jun 2017 15:57:51 -0400 Subject: Add << overload for CFX_StringCTemplate classes BUG=pdfium:790 Change-Id: I4a3623dc0daac6ff8407c09cd00e9f2e4e5dd2d7 Reviewed-on: https://pdfium-review.googlesource.com/7051 Commit-Queue: Ryan Harrison Reviewed-by: Tom Sepez --- core/fxcrt/cfx_widestring.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'core/fxcrt/cfx_widestring.cpp') diff --git a/core/fxcrt/cfx_widestring.cpp b/core/fxcrt/cfx_widestring.cpp index 46192de4ab..70a0cb63be 100644 --- a/core/fxcrt/cfx_widestring.cpp +++ b/core/fxcrt/cfx_widestring.cpp @@ -1058,3 +1058,12 @@ std::ostream& operator<<(std::ostream& os, const CFX_WideString& str) { os << str.UTF8Encode(); return os; } + +std::wostream& operator<<(std::wostream& os, const CFX_WideStringC& str) { + return os.write(str.c_str(), str.GetLength()); +} + +std::ostream& operator<<(std::ostream& os, const CFX_WideStringC& str) { + os << FX_UTF8Encode(str); + return os; +} -- cgit v1.2.3