text

abstract fun text(startOffset: Int = start.offset, endExclusiveOffset: Int = endExclusive.offset): String

Returns text between the absolute, end-exclusive offsets.

Throws

if either offset is outside retained text


open fun text(span: SourceSpan): String

Returns text covered by span.

Throws

if span is outside retained text