Match

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

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

Parameters

offset

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

length

Length of the matched substring.

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
Link copied to clipboard
val offset: Int