]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/string.cpp
wxToolTip
[wxWidgets.git] / src / common / string.cpp
index 5329f085e2a062bfa271e9282dac0a1278fa45a8..deb0d439782efe9f4830c2a74ceb33edec87f4a3 100644 (file)
@@ -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
 // ---------------------------------------------------------------------------