X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..6d20f7ae50a3238d3846052bee83d47ba7ced735:/src/common/txtstrm.cpp?ds=sidebyside diff --git a/src/common/txtstrm.cpp b/src/common/txtstrm.cpp index 36fab028f4..0290751e3c 100644 --- a/src/common/txtstrm.cpp +++ b/src/common/txtstrm.cpp @@ -97,10 +97,9 @@ wxChar wxTextInputStream::NextChar() wxChar wxTextInputStream::NextNonSeparators() { - wxChar c = (wxChar) 0; for (;;) { - c = NextChar(); + wxChar c = NextChar(); if (c == wxEOT) return (wxChar) 0; if (c != wxT('\n') && @@ -426,6 +425,17 @@ wxTextOutputStream& wxTextOutputStream::operator<<(char c) return *this; } +#if wxUSE_UNICODE && wxWCHAR_T_IS_REAL_TYPE + +wxTextOutputStream& wxTextOutputStream::operator<<(wchar_t wc) +{ + WriteString( wxString(&wc, m_conv, 1) ); + + return *this; +} + +#endif // wxUSE_UNICODE + wxTextOutputStream& wxTextOutputStream::operator<<(wxInt16 c) { wxString str;