Ruby 4.1.0dev (2026-11-18 revision e5e6cd45db456b2a4d368f2a34598641319df630)
pm_regexp_reference_t Struct Reference

A reference to a group, by its number or its name, as in \k<1>, \k<n>, \g<n>, or the condition of (?(1)a|b). More...

Data Fields

const uint8_t * start
 The start of the number or name as it is written.
const uint8_t * end
 The end of the number or name as it is written.
int32_t number
 The number of the group, which is negative when it counts back from the reference, as in \k<-1>, or 0 when the group is named.

Detailed Description

A reference to a group, by its number or its name, as in \k<1>, \k<n>, \g<n>, or the condition of (?(1)a|b).

Definition at line 1088 of file regexp.c.

Field Documentation

◆ end

const uint8_t* pm_regexp_reference_t::end

The end of the number or name as it is written.

Definition at line 1093 of file regexp.c.

◆ number

int32_t pm_regexp_reference_t::number

The number of the group, which is negative when it counts back from the reference, as in \k<-1>, or 0 when the group is named.

Definition at line 1099 of file regexp.c.

◆ start

const uint8_t* pm_regexp_reference_t::start

The start of the number or name as it is written.

Definition at line 1090 of file regexp.c.


The documentation for this struct was generated from the following file: