Ruby 4.1.0dev (2026-03-16 revision 2fc3013e7a06cb667a0aa31df9e6f6e0f89de4be)
Data Fields
pm_regexp_name_data_t Struct Reference

Accumulation state for named capture groups found during regexp parsing. More...

#include <regexp.h>

Data Fields

pm_call_node_tcall
 The call node wrapping the regular expression node (for =~).
 
pm_match_write_node_tmatch
 The match write node being built, or NULL if no captures found yet.
 
pm_constant_id_list_t names
 The list of capture names found so far (for deduplication).
 

Detailed Description

Accumulation state for named capture groups found during regexp parsing.

The caller initializes this with the call node and passes it to pm_regexp_parse. The regexp parser populates match and names as groups are found.

Definition at line 25 of file regexp.h.

Field Documentation

◆ call

pm_call_node_t* pm_regexp_name_data_t::call

The call node wrapping the regular expression node (for =~).

Definition at line 27 of file regexp.h.

◆ match

pm_match_write_node_t* pm_regexp_name_data_t::match

The match write node being built, or NULL if no captures found yet.

Definition at line 30 of file regexp.h.

◆ names

pm_constant_id_list_t pm_regexp_name_data_t::names

The list of capture names found so far (for deduplication).

Definition at line 33 of file regexp.h.


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