+ wxASSERT_MSG( !base || (base > 1 && base <= 36), _T("invalid base") );
+ if(!m_input) return 0;
+
+ wxString word = ReadWord();
+ if(word.empty())
+ return 0;
+ return wxStrtoul(word.c_str(), 0, base);
+}
+
+wxUint16 wxTextInputStream::Read16(int base)
+{
+ return (wxUint16)Read32(base);
+}
+
+wxUint8 wxTextInputStream::Read8(int base)
+{
+ return (wxUint8)Read32(base);
+}
+
+wxInt32 wxTextInputStream::Read32S(int base)
+{
+ wxASSERT_MSG( !base || (base > 1 && base <= 36), _T("invalid base") );
+ if(!m_input) return 0;
+
+ wxString word = ReadWord();
+ if(word.empty())
+ return 0;
+ return wxStrtol(word.c_str(), 0, base);
+}
+
+wxInt16 wxTextInputStream::Read16S(int base)
+{
+ return (wxInt16)Read32S(base);