added operator>>(wchar_t)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-11-16 12:07:03 +00:00
parent bcb251a0c1
commit fcbe123e48

View File

@ -252,6 +252,17 @@ wxTextInputStream& wxTextInputStream::operator>>(char& c)
return *this;
}
#if wxUSE_UNICODE && wxWCHAR_T_IS_REAL_TYPE
wxTextInputStream& wxTextInputStream::operator>>(wchar_t& wc)
{
wc = GetChar();
return *this;
}
#endif // wxUSE_UNICODE
wxTextInputStream& wxTextInputStream::operator>>(wxInt16& i)
{
i = (wxInt16)Read16();