tartar
/
com.github.adriantodt.tartar.api.lexer
/
StringReader
common
commonNonJvm
jvm
String
Reader
common
commonNonJvm
jvm
class
StringReader
(s:
String
)
Content copied to clipboard
Portable implementation of a character stream whose source is a string.
class
StringReader
(s:
String
)
Content copied to clipboard
typealias
StringReader
=
StringReader
Content copied to clipboard
Constructors
Functions
Constructors
StringReader
Link copied to clipboard
fun
StringReader
(s:
String
)
Content copied to clipboard
Functions
mark
Link copied to clipboard
common
fun
mark
(readAheadLimit:
Int
)
Content copied to clipboard
Marks the stream's current position.
commonNonJvm
fun
mark
(readAheadLimit:
Int
)
Content copied to clipboard
read
Link copied to clipboard
common
fun
read
():
Int
Content copied to clipboard
Reads a single character.
commonNonJvm
fun
read
():
Int
Content copied to clipboard
reset
Link copied to clipboard
common
fun
reset
()
Content copied to clipboard
Resets the stream to the last marked position.
commonNonJvm
fun
reset
()
Content copied to clipboard
skip
Link copied to clipboard
common
fun
skip
(ns:
Long
):
Long
Content copied to clipboard
Skips a specified amount of characters in the stream, returning the amount of characters actually skipped.
commonNonJvm
fun
skip
(ns:
Long
):
Long
Content copied to clipboard