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

The state of reading a character class. More...

Data Fields

pm_regexp_class_state_t state
 Where the class is in reading its values and ranges.
bool set
 Whether the last value is a set of characters, like \d.
uint32_t value
 The last value, if it is a character.
const uint8_t * start
 Where the last value starts in the pattern.

Detailed Description

The state of reading a character class.

Definition at line 1950 of file regexp.c.

Field Documentation

◆ set

bool pm_regexp_class_t::set

Whether the last value is a set of characters, like \d.

Definition at line 1955 of file regexp.c.

◆ start

const uint8_t* pm_regexp_class_t::start

Where the last value starts in the pattern.

Definition at line 1961 of file regexp.c.

◆ state

pm_regexp_class_state_t pm_regexp_class_t::state

Where the class is in reading its values and ranges.

Definition at line 1952 of file regexp.c.

◆ value

uint32_t pm_regexp_class_t::value

The last value, if it is a character.

Definition at line 1958 of file regexp.c.


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