#if wxUSE_STREAMS
#include "wx/txtstrm.h"
+#include <ctype.h>
wxTextInputStream::wxTextInputStream(wxInputStream& s)
: m_input(&s)
return *this;
}
-wxTextInputStream& wxTextInputStream::operator>>(wxInt8& c)
+wxTextInputStream& wxTextInputStream::operator>>(wxChar& c)
{
- c = (wxInt8)Read8();
+ // TODO
+/*
+ m_input->Read(&c, sizeof(wxChar));
+*/
return *this;
}
return *this;
}
-wxTextInputStream& wxTextInputStream::operator>>(wxUint8& c)
-{
- c = Read8();
- return *this;
-}
-
wxTextInputStream& wxTextInputStream::operator>>(wxUint16& i)
{
i = Read16();
return *this;
}
-wxTextOutputStream& wxTextOutputStream::operator<<(wxInt8 c)
+wxTextOutputStream& wxTextOutputStream::operator<<(wxChar c)
{
- Write8((wxUint8)c);
+ wxString tmp_str;
+ tmp_str.Printf(_T("%c"), c);
+ WriteString(tmp_str);
return *this;
}
return *this;
}
-wxTextOutputStream& wxTextOutputStream::operator<<(wxUint8 c)
-{
- Write8(c);
- return *this;
-}
-
wxTextOutputStream& wxTextOutputStream::operator<<(wxUint16 c)
{
Write16(c);