const String & File()
Return the filename associated with the current position.
INDEX Index
The type to use for all integer numbers and indices.
bool LineBreak() const
Const version of LineBreak.
Index nelem() const
Number of elements.
void SetMark()
Mark current position.
Index MarkedLine()
Return the marked line number, but for the file that is associated with the current position...
void AdvanceChar()
Advance position pointer by one character.
char Current()
Return the current character.
This file contains the definition of Array.
Index mMarkedColumn
Marked column position in the text.
Index mMarkedLine
Marked line position in the text.
void AppendFile(const String &name)
Appends contents of file to the source text.
Index GetSourceLine(const Index line)
Return the line number, but for the file that is associated with the given position.
The declarations of all the exception classes.
Index mColumn
Column position in the text.
ArrayOfString mSfName
Names associated with.
A smart class to hold the text for parsing.
void Init()
This sets the pointer to the first existing character in the text.
void SetPosition(Index line, Index column)
Set current position.
friend std::ostream & operator<<(std::ostream &os, const SourceText &text)
Output operator for SourceText.
bool & LineBreak()
Read the line break flag.
ArrayOfString mText
The text.
Index MarkedColumn()
Return the current marked column.
Index mLine
Line position in the text.
Index ColumnRaw()
Return the column index.
bool mLineBreak
Is set to true if the last operation caused a line break.
bool reachedEot()
Check if the current position reached the end.
Index LineRaw()
Return the line index.
ArrayOfIndex mSfLine
Remember where which source file starts.
SourceText()
Default constructor.
void AdvanceLine()
Advances position pointer by one line.
Index Column()
Return the current column.
Index Line()
Return the line number, but for the file that is associated with the current position.
This file contains the definition of String, the ARTS string class.