Hello everybody.
I am looking for a way of searching a TString (say haystack) by another TString (say foo) and replacing it by a third (say bar). In PHP this is done by the function str_replace, i.e. the statement would look something like
In C++, one could program this oneself by making use of string::find and string::replace. However, string ain’t TString. I looked through the manual http://root.cern.ch/root/html/TString.html, but it appears to me, that there only is a function for searching for the first and last appearence of a single char in a TString. So,
have I overlooked something or is there no way of implementing the find-procedure for TStrings like it is available for ordinary strings? Or does any of you have a better idea how I could solve this issue?
Thank you in advance.
heico