From bcda793a4e04931fcbae5af08233dad4436225e8 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 26 Sep 2003 20:15:38 +0000 Subject: [PATCH] added wxTextInputStream::ReadChar() (part of patch 792932) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 3 ++- docs/latex/wx/txtstrm.tex | 6 ++++++ include/wx/txtstrm.h | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/changes.txt b/docs/changes.txt index 4ab6e287cd..46eeadd826 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -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): diff --git a/docs/latex/wx/txtstrm.tex b/docs/latex/wx/txtstrm.tex index d0a26353dd..50d70b79e4 100644 --- a/docs/latex/wx/txtstrm.tex +++ b/docs/latex/wx/txtstrm.tex @@ -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} diff --git a/include/wx/txtstrm.h b/include/wx/txtstrm.h index 313c7d6c69..83b2f5a002 100644 --- a/include/wx/txtstrm.h +++ b/include/wx/txtstrm.h @@ -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; } -- 2.45.2