readSubRange

abstract fun readSubRange(start: Int, end: Int): CharSequence

Read a range of characters from the input buffer into a sequence. Note that this requires the characters to be still in the buffer. It is intended for handling peeks of entity reference names.

Note the caller is required to ensure there are no '\r' characters present