GraphMine

graphmine-util / io.github.sof3.graphmine.util.string / FormattedStringReader

FormattedStringReader

data class FormattedStringReader

Constructors

<init> FormattedStringReader(string: String)

Properties

isComplete val isComplete: Boolean
Returns whether the reader reached the end of string
pointer var pointer: Int
remaining val remaining: String
Peeks everything remaining in the string. Does not consume anything.
string val string: String

Functions

| exactly | fun exactly(vararg oneOf: String, suffix: String = ""): String?
Returns the first value in oneOf that the remaining string starts with. Returns null if none is found. | | exec | fun exec(fn: () -> Unit): Unit
Executes a function that may modify the state of this object, but upon completion, the state is reset. | | nextChar | fun nextChar(): Char?
Consumes and returns the next character. | | nextDelimiter | fun nextDelimiter(vararg delimiters: String = arrayOf(" ")): DelimiterResult?