class MatchGroups
source · line 32public
public class MatchGroups internal constructor(
private val values: Array<MatchGroup?>,
private val names: Array<RegexName>
)
Immutable numbered and named capture slots. None denotes a group that did not participate.
property size
source · line 37public
public val size: Long
get: public read-only
The number of slots, including group zero.
getter get
source · line 37public
get(): Long
function get
source · line 40public
public operator fun get(index: Long): MatchGroup?
Returns a slot; out-of-range indices throw IndexOutOfBoundsException.
parameter index
source · line 40public
index: Long
function getAll
source · line 60public
public fun getAll(name: String): List<MatchGroup?>
Returns all slots with the name in group-number order, preserving unparticipating slots.
parameter name
source · line 60public
name: String
function get
source · line 46public
public operator fun get(name: String): MatchGroup?
Returns the first participating group with this name, or None; unknown names throw.
parameter name
source · line 46public
name: String