30 #ifndef ROOT_TGDimension
93 TGText(
const char *
string);
TGText()
Create default (empty) text buffer.
Bool_t Append(const char *fn)
Append buffer to file fn.
Bool_t InsText(TGLongPosition pos, const char *buf)
Insert single line at specified position.
void Clear()
Clear text buffer.
virtual ~TGTextLine()
Delete a line of text.
void DelText(ULong_t pos, ULong_t length)
Delete length chars from line starting at position pos.
Long_t GetLongestLine() const
Bool_t BreakLine(TGLongPosition pos)
Break line at position pos. Returns false if pos is not valid.
Bool_t LoadBuffer(const char *txtbuf)
Load a 0 terminated buffer. Lines will be split at ' '.
const char * Data() const
Bool_t DelChar(TGLongPosition pos)
Delete character at specified position pos.
#define ClassDef(name, id)
Bool_t Replace(TGLongPosition start, const char *oldText, const char *newText, Bool_t direction, Bool_t caseSensitive)
Replace oldText by newText. Returns false if nothing replaced.
void DelChar(ULong_t pos)
Delete a character from the line.
char * GetLine(TGLongPosition pos, ULong_t length)
Return string at position pos.
TGTextLine & operator=(const TGTextLine &)
assignment operator
Bool_t Load(const char *fn, Long_t startpos=0, Long_t length=-1)
Load text from file fn.
TGTextLine * GetCurrentLine() const
Double_t length(const TVector2 &v)
char * GetWord(ULong_t pos)
Get word at position. Returned string must be deleted.
void InsText(ULong_t pos, const char *text)
Insert text in line starting at position pos.
Bool_t Search(TGLongPosition *foundPos, TGLongPosition start, const char *searchString, Bool_t direction, Bool_t caseSensitive)
Search for string searchString starting at the specified position going in forward (direction = true)...
TGText & operator=(const TGText &)
assignment operator
char GetChar(TGLongPosition pos)
Get character a position pos. If charcater not valid return -1.
void Init()
Common initialization method.
Bool_t DelText(TGLongPosition start, TGLongPosition end)
Delete text between start and end positions.
Bool_t Save(const char *fn)
Save text buffer to file fn.
Long_t GetLineLength(Long_t row)
Get length of specified line. Returns -1 if row does not exist.
Bool_t InsChar(TGLongPosition pos, char c)
Insert character c at the specified position pos.
TString AsString()
Returns content as ROOT string.
const char * GetFileName() const
Bool_t AddText(TGText *text)
Add another text buffer to this buffer.
void InsChar(ULong_t pos, char character)
Insert a character at the specified position.
Bool_t DelLine(ULong_t pos)
Delete specified row. Returns false if row does not exist.
void ReTab(Long_t row)
Redo all tabs in a line. Needed after a new tab is inserted.
Bool_t InsLine(ULong_t row, const char *string)
Insert string before specified position.
void Clear()
Clear a line of text.
void LongestLine()
Set fLongestLine.
char GetChar(ULong_t pos)
Get a character at the specified position from the line.
Bool_t SetCurrentRow(Long_t row)
Make specified row the current row.
virtual ~TGText()
Destroy text buffer.