Valeriy Onuchin wrote: > Hi Mina Nozar, >ROOT sources are open. You can borrow the code from >http://root.cern.ch/root/html/src/TString.cxx.html#TString:Strip > >Regards. Valeriy > > Hi Valeriy, Thanks, I did see this method TSubString <http://root.cern.ch/root/html/TSubString.html> TString::Strip <http://root.cern.ch/root/html/TString.html#TString:Strip>(EStripType st, char <http://root.cern.ch/root/html/ListOfTypes.html#char> c) const { // Just use the "non-const" version, adjusting the return type. return ((TString <http://root.cern.ch/root/html/TString.html>*)this)->Strip <http://root.cern.ch/root/html/src/TString.cxx.html#TString:Strip>(st,c); } but since I didn't know what an EStripType type was defined as, I couldn't use it. (I should have looked further/deeper). I just took a look at the source tree and see EStripType defined as: enum EStripType { kLeading = 0x1, kTrailing = 0x2, kBoth = 0x3 }; This will work. Thanks, Mina
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET