StringReader

class StringReader(s: String)

Portable implementation of a character stream whose source is a string.

class StringReader(s: String)
typealias StringReader = StringReader

Constructors

StringReader
Link copied to clipboard
fun StringReader(s: String)

Functions

mark
Link copied to clipboard
common
fun mark(readAheadLimit: Int)
Marks the stream's current position.
commonNonJvm
fun mark(readAheadLimit: Int)
read
Link copied to clipboard
common
fun read(): Int
Reads a single character.
commonNonJvm
fun read(): Int
reset
Link copied to clipboard
common
fun reset()
Resets the stream to the last marked position.
commonNonJvm
fun reset()
skip
Link copied to clipboard
common
fun skip(ns: Long): Long
Skips a specified amount of characters in the stream, returning the amount of characters actually skipped.
commonNonJvm
fun skip(ns: Long): Long