CharArrayBasedParserInput

wjson.ParserInput.CharArrayBasedParserInput
class CharArrayBasedParserInput(chars: Array[Char]) extends DefaultParserInput

Attributes

Graph
Supertypes
trait ParserInput
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

in case of StringContext interpolator, return the current argument and advance the argument cursor

in case of StringContext interpolator, return the current argument and advance the argument cursor

Attributes

def length: Int
def nextChar(): Char

Advance the cursor and get the next char. Since the char is required to be a 7-Bit ASCII char no decoding is required.

Advance the cursor and get the next char. Since the char is required to be a 7-Bit ASCII char no decoding is required.

Attributes

def nextUtf8Char(): Char

Advance the cursor and get the next char, which could potentially be outside of the 7-Bit ASCII range. Therefore decoding might be required.

Advance the cursor and get the next char, which could potentially be outside of the 7-Bit ASCII range. Therefore decoding might be required.

Attributes

def sliceCharArray(start: Int, end: Int): Array[Char]

Inherited methods

def cursor: Int

Attributes

Inherited from:
DefaultParserInput
def getLine(index: Int): Line

Attributes

Inherited from:
DefaultParserInput
inline protected def incrCursor(): Unit

move cursor to next char

move cursor to next char

Attributes

Inherited from:
DefaultParserInput
protected def resetCursor(pos: Int): Unit

move to given position. in InterpolationParserInput, it may used to sync cursor and arguments.

move to given position. in InterpolationParserInput, it may used to sync cursor and arguments.

Attributes

Inherited from:
DefaultParserInput