struct MatchGroup
source · line 12public
public struct MatchGroup(val value: String, val range: MatchRange)
An independently copied capture and its range. An empty capture is still a participating group.
field range
source · line 14public
val range: MatchRange
Its range in the original input.
field value
source · line 13public
val value: String
The captured text.
constructor constructor
source · line 12public
constructor(val value: String, val range: MatchRange)
parameter value
source · line 13public
val value: String
parameter range
source · line 14public
val range: MatchRange
function equals
source · line 12publiccompiler-derived
operator fun equals(other: MatchGroup): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: String, MatchRange.