StrReader

class StrReader(val str: String, val file: String = "file", var pos: Int = 0) : BaseStrReader

Constructors

Link copied to clipboard
constructor(str: String, file: String = "file", pos: Int = 0)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Literals(lits: Array<String>, map: MutableMap<String, Boolean>, val lengths: Array<Int>)
Link copied to clipboard
class TRange(val min: Int, val max: Int, val reader: StrReader)

Properties

Link copied to clipboard
Link copied to clipboard
open override val eof: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val length: Int
Link copied to clipboard
open override var pos: Int
Link copied to clipboard
val str: String

Functions

Link copied to clipboard
open override fun clone(): StrReader
Link copied to clipboard
fun createRange(start: Int = this.pos, end: Int = this.pos): StrReader.TRange
Link copied to clipboard
open override fun endBuffering(start: Int): String
Link copied to clipboard
Link copied to clipboard
fun matchLit(lit: String): String?
Link copied to clipboard
Link copied to clipboard
fun matchStartEnd(start: String, end: String): String?
Link copied to clipboard
inline fun matchWhile(check: (Char) -> Boolean): String
Link copied to clipboard
open override fun peek(count: Int): String
Link copied to clipboard
open override fun peekChar(): Char
Link copied to clipboard
open override fun peekOffset(offset: Int): Char
Link copied to clipboard
fun read(count: Int): String
fun read(): Char
Link copied to clipboard
open override fun readChar(): Char
Link copied to clipboard
fun readExpect(expected: String): String
Link copied to clipboard
fun readFixedSizeInt(count: Int, radix: Int = 10): Int
Link copied to clipboard
fun readFloats(list: FloatArrayList = FloatArrayList(7)): FloatArrayList
Link copied to clipboard
fun readIds(list: ArrayList<String> = ArrayList(7)): ArrayList<String>
Link copied to clipboard
fun readInts(list: IntArrayList = IntArrayList(7)): IntArrayList
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun readStringLit(reportErrors: Boolean = true): String
Link copied to clipboard
open override fun readUntil(char: Char): String
inline fun readUntil(filter: (Char) -> Boolean): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun readWhile(filter: (Char) -> Boolean): String
Link copied to clipboard
fun reset()
Link copied to clipboard
open override fun skip(count: Int): StrReader
Link copied to clipboard
fun skipExpect(expected: Char)
Link copied to clipboard
open override fun skipSpaces(): StrReader
Link copied to clipboard
inline fun skipUntil(filter: (Char) -> Boolean)
fun skipUntil(char: Char)
Link copied to clipboard
Link copied to clipboard
inline fun skipWhile(filter: (Char) -> Boolean)
Link copied to clipboard
inline fun slice(action: () -> Unit): String
fun slice(start: Int, end: Int): String
Link copied to clipboard
open fun startBuffering(): Int
Link copied to clipboard
fun tryExpect(str: String, consume: Boolean = true): Boolean
Link copied to clipboard
open override fun tryLit(lit: String, consume: Boolean): String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun tryReadInt(default: Int): Int
Link copied to clipboard
fun tryReadNumber(default: Double = Double.NaN): Double
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun unread(count: Int = 1): StrReader