// Operators
wxTextInputStream& operator>>(wxString& line);
- wxTextInputStream& operator>>(wxInt8& c);
+ wxTextInputStream& operator>>(wxChar& c);
wxTextInputStream& operator>>(wxInt16& i);
wxTextInputStream& operator>>(wxInt32& i);
- wxTextInputStream& operator>>(wxUint8& c);
wxTextInputStream& operator>>(wxUint16& i);
wxTextInputStream& operator>>(wxUint32& i);
wxTextInputStream& operator>>(double& i);
wxTextOutputStream& operator<<(const wxChar *string);
wxTextOutputStream& operator<<(const wxString& string);
- wxTextOutputStream& operator<<(wxInt8 c);
+ wxTextOutputStream& operator<<(wxChar c);
wxTextOutputStream& operator<<(wxInt16 c);
wxTextOutputStream& operator<<(wxInt32 c);
- wxTextOutputStream& operator<<(wxUint8 c);
wxTextOutputStream& operator<<(wxUint16 c);
wxTextOutputStream& operator<<(wxUint32 c);
wxTextOutputStream& operator<<(double f);
return *this;
}
-wxTextInputStream& wxTextInputStream::operator>>(char& c)
+wxTextInputStream& wxTextInputStream::operator>>(wxChar& c)
{
- m_input->Read(&c, 1);
+ // TODO
+/*
+ m_input->Read(&c, sizeof(wxChar));
+*/
return *this;
}
return *this;
}
-wxTextOutputStream& wxTextOutputStream::operator<<(char c)
+wxTextOutputStream& wxTextOutputStream::operator<<(wxChar c)
{
- m_output->Write(&c, 1);
+ wxString tmp_str;
+ tmp_str.Printf("%c", c);
+ WriteString(tmp_str);
return *this;
}