ROOT logo
ROOT » GUI » GUI » TGString

class TGString: public TString


TGString and TGHotString

TGString wraps a TString and adds some graphics routines like
drawing, size of string on screen depending on font, etc.
TGHotString is a string with a "hot" character unerlined.


Function Members (Methods)

public:
TGString()
TGString(const char* s)
TGString(Int_t number)
TGString(const TGString* s)
TGString(const TGString&)
virtual~TGString()
TString&TString::Append(const char* cs)
TString&TString::Append(const TString& s)
TString&TString::Append(const char* cs, Ssiz_t n)
TString&TString::Append(const TString& s, Ssiz_t n)
TString&TString::Append(char c, Ssiz_t rep = 1)
Double_tTString::Atof() const
Int_tTString::Atoi() const
Long64_tTString::Atoll() const
Bool_tTString::BeginsWith(const char* s, TString::ECaseCompare cmp = kExact) const
Bool_tTString::BeginsWith(const TString& pat, TString::ECaseCompare cmp = kExact) const
Ssiz_tTString::Capacity() const
Ssiz_tTString::Capacity(Ssiz_t n)
TString&TString::Chop()
static TClass*Class()
static TClass*TString::Class()
voidTString::Clear()
intTString::CompareTo(const char* cs, TString::ECaseCompare cmp = kExact) const
intTString::CompareTo(const TString& st, TString::ECaseCompare cmp = kExact) const
Bool_tTString::Contains(const TRegexp& pat) const
Bool_tTString::Contains(TPRegexp& pat) const
Bool_tTString::Contains(const char* s, TString::ECaseCompare cmp = kExact) const
Bool_tTString::Contains(const TString& pat, TString::ECaseCompare cmp = kExact) const
TStringTString::Copy() const
Int_tTString::CountChar(Int_t c) const
const char*TString::Data() const
virtual voidDraw(Drawable_t id, GContext_t gc, Int_t x, Int_t y)
virtual voidDrawWrapped(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, FontStruct_t font)
Bool_tTString::EndsWith(const char* pat, TString::ECaseCompare cmp = kExact) const
virtual voidTString::FillBuffer(char*& buffer)
Ssiz_tTString::First(char c) const
Ssiz_tTString::First(const char* cs) const
voidTString::Form(const char* fmt)
static TStringTString::Format(const char* fmt)
static Ssiz_tTString::GetInitialCapacity()
Int_tGetLength() const
virtual Int_tGetLines(FontStruct_t font, UInt_t w)
static Ssiz_tTString::GetMaxWaste()
static Ssiz_tTString::GetResizeIncrement()
Bool_tTString::Gets(FILE* fp, Bool_t chop = kTRUE)
const char*GetString() const
UInt_tTString::Hash(TString::ECaseCompare cmp = kExact) const
static ULong_tTString::Hash(const void* txt, Int_t ntxt)
Ssiz_tTString::Index(const TRegexp& pat, Ssiz_t i = 0) const
Ssiz_tTString::Index(TPRegexp& pat, Ssiz_t i = 0) const
Ssiz_tTString::Index(const char* s, Ssiz_t i = 0, TString::ECaseCompare cmp = kExact) const
Ssiz_tTString::Index(const TString& s, Ssiz_t i = 0, TString::ECaseCompare cmp = kExact) const
Ssiz_tTString::Index(const TRegexp& pat, Ssiz_t* ext, Ssiz_t i = 0) const
Ssiz_tTString::Index(TPRegexp& pat, Ssiz_t* ext, Ssiz_t i = 0) const
Ssiz_tTString::Index(const char* pat, Ssiz_t patlen, Ssiz_t i, TString::ECaseCompare cmp) const
Ssiz_tTString::Index(const TString& pat, Ssiz_t patlen, Ssiz_t i, TString::ECaseCompare cmp) const
static Ssiz_tTString::InitialCapacity(Ssiz_t ic = 15)
TString&TString::Insert(Ssiz_t pos, const char* cs)
TString&TString::Insert(Ssiz_t pos, const TString& s)
TString&TString::Insert(Ssiz_t pos, const char* cs, Ssiz_t n)
TString&TString::Insert(Ssiz_t pos, const TString& s, Ssiz_t n)
virtual TClass*IsA() const
virtual TClass*TString::IsA() const
Bool_tTString::IsAlnum() const
Bool_tTString::IsAlpha() const
Bool_tTString::IsAscii() const
Bool_tTString::IsDigit() const
Bool_tTString::IsFloat() const
Bool_tTString::IsHex() const
Bool_tTString::IsNull() const
Bool_tTString::IsWhitespace() const
Ssiz_tTString::Last(char c) const
Ssiz_tTString::Length() const
static Ssiz_tTString::MaxWaste(Ssiz_t mw = 15)
Bool_tTString::MaybeRegexp() const
Bool_tTString::MaybeWildcard() const
const char*TString::operator const char*() const
char&TString::operator()(Ssiz_t i)
TSubStringTString::operator()(const TRegexp& re)
TSubStringTString::operator()(TPRegexp& re)
charTString::operator()(Ssiz_t i) const
TSubStringTString::operator()(const TRegexp& re) const
TSubStringTString::operator()(TPRegexp& re) const
TSubStringTString::operator()(Ssiz_t start, Ssiz_t len)
TSubStringTString::operator()(const TRegexp& re, Ssiz_t start)
TSubStringTString::operator()(TPRegexp& re, Ssiz_t start)
TSubStringTString::operator()(Ssiz_t start, Ssiz_t len) const
TSubStringTString::operator()(const TRegexp& re, Ssiz_t start) const
TSubStringTString::operator()(TPRegexp& re, Ssiz_t start) const
TString&TString::operator+=(const char* cs)
TString&TString::operator+=(const TString& s)
TString&TString::operator+=(char c)
TString&TString::operator+=(Short_t i)
TString&TString::operator+=(UShort_t i)
TString&TString::operator+=(Int_t i)
TString&TString::operator+=(UInt_t i)
TString&TString::operator+=(Long_t i)
TString&TString::operator+=(ULong_t i)
TString&TString::operator+=(Float_t f)
TString&TString::operator+=(Double_t f)
TString&TString::operator+=(Long64_t l)
TString&TString::operator+=(ULong64_t ul)
TGString&operator=(const TGString&)
TString&TString::operator=(char s)
TString&TString::operator=(const char* s)
TString&TString::operator=(const TString& s)
TString&TString::operator=(const string& s)
TString&TString::operator=(const TSubString& s)
char&TString::operator[](Ssiz_t i)
charTString::operator[](Ssiz_t i) const
TString&TString::Prepend(const char* cs)
TString&TString::Prepend(const TString& s)
TString&TString::Prepend(const char* cs, Ssiz_t n)
TString&TString::Prepend(const TString& s, Ssiz_t n)
TString&TString::Prepend(char c, Ssiz_t rep = 1)
voidTString::Puts(FILE* fp)
virtual voidTString::ReadBuffer(char*& buffer)
istream&TString::ReadFile(istream& str)
istream&TString::ReadLine(istream& str, Bool_t skipWhite = kTRUE)
istream&TString::ReadString(istream& str)
static TString*TString::ReadString(TBuffer& b, const TClass* clReq)
istream&TString::ReadToDelim(istream& str, char delim = '\n')
istream&TString::ReadToken(istream& str)
TString&TString::Remove(Ssiz_t pos)
TString&TString::Remove(Ssiz_t pos, Ssiz_t n)
TString&TString::Remove(TString::EStripType s, char c)
TString&TString::Replace(Ssiz_t pos, Ssiz_t n, const char* cs)
TString&TString::Replace(Ssiz_t pos, Ssiz_t n, const TString& s)
TString&TString::Replace(Ssiz_t pos, Ssiz_t n, const char* s, Ssiz_t ns)
TString&TString::Replace(Ssiz_t pos, Ssiz_t n1, const TString& s, Ssiz_t n2)
TString&TString::ReplaceAll(const TString& s1, const TString& s2)
TString&TString::ReplaceAll(const TString& s1, const char* s2)
TString&TString::ReplaceAll(const char* s1, const TString& s2)
TString&TString::ReplaceAll(const char* s1, const char* s2)
TString&TString::ReplaceAll(const char* s1, Ssiz_t ls1, const char* s2, Ssiz_t ls2)
voidTString::Resize(Ssiz_t n)
static Ssiz_tTString::ResizeIncrement(Ssiz_t ri = 16)
virtual voidSetString(const char* s)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidTString::ShowMembers(TMemberInspector& insp, char* parent)
virtual Int_tTString::Sizeof() const
virtual voidStreamer(TBuffer& b)
virtual voidTString::Streamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
TSubStringTString::Strip(TString::EStripType s = kTrailing, char c = ' ')
TSubStringTString::Strip(TString::EStripType s = kTrailing, char c = ' ') const
TSubStringTString::SubString(const char* pat, Ssiz_t start = 0, TString::ECaseCompare cmp = kExact)
TSubStringTString::SubString(const char* pat, Ssiz_t start = 0, TString::ECaseCompare cmp = kExact) const
TObjArray*TString::Tokenize(const TString& delim) const
Bool_tTString::Tokenize(TString& tok, Ssiz_t& from, const char* delim = " ") const
voidTString::ToLower()
voidTString::ToUpper()
static voidTString::WriteString(TBuffer& b, const TString* a)

Data Members

private:
enum TString::EStripType { kLeading
kTrailing
kBoth
};
enum TString::ECaseCompare { kExact
kIgnoreCase
};
protected:
char*TString::fDataref. counted data (TStringRef is in front)

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGString(const TGString *s)
 cconstructor
void Draw(Drawable_t id, GContext_t gc, Int_t x, Int_t y)
 Draw string.
void DrawWrapped(Drawable_t id, GContext_t gc, Int_t x, Int_t y, UInt_t w, FontStruct_t font)
 Draw a string in a column with width w. If string is longer than
 w wrap it to next line.
Int_t GetLines(FontStruct_t font, UInt_t w)
 Get number of lines of width w the string would take using a certain font.
TGString()
{ }
TGString(const char *s)
{ }
TGString(Int_t number)
{ *this += number; }
TGString(const TGString *s)
virtual ~TGString()
{ }
Int_t GetLength() const
{ return Length(); }
const char * GetString() const
{ return Data(); }
void SetString(const char* s)
{ *this = s; }