iterRange

fun iterRange(from: DocPos, to: DocPos = endPos): TextIterator

Iterate over a range of the text. When from>to, the iterator will run in reverse.