X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53dfbfa5c994400f8dfddc8ef3ee3d1e7e0146fe..c5d7b7d20ba810df4ad66f6826c529a106e81577:/include/wx/string.h diff --git a/include/wx/string.h b/include/wx/string.h index 32eb250aa9..cb8d6bccfe 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -2210,11 +2210,13 @@ public: // get last nCount characters wxString Right(size_t nCount) const; // get all characters before the first occurrence of ch - // (returns the whole string if ch not found) - wxString BeforeFirst(wxUniChar ch) const; + // (returns the whole string if ch not found) and also put everything + // following the first occurrence of ch into rest if it's non-NULL + wxString BeforeFirst(wxUniChar ch, wxString *rest = NULL) const; // get all characters before the last occurrence of ch - // (returns empty string if ch not found) - wxString BeforeLast(wxUniChar ch) const; + // (returns empty string if ch not found) and also put everything + // following the last occurrence of ch into rest if it's non-NULL + wxString BeforeLast(wxUniChar ch, wxString *rest = NULL) const; // get all characters after the first occurrence of ch // (returns empty string if ch not found) wxString AfterFirst(wxUniChar ch) const;