X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7a906e1a2125a3db29b9777ad2384485d2f78ea4..e94d0c1e66cc70f851a1b87f8a6ee19834572d25:/src/common/string.cpp diff --git a/src/common/string.cpp b/src/common/string.cpp index 36efc0ce8e..9b05497c37 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -96,6 +96,25 @@ wxSTD ostream& operator<<(wxSTD ostream& os, const wxWCharBuffer& str) } #endif +#if wxUSE_UNICODE && defined(HAVE_WOSTREAM) + +wxSTD wostream& operator<<(wxSTD wostream& wos, const wxString& str) +{ + return wos << str.wc_str(); +} + +wxSTD wostream& operator<<(wxSTD wostream& wos, const wxCStrData& str) +{ + return wos << str.AsWChar(); +} + +wxSTD wostream& operator<<(wxSTD wostream& wos, const wxWCharBuffer& str) +{ + return wos << str.data(); +} + +#endif // wxUSE_UNICODE && defined(HAVE_WOSTREAM) + #endif // wxUSE_STD_IOSTREAM // ===========================================================================