Match

data class Match(val offset: Int, val length: Int)

Informs which part of the input is represented by the segment.

Important: This is a Public Preview API. It may be changed or removed at any time.

Constructors

Link copied to clipboard
fun Match(offset: Int, length: Int)

Properties

Link copied to clipboard
val length: Int

Length of the matched substring.

Link copied to clipboard
val offset: Int

Starting offset of the input substring matching the segment. The offset of the first character is 0.