CharRangeTokenRecognizer

class CharRangeTokenRecognizer(val detectedCharRange: ClosedRange<Char>) : TokenRecognizer

A token recognizer made for recognizing a ClosedRange of characters.

This recognizer is intended to be used with the 'a'..'b' syntax.

Constructors

Link copied to clipboard
constructor(detectedCharRange: ClosedRange<Char>)

Functions

Link copied to clipboard
open override fun recognize(s: String, startAt: Int): Pair<String, Int>?

Check whether the string s starting from index startAt matches the pattern this recognizer uses.

Properties

Link copied to clipboard

The character range to detect.