How can I access certain elements in a TString.
In C++ you can do something like
char* myStr;
string newStr(myStr+7,3);
to get myStr[7] to myStr[9]
Is there a similar method for TString?
Niels
How can I access certain elements in a TString.
In C++ you can do something like
char* myStr;
string newStr(myStr+7,3);
to get myStr[7] to myStr[9]
Is there a similar method for TString?
Niels
This works:
TCut cut;
char* dummy=cut;
TString newStr(dummy+7,3);
But I don’t know if this is the most elegant form?
Niels
Hi Niels,
You can see the examples provided in $ROOTSYS/test/tstring.cxx
Cheers, Ilka