library: libCore
#include "TString.h"

TSubString


class description - header file
viewCVS header

class TSubString

Inheritance Inherited Members Includes Libraries
Class Charts

Function Members (Methods)

Display options:
Show inherited
Show non-public
public:
TSubString(const TSubString& s)
~TSubString()
const char*Data() const
Bool_tIsNull() const
Ssiz_tLength() const
intoperator!() const
char&operator()(Ssiz_t i)
charoperator()(Ssiz_t i) const
TSubString&operator=(const char* s)
TSubString&operator=(const TString& s)
TSubString&operator=(const TSubString&)
char&operator[](Ssiz_t i)
charoperator[](Ssiz_t i) const
Ssiz_tStart() const
voidToLower()
voidToUpper()
protected:
voidAssertElement(Ssiz_t i) const
voidSubStringError(Ssiz_t, Ssiz_t, Ssiz_t) const
private:
TSubString(const TString& s, Ssiz_t start, Ssiz_t len)

Data Members

private:
TString*fStrReferenced string
Ssiz_tfBeginIndex of starting character
Ssiz_tfExtentLength of TSubString

Class Description

const char * Data()
{ return fStr->Data() + fBegin; }
char operator[](Ssiz_t i)
 Access to elements of sub-string with bounds checking
{ AssertElement(i); return fStr->fData[fBegin+i]; }
char operator()(Ssiz_t i)
{ return fStr->fData[fBegin+i]; }
Ssiz_t Length()
{ return fNchars; }
char & operator[](Ssiz_t i)
{ return ((char*)(this+1))[i]; }
TSubString(const TString &s, Ssiz_t start, Ssiz_t len)
 NB: the only constructor is private
void SubStringError(Ssiz_t, Ssiz_t, Ssiz_t)
void AssertElement(Ssiz_t i)
TSubString(const TSubString &s)
{ }
TSubString & operator=(const char *s)
TSubString & operator=(const TString &s)
char & operator()(Ssiz_t i)
Ssiz_t Start()
{ return fBegin; }
void ToLower()
void ToUpper()
Bool_t IsNull()
 For detecting null substrings
{ return fBegin == kNPOS; }
int operator!()
{ return fBegin == kNPOS; }
TString & operator=(char s)
 Assignment

Last update: Tue Nov 21 09:38:55 2006


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.