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

A list of the names of named groups. More...

Data Fields

pm_regexp_name_t * values
 The names, which the list owns in the scratch arena.
size_t size
 The number of names in the list.
size_t capacity
 The number of names the list has room for.
pm_regexp_name_binding_t * bindings
 Bindings built when a reference needs to search a larger list.
size_t bindings_size
 The number of distinct names in the bindings.
size_t bindings_capacity
 The number of slots in the bindings, always a power of two when used.

Detailed Description

A list of the names of named groups.

Definition at line 198 of file regexp.c.

Field Documentation

◆ bindings

pm_regexp_name_binding_t* pm_regexp_names_t::bindings

Bindings built when a reference needs to search a larger list.

Definition at line 209 of file regexp.c.

◆ bindings_capacity

size_t pm_regexp_names_t::bindings_capacity

The number of slots in the bindings, always a power of two when used.

Definition at line 215 of file regexp.c.

◆ bindings_size

size_t pm_regexp_names_t::bindings_size

The number of distinct names in the bindings.

Definition at line 212 of file regexp.c.

◆ capacity

size_t pm_regexp_names_t::capacity

The number of names the list has room for.

Definition at line 206 of file regexp.c.

◆ size

size_t pm_regexp_names_t::size

The number of names in the list.

Definition at line 203 of file regexp.c.

◆ values

pm_regexp_name_t* pm_regexp_names_t::values

The names, which the list owns in the scratch arena.

Definition at line 200 of file regexp.c.


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