X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d364df5fee0993215bd1bb2549247729a8e9e882..118f5fbd0651e6c610a44a42a41dcf93439e820d:/include/wx/string.h diff --git a/include/wx/string.h b/include/wx/string.h index 37ad4b835b..c2202864cb 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -1056,10 +1056,14 @@ public: wxString operator()(size_t start, size_t len) const { return Mid(start, len); } - // check that the string starts with prefix and return the rest of the - // string in the provided pointer if it is not NULL, otherwise return - // false + // check if the string starts with the given prefix and return the rest + // of the string in the provided pointer if it is not NULL; otherwise + // return false bool StartsWith(const wxChar *prefix, wxString *rest = NULL) const; + // check if the string ends with the given suffix and return the + // beginning of the string before the suffix in the provided pointer if + // it is not NULL; otherwise return false + bool EndsWith(const wxChar *suffix, wxString *rest = NULL) const; // get first nCount characters wxString Left(size_t nCount) const;