CharArrayBasedParserInput

org.parboiled2.ParserInput.CharArrayBasedParserInput
class CharArrayBasedParserInput(chars: Array[Char], endIndex: Int) extends DefaultParserInput

Attributes

Graph
Supertypes
trait ParserInput
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def charAt(ix: Int): Char

Returns the character at the given (zero-based) index. Note: this method is hot and should be small and efficient. A range-check is not required for the parser to work correctly.

Returns the character at the given (zero-based) index. Note: this method is hot and should be small and efficient. A range-check is not required for the parser to work correctly.

Attributes

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

Returns the characters between index start (inclusively) and end (exclusively) as an Array[Char].

Returns the characters between index start (inclusively) and end (exclusively) as an Array[Char].

Attributes

def sliceString(start: Int, end: Int): String

Returns the characters between index start (inclusively) and end (exclusively) as a String.

Returns the characters between index start (inclusively) and end (exclusively) as a String.

Attributes

Inherited methods

def getLine(line: Int): String

Gets the input line with the given number as a String. Note: the first line is line number one!

Gets the input line with the given number as a String. Note: the first line is line number one!

Attributes

Inherited from:
DefaultParserInput

Concrete fields

val length: Int

The number of characters in this input. Note: this method is hot and should be small and efficient.

The number of characters in this input. Note: this method is hot and should be small and efficient.

Attributes