-
-
Read lines to extract a whole block and returns a new buffer to it.
Parameters:
Name |
Type |
Description |
blockName |
String
|
|
reservePos |
String
|
|
- Source:
Returns:
-
Type
-
Kekule.IO.Mdl3kTextBuffer
-
getLineAt(index) → {String}
-
Get value of line in index. 'M V30' tag will be removed from head of line.
Note the continue mark is not handled in this function.
Parameters:
Name |
Type |
Description |
index |
Int
|
|
- Source:
Returns:
-
Type
-
String
-
getLineAtEx(index) → {Hash}
-
Get value of line in index. 'M V30' tag will be removed from head of line.
If the line end with '-', next line is its continuous and will appended to the end of this line.
Parameters:
Name |
Type |
Description |
index |
Int
|
|
- Source:
Returns:
{line, lineCount} If line continued with other line, lineCount will report total lines actually read.
-
Type
-
Hash
-
readLine() → {String}
-
Get value of current line and move currLineNo to next line.
- Source:
Returns:
-
Type
-
String
-
writeLine(line, not3kMode)
-
Insert a line at current position and move currLineNo to next line.
Parameters:
Name |
Type |
Description |
line |
String
|
|
not3kMode |
Bool
|
If in 3k mode, each line will automatically start with M V30
and line longer than 80 cols will be wrapped |
- Source:
-
writeLines(lines)
-
Insert array of lines at current position and move currLineNo.
Parameters:
Name |
Type |
Description |
lines |
Array
|
|
- Source: