BasicInterface
MultilineString is a extension for String that allows to access
all lines seperatly.
To not have to deal with different forms of line breaks (Windows/Apple/Unix)
MultilineString automatically standarizes them to the \n character.
So the passed-in string will always get standardized.
If you need to access the orignal string you can use
getOriginalString.
public function getOriginalString(Void):StringReturns the original used string (without line break standarisation).
the original used string
public function getLine(line:Number):String
Returns a specific line within the MultilineString.
It will return undefined if the line does not exist.
The line does not contain the line break.
The counting of lines startes with 0.
line | number of the line to get the content of |
content of the line
public function getLines(Void):ArrayReturns the content as array that contains each line.
content split into lines
public function getLineCount(Void):NumberReturns the amount of lines in the content.
amount of lines within the content
public function lineIterator(Void):IteratorReturns a Iterator to iterate through all lines of the content.
Iterator for all lines of the content