]> git.saurik.com Git - wxWidgets.git/commitdiff
added wxTextInputStream::ReadChar() (part of patch 792932)
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 26 Sep 2003 20:15:38 +0000 (20:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 26 Sep 2003 20:15:38 +0000 (20:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
docs/latex/wx/txtstrm.tex
include/wx/txtstrm.h

index 4ab6e287cd9e650279f873489ba56a8f5a94dad7..46eeadd8266a09de14321e45c457bc7d1bf6477d 100644 (file)
@@ -63,7 +63,8 @@ All:
 - wxHTTP::GetResponse() added (David Nock)
 - added conversions to/from UTF 16/32 LE/BE (Andreas Pflug)
 - wxFileName::Normalize(wxPATH_NORM_ALL) doesn't lower filename case any more
-- seeveral wxZlibStreams bug fixes enhancements (M.J.Wetherell)
+- added wxTextInputStream::ReadChar() (M.J.Wetherell)
+- several wxZlibStreams bug fixes enhancements (M.J.Wetherell)
 
 All (GUI):
 
index d0a26353dd777a929d9e9cbb2cad30d81fc8a6f5..50d70b79e40f7c0c9a21e48ab8ded3f5fafa4e9f 100644 (file)
@@ -123,6 +123,12 @@ Reads a 32 bit signed integer from the stream.
 See \helpref{wxTextInputStream::Read8}{wxtextinputstreamread8} for the
 description of the {\it base} parameter.
 
+\membersection{wxTextInputStream::ReadChar}\label{wxtextinputstreamreadchar}
+
+\func{wxChar}{wxTextInputStream::ReadChar}{\void}
+
+Reads a character, returns $0$ if there are no more characters in the stream.
+
 \membersection{wxTextInputStream::ReadDouble}
 
 \func{double}{ReadDouble}{\void}
index 313c7d6c69f21152016814be8e77a88f31ce16fc..83b2f5a002728774c912f4d7aa027bccde426cfb 100644 (file)
@@ -56,6 +56,7 @@ public:
     wxString ReadString();  // deprecated: use ReadLine or ReadWord instead
     wxString ReadLine();
     wxString ReadWord();
+    wxChar   GetChar() { wxChar c = NextChar(); return c != wxEOT ? c : 0; }
 
     wxString GetStringSeparators() const { return m_separators; }
     void SetStringSeparators(const wxString &c) { m_separators = c; }