match

abstract fun match(s: String, startAt: Int): MatcherResult

This function determines whether the string s, starting at the index startAt (inclusive), matches some pattern. The exact pattern is dependent on the implementation.

Return

Null if no match is possible, or a Token that corresponds to the matched substring.

Parameters

s

The string to analyze

startAt

The index after which the string must be considered