Characters

laika.parse.text.Characters$
See theCharacters companion class
object Characters

Companion with factory methods for creating optimized character parsers.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Characters.type

Members list

Type members

Types

type ResultBuilder[T] = (SourceCursor, Int) => T

Value members

Concrete methods

def anyWhile(predicate: Char => Boolean): Characters[String]

Builds a parser that consumes any number of consecutive characters which satisfy the specified predicate. Always succeeds unless a minimum number of required matches is specified.

Builds a parser that consumes any number of consecutive characters which satisfy the specified predicate. Always succeeds unless a minimum number of required matches is specified.

Attributes

def exclude(chars: Seq[Char]): Characters[String]

Builds a parser that consumes any number of consecutive characters that are not one of the specified characters. Always succeeds unless a minimum number of required matches is specified.

Builds a parser that consumes any number of consecutive characters that are not one of the specified characters. Always succeeds unless a minimum number of required matches is specified.

Attributes

def include(chars: Seq[Char]): Characters[String]

Builds a parser that consumes any number of consecutive occurrences of the specified characters. Always succeeds unless a minimum number of required matches is specified.

Builds a parser that consumes any number of consecutive occurrences of the specified characters. Always succeeds unless a minimum number of required matches is specified.

Attributes

def optimizedLookup(chars: Iterable[Char]): Array[Byte]

Returns an optimized, Array-based lookup function for the specified characters.

Returns an optimized, Array-based lookup function for the specified characters.

Attributes

Concrete fields

val CountResultBuilder: () => Int
val StringResultBuilder: () => String
val UnitResultBuilder: () => Unit