ArraySourceLines

Simple text source based on array

Constructors

this
this()
Undocumented in source.
this
this(dstring[] lines, SourceFile file, uint firstLine)
Undocumented in source.
this
this(string code, string filename)
Undocumented in source.

Members

Functions

close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
initialize
void initialize(dstring[] lines, SourceFile file, uint firstLine)
Undocumented in source. Be warned that the author may not have intended to support it.
readLine
dchar[] readLine()

read line, return null if EOF reached or error occured

reset
bool reset(int line)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

eof
bool eof [@property getter]

end of file reached

errorCode
int errorCode [@property getter]

source encoding error code

errorLine
int errorLine [@property getter]

error line

errorMessage
string errorMessage [@property getter]

error message

errorPos
int errorPos [@property getter]

error position

file
SourceFile file [@property getter]

source file

line
uint line [@property getter]

last read line

Static variables

_emptyLine
dchar[] _emptyLine;
Undocumented in source.

Variables

_file
SourceFile _file;
Undocumented in source.
_firstLine
uint _firstLine;
Undocumented in source.
_line
uint _line;
Undocumented in source.
_lines
dstring[] _lines;
Undocumented in source.

Inherited Members

From SourceLines

file
SourceFile file [@property getter]

source file

line
uint line [@property getter]

last read line

errorCode
int errorCode [@property getter]

source encoding error code

errorMessage
string errorMessage [@property getter]

error message

errorLine
int errorLine [@property getter]

error line

errorPos
int errorPos [@property getter]

error position

eof
bool eof [@property getter]

end of file reached

readLine
dchar[] readLine()

read line, return null if EOF reached or error occured

Meta