Ruby 3.2.5p208 (2024-07-26 revision 31d0f1a2e7dbfb60731d1f05b868e1d578cda493)
rmatch Struct Reference

Represents a match. More...

#include <rmatch.h>

Data Fields

struct re_registers regs
 "Registers" of a match.
 
struct rmatch_offsetchar_offset
 Capture group offsets, in C array.
 
int char_offset_num_allocated
 Number of rmatch_offset that rmatch::char_offset holds.
 

Detailed Description

Represents a match.

Definition at line 71 of file rmatch.h.

Field Documentation

◆ char_offset

struct rmatch_offset* rmatch::char_offset

Capture group offsets, in C array.

Definition at line 79 of file rmatch.h.

◆ char_offset_num_allocated

int rmatch::char_offset_num_allocated

Number of rmatch_offset that rmatch::char_offset holds.

Definition at line 82 of file rmatch.h.

◆ regs

struct re_registers rmatch::regs

"Registers" of a match.

This is a quasi-opaque struct that holds execution result of a match. Roughly resembles &~.

Definition at line 76 of file rmatch.h.


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