X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba681060f36767a2682b8547871af2c6f8159955..301cd871a221ca5c0f1c20df50c654a3e7a388fe:/src/common/string.cpp diff --git a/src/common/string.cpp b/src/common/string.cpp index 5329f085e2..deb0d43978 100644 --- a/src/common/string.cpp +++ b/src/common/string.cpp @@ -1092,6 +1092,22 @@ int wxString::Freq(char ch) const return count; } +// convert to upper case, return the copy of the string +wxString wxString::Upper() const +{ wxString s(*this); return s.MakeUpper(); } + +// convert to lower case, return the copy of the string +wxString wxString::Lower() const { wxString s(*this); return s.MakeLower(); } + +int wxString::sprintf(const char *pszFormat, ...) + { + va_list argptr; + va_start(argptr, pszFormat); + int iLen = PrintfV(pszFormat, argptr); + va_end(argptr); + return iLen; + } + // --------------------------------------------------------------------------- // standard C++ library string functions // ---------------------------------------------------------------------------