wxString Find next? Topic is solved
wxString Find next?
wxString has void Find (const wxString &sub), which is described in the docu. I gues that void returns the first apearence of sub, but what if sub apears more than 1 time? How to find the other apearences of sub? Something like FindNext() would be helpful, but haven´t found anything with similar functionality.
Re: wxString Find next?
You probably need to use find() which uses a start parameter and call the method in a loop, using the previous result increased by one.
Pretty much the same as in here: https://stackoverflow.com/a/4034809/7267315
Pretty much the same as in here: https://stackoverflow.com/a/4034809/7267315
Re: wxString Find next?
Thanks, Didn´t noticed that function in the docu, as it was not in the list of search and replace functions. Should search more precise in the docu next time.PB wrote:You probably need to use find() which uses a start parameter and call the method in a loop, using the previous result increased by one.
Pretty much the same as in here: https://stackoverflow.com/a/4034809/7267315