more stream-like insertion operators

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5260 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-01-05 16:38:12 +00:00
parent 479cd5de40
commit 3ce65f6c9b
2 changed files with 17 additions and 30 deletions

View File

@@ -1076,33 +1076,6 @@ bool wxString::ToDouble(double *val) const
return !*end && (end != start);
}
// ---------------------------------------------------------------------------
// stream-like operators
// ---------------------------------------------------------------------------
wxString& wxString::operator<<(int i)
{
wxString res;
res.Printf(wxT("%d"), i);
return (*this) << res;
}
wxString& wxString::operator<<(float f)
{
wxString res;
res.Printf(wxT("%f"), f);
return (*this) << res;
}
wxString& wxString::operator<<(double d)
{
wxString res;
res.Printf(wxT("%g"), d);
return (*this) << res;
}
// ---------------------------------------------------------------------------
// formatted output
// ---------------------------------------------------------------------------