Represents a logical line in a TextBuffer.
Instance methods
==(other : self)
Two lines are equal if their buffers and bounds are equal.
[](index : Int)
Returns the index-th character in this line.
Sourceb
Returns the index where this line starts.
Sourcecontent
Returns the content of this line.
Sourcee
Returns the index where this line ends.
Sourceeach_char
Yields each character in this line.
Sourceempty?
Returns whether this line is empty.
Sourcefirst_line?
Returns whether this line is the first line.
Sourcehash(hasher)
Two lines are equal if their buffers and bounds are equal.
Returns whether this line is in the other buffer.
Sourceincludes?(index : Int)
Returns whether index is in this line's bounds.
Sourceincludes?(range : Range)
Returns whether range is completely included in the bounds
of this line.
Sourcelast_line?
Returns whether this line is the last line.
Sourceord
Returns the ordinal of this line.
Sourcesize
Returns the amount of characters in this line.
Sourceslice(b : Int, e : Int)
Returns a slice of this line's content.
SourceYields lines starting from this line and up to other
line, both included.
Source