ROOT 6.12/07 Reference Guide |
Public Member Functions | |
TGTextLine () | |
Create empty line of text (default ctor). More... | |
TGTextLine (TGTextLine *line) | |
Initialize line of text with other line of text (not copy ctor). More... | |
TGTextLine (const char *string) | |
Initialize line of text with a const char*. More... | |
virtual | ~TGTextLine () |
Delete a line of text. More... | |
void | Clear () |
Clear a line of text. More... | |
void | DelChar (ULong_t pos) |
Delete a character from the line. More... | |
void | DelText (ULong_t pos, ULong_t length) |
Delete length chars from line starting at position pos. More... | |
char | GetChar (ULong_t pos) |
Get a character at the specified position from the line. More... | |
ULong_t | GetLineLength () |
char * | GetText (ULong_t pos, ULong_t length) |
Get length characters from line starting at pos. More... | |
char * | GetText () const |
char * | GetWord (ULong_t pos) |
Get word at position. Returned string must be deleted. More... | |
void | InsChar (ULong_t pos, char character) |
Insert a character at the specified position. More... | |
void | InsText (ULong_t pos, const char *text) |
Insert text in line starting at position pos. More... | |
Protected Member Functions | |
TGTextLine (const TGTextLine &) | |
copy constructor More... | |
TGTextLine & | operator= (const TGTextLine &) |
assignment operator More... | |
Protected Attributes | |
ULong_t | fLength |
TGTextLine * | fNext |
TGTextLine * | fPrev |
char * | fString |
Friends | |
class | TGText |
#include <TGText.h>
|
protected |
copy constructor
Definition at line 84 of file TGText.cxx.
TGTextLine::TGTextLine | ( | ) |
Create empty line of text (default ctor).
Definition at line 45 of file TGText.cxx.
TGTextLine::TGTextLine | ( | TGTextLine * | line | ) |
Initialize line of text with other line of text (not copy ctor).
Definition at line 55 of file TGText.cxx.
TGTextLine::TGTextLine | ( | const char * | string | ) |
Initialize line of text with a const char*.
Definition at line 67 of file TGText.cxx.
|
virtual |
Delete a line of text.
Definition at line 115 of file TGText.cxx.
void TGTextLine::Clear | ( | ) |
Clear a line of text.
Definition at line 124 of file TGText.cxx.
Delete a character from the line.
Definition at line 262 of file TGText.cxx.
Delete length chars from line starting at position pos.
Definition at line 135 of file TGText.cxx.
char TGTextLine::GetChar | ( | ULong_t | pos | ) |
Get a character at the specified position from the line.
Returns -1 if pos is out of range.
Definition at line 302 of file TGText.cxx.
Get length characters from line starting at pos.
Returns 0 in case pos and length are out of range. The returned string must be freed by the user.
Definition at line 183 of file TGText.cxx.
char * TGTextLine::GetWord | ( | ULong_t | pos | ) |
Get word at position. Returned string must be deleted.
Definition at line 203 of file TGText.cxx.
Insert a character at the specified position.
Definition at line 281 of file TGText.cxx.
Insert text in line starting at position pos.
Definition at line 160 of file TGText.cxx.
|
protected |
assignment operator
Definition at line 98 of file TGText.cxx.
|
protected |
|
protected |