-
appendLines(lines)
-
Append lines of text to current one.
Parameters:
Name |
Type |
Description |
lines |
Array
|
|
- Source:
-
appendText(text)
-
Append text to current one.
Parameters:
Name |
Type |
Description |
text |
String
|
|
- Source:
-
clear()
-
Clear text and lines.
- Source:
-
eof() → {Bool}
-
Check whether all lines are read and currLineNo point to end of data.
- Source:
Returns:
-
Type
-
Bool
-
getCurrLine() → {String}
-
Get value of current line but not move currLineNo to next line.
- Source:
Returns:
-
Type
-
String
-
getLineAt(index) → {String}
-
Get value of line in index.
Parameters:
Name |
Type |
Description |
index |
Int
|
|
- Source:
Returns:
-
Type
-
String
-
getUnreadLines() → {String}
-
Get lines unread (below currLinNo).
- Source:
Returns:
-
Type
-
String
-
getUnreadText() → {String}
-
Get text unread (below currLinNo).
- Source:
Returns:
-
Type
-
String
-
readLine() → {String}
-
Get value of current line and move currLineNo to next line.
- Source:
Returns:
-
Type
-
String
-
reset()
-
Reset currLineNo to zero (beginning of text data).
- Source:
-
writeLine(line)
-
Insert a line at current position and move currLineNo to next line.
Parameters:
Name |
Type |
Description |
line |
String
|
|
- Source:
-
writeLines(lines)
-
Insert array of lines at current position and move currLineNo.
Parameters:
Name |
Type |
Description |
lines |
Array
|
|
- Source:
-
writeText(text)
-
Insert text at current position and move currLineNo.
Text may have line breaks.
Parameters:
Name |
Type |
Description |
text |
String
|
|
- Source: