Dear Fons,
I've found strange behaviour of the TSubString::Data() function: it
doesn't use the TSubString::fExtent variable to return a char*
representation of SubString. So for example:
root [0] TString str("Hello");
root [1] str(0,4).Data()
(const char* 0x89287dc)"Hello"
instead of "Hell"
It is because of
inline const char* TSubString::Data() const
{ return fStr->Data() + fBegin; }
where only pointer to the whole string is returned.
I am not sure about workaround, so can you please fix it?
Best
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET