XmlCharReader

Creates a reader that enumerates the codepoints in a character sequence.

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun advance()

Advance to the next XmlChar in the buffer.

Link copied to clipboard
fun advanceUntil(predicate: (XmlChar) -> Boolean)

Advances to the next XmlChar in the buffer that matches the predicate.

Link copied to clipboard
fun advanceWhile(predicate: (XmlChar) -> Boolean)

Advances to the next XmlChar in the buffer that does not match the predicate.

Link copied to clipboard
fun peek(offset: Int): XmlChar

Returns the character at the given offset from the current position.

Link copied to clipboard
fun reset(buffer: CharSequence, startOffset: Int = 0)
fun reset(buffer: CharSequence, startOffset: Int, bufferEndOffset: Int)

Reset the reader to the specified character sequence.

Properties

Link copied to clipboard

The underlying UTF-16 character sequence.

Link copied to clipboard

The end of the buffer, or the point to read up to.

Link copied to clipboard

The value of the current XmlChar in the buffer.

Link copied to clipboard

The offset of the current XmlChar in the buffer.

Link copied to clipboard

Returns the next character that would be read from the advance method.