diff options
author | Ryan Harrison <rharrison@chromium.org> | 2017-06-28 15:57:51 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-06-28 20:12:34 +0000 |
commit | 297f161a02d79cef88f55906722534bee2da730b (patch) | |
tree | 41299229003dceb2d06b6acbb84fc68770604788 /core/fxcrt/cfx_widestring.cpp | |
parent | 9ba8fbc02e86a6b7cb5c4142d9481ae3238c1ec4 (diff) | |
download | pdfium-297f161a02d79cef88f55906722534bee2da730b.tar.xz |
Add << overload for CFX_StringCTemplate classeschromium/3144
BUG=pdfium:790
Change-Id: I4a3623dc0daac6ff8407c09cd00e9f2e4e5dd2d7
Reviewed-on: https://pdfium-review.googlesource.com/7051
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcrt/cfx_widestring.cpp')
-rw-r--r-- | core/fxcrt/cfx_widestring.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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; +} |