Re: [ROOT] How to extract from string

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Mon Jul 22 2002 - 19:05:59 MEST


How is the end of the substring determined? Via regexp, length, etc?

-- Fons


On Mon, 2002-07-22 at 17:17, Shawn Kwang wrote:
> Roottalk,
> 
>     I want to extract a portion of a string (TString class).  All I know is 
> that the first character of the portion to be extracted starts at position 
> 67.  The portion is not constant so I can't use TString::Substring (since it 
> looks for a pattern).
> 
>     I thought there might be a ROOT function that does what I want, 
> TString:Strip but I am not sure.
> 
> TIA,
> Shawn Kwang
-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:00 MET