Added Upper() and Lower() - return the copy of the string converted to upper
or lower case (unlike MakeXXX() counterparts which change the string itself) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -445,10 +445,14 @@ public:
|
|||||||
wxString After(char ch) const { return AfterFirst(ch); }
|
wxString After(char ch) const { return AfterFirst(ch); }
|
||||||
|
|
||||||
// case conversion
|
// case conversion
|
||||||
// convert to upper case, return the string itself
|
// convert to upper case in place, return the string itself
|
||||||
wxString& MakeUpper();
|
wxString& MakeUpper();
|
||||||
// convert to lower case, return the string itself
|
// convert to upper case, return the copy of the string
|
||||||
|
wxString Upper() const { wxString s(*this); return s.MakeUpper(); }
|
||||||
|
// convert to lower case in place, return the string itself
|
||||||
wxString& MakeLower();
|
wxString& MakeLower();
|
||||||
|
// convert to lower case, return the copy of the string
|
||||||
|
wxString Lower() const { wxString s(*this); return s.MakeLower(); }
|
||||||
|
|
||||||
// trimming/padding whitespace (either side) and truncating
|
// trimming/padding whitespace (either side) and truncating
|
||||||
// remove spaces from left or from right (default) side
|
// remove spaces from left or from right (default) side
|
||||||
|
Reference in New Issue
Block a user