TextRange

text content range

Members

Functions

intersects
bool intersects(TextRange v)
Undocumented in source. Be warned that the author may not have intended to support it.
isInside
bool isInside(TextPosition p)

returns true if position is inside this range

isInsideOrNext
bool isInsideOrNext(TextPosition p)

returns true if position is inside this range or right after this range

Properties

empty
bool empty [@property getter]

returns true if range is empty

lines
int lines [@property getter]

returns count of lines in range

singleLine
bool singleLine [@property getter]

returns true if start and end located at the same line

toString
string toString [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

end
TextPosition end;
Undocumented in source.
start
TextPosition start;
Undocumented in source.

Meta