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

Strings joined into one piece of content, along with its encoding. More...

Data Fields

const pm_parser_t * parser
 The parser that the regular expression is in.
pm_buffer_t buffer
 The bytes of the content.
const pm_encoding_t * encoding
 The encoding of the content so far, or NULL before its first string.
bool ascii_only
 Whether the content so far is all ASCII.
const pm_encoding_t * incompatible
 The encoding of the first string that is not ASCII and is in another encoding than the content before it, so that the two cannot be joined.

Detailed Description

Strings joined into one piece of content, along with its encoding.

The strings are the literal parts of a regular expression, or the parts of a string that it interpolates. The content takes the encoding of the first string with a non-ASCII character. Every later string with a non-ASCII character must be in that same encoding.

Definition at line 3542 of file regexp.c.

Field Documentation

◆ ascii_only

bool pm_regexp_joined_t::ascii_only

Whether the content so far is all ASCII.

Definition at line 3553 of file regexp.c.

◆ buffer

pm_buffer_t pm_regexp_joined_t::buffer

The bytes of the content.

Definition at line 3547 of file regexp.c.

◆ encoding

const pm_encoding_t* pm_regexp_joined_t::encoding

The encoding of the content so far, or NULL before its first string.

Definition at line 3550 of file regexp.c.

◆ incompatible

const pm_encoding_t* pm_regexp_joined_t::incompatible

The encoding of the first string that is not ASCII and is in another encoding than the content before it, so that the two cannot be joined.

NULL if every string can be.

Definition at line 3560 of file regexp.c.

◆ parser

const pm_parser_t* pm_regexp_joined_t::parser

The parser that the regular expression is in.

Definition at line 3544 of file regexp.c.


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