sliceString

abstract fun sliceString(from: DocPos, to: DocPos = endPos, lineSep: String = ""): String

Retrieve a part of the document as a string.