git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45940
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// get last character
wxUniChar Last() const
- {
- wxASSERT_MSG( !empty(), _T("wxString: index out of bounds") );
-
- return at(length() - 1);
- }
+ {
+ wxASSERT_MSG( !empty(), _T("wxString: index out of bounds") );
+ return *rbegin();
+ }
// get writable last character
wxUniCharRef Last()
- {
- wxASSERT_MSG( !empty(), _T("wxString: index out of bounds") );
- return at(length() - 1);
- }
+ {
+ wxASSERT_MSG( !empty(), _T("wxString: index out of bounds") );
+ return *rbegin();
+ }
/*
Note that we we must define all of the overloads below to avoid