More Unicode stuff. Implemented wxFprintf.

Some printfs changed to wxPrintf, fprintf to wxFprintf, as well as the
usual char->wxChar and _T().


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ove Kaaven
1999-04-13 10:34:24 +00:00
parent 6d9bd0682c
commit 84fff0b395
8 changed files with 76 additions and 52 deletions

View File

@@ -752,7 +752,12 @@ wxOutputStream& wxOutputStream::operator<<(const char *string)
wxOutputStream& wxOutputStream::operator<<(wxString& string)
{
#if wxUSE_UNICODE
const wxWX2MBbuf buf = string.mb_str();
return *this << buf;
#else
return Write(string, string.Len());
#endif
}
wxOutputStream& wxOutputStream::operator<<(char c)
@@ -764,32 +769,32 @@ wxOutputStream& wxOutputStream::operator<<(short i)
{
wxString strint;
strint.Printf("%i", i);
return Write(strint, strint.Len());
strint.Printf(_T("%i"), i);
return *this << strint;
}
wxOutputStream& wxOutputStream::operator<<(int i)
{
wxString strint;
strint.Printf("%i", i);
return Write(strint, strint.Len());
strint.Printf(_T("%i"), i);
return *this << strint;
}
wxOutputStream& wxOutputStream::operator<<(long i)
{
wxString strlong;
strlong.Printf("%i", i);
return Write((const char *)strlong, strlong.Len());
strlong.Printf(_T("%i"), i);
return *this << strlong;
}
wxOutputStream& wxOutputStream::operator<<(double f)
{
wxString strfloat;
strfloat.Printf("%f", f);
return Write(strfloat, strfloat.Len());
strfloat.Printf(_T("%f"), f);
return *this << strfloat;
}
#if wxUSE_SERIAL