return *this;
}
+#if wxUSE_UNICODE && wxWCHAR_T_IS_REAL_TYPE
+
+wxTextInputStream& wxTextInputStream::operator>>(wchar_t& wc)
+{
+ wc = GetChar();
+
+ return *this;
+}
+
+#endif // wxUSE_UNICODE
+
wxTextInputStream& wxTextInputStream::operator>>(wxInt16& i)
{
i = (wxInt16)Read16();
#endif
}
+wxTextOutputStream& wxTextOutputStream::PutChar(wxChar c)
+{
+#if wxUSE_UNICODE
+ WriteString( wxString(&c, m_conv, 1) );
+#else
+ WriteString( wxString(&c, wxConvLocal, 1) );
+#endif
+ return *this;
+}
+
wxTextOutputStream& wxTextOutputStream::operator<<(const wxChar *string)
{
WriteString( wxString(string) );
wxTextOutputStream &endl( wxTextOutputStream &stream )
{
- return stream << wxT('\n');
+ return stream.PutChar(wxT('\n'));
}
#endif