X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/378b05f7f86eda83452d67f182afc62a0f9b982f..edbd0635f283adfe7aeb5c551e199493d05b6cf5:/include/wx/string.h?ds=sidebyside diff --git a/include/wx/string.h b/include/wx/string.h index cf7a45ac25..a47ca920c5 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -705,6 +705,8 @@ public: void clear() { Empty(); } // returns true if the string is empty bool empty() const { return IsEmpty(); } + // inform string about planned change in size + void reserve(size_t size) { Alloc(size); } // lib.string.access // return the character at position n @@ -857,7 +859,8 @@ public: const wxChar* sz, size_t nCount = npos) const; // substring extraction - wxString substr(size_t nStart = 0, size_t nLen = npos) const; + wxString substr(size_t nStart = 0, size_t nLen = npos) const + { return Mid(nStart, nLen); } #endif // wxSTD_STRING_COMPATIBILITY };