Ruby 4.1.0dev (2026-11-17 revision 3a19e2efcf133ee35daaeffc36633cd99a9f2c47)
RRegexp Struct Reference

Ruby's regular expression. More...

#include <rregexp.h>

Data Fields

struct RBasic basic
 Basic part, including flags and class.
const VALUE src
 Source code of this expression.
struct rb_regexp_variant * variants
 Compiled variants for other encodings.

Detailed Description

Ruby's regular expression.

A regexp is compiled into its own intermediate representation. This one holds that info. Regexp "match" operation then executes that IR.

Definition at line 51 of file rregexp.h.

Field Documentation

◆ basic

struct RBasic RRegexp::basic

Basic part, including flags and class.

Definition at line 54 of file rregexp.h.

◆ src

const VALUE RRegexp::src

Source code of this expression.

Definition at line 57 of file rregexp.h.

Referenced by rb_enc_reg_new().

◆ variants

struct rb_regexp_variant* RRegexp::variants

Compiled variants for other encodings.

Warning
Do not access this field from extension libraries.

Definition at line 64 of file rregexp.h.


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