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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user