wxString::Format() added

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-12-21 16:11:45 +00:00
parent 68ee7c4730
commit 341e7d2889
3 changed files with 63 additions and 1 deletions

View File

@@ -1102,6 +1102,27 @@ wxString& wxString::operator<<(double d)
// formatted output
// ---------------------------------------------------------------------------
/* static */
wxString wxString::Format(const wxChar *pszFormat, ...)
{
va_list argptr;
va_start(argptr, pszFormat);
wxString s = FormatV(pszFormat, argptr);
va_end(argptr);
return s;
}
/* static */
wxString wxString::FormatV(const wxChar *pszFormat, va_list argptr)
{
wxString s;
s.Printf(pszFormat, argptr);
return s;
}
int wxString::Printf(const wxChar *pszFormat, ...)
{
va_list argptr;