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

A token in a character class. More...

Data Fields

pm_regexp_class_token_type_t type
 The kind of token.
const uint8_t * start
 Where the token starts in the pattern.
uint32_t value
 The value of a character, as pm_regexp_parse_char_value reads it.
bool escaped
 Whether a character is written as an escape.

Detailed Description

A token in a character class.

Definition at line 1704 of file regexp.c.

Field Documentation

◆ escaped

bool pm_regexp_class_token_t::escaped

Whether a character is written as an escape.

Definition at line 1715 of file regexp.c.

◆ start

const uint8_t* pm_regexp_class_token_t::start

Where the token starts in the pattern.

Definition at line 1709 of file regexp.c.

◆ type

pm_regexp_class_token_type_t pm_regexp_class_token_t::type

The kind of token.

Definition at line 1706 of file regexp.c.

◆ value

uint32_t pm_regexp_class_token_t::value

The value of a character, as pm_regexp_parse_char_value reads it.

Definition at line 1712 of file regexp.c.


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