Ruby: rb_matchext_struct Struct Reference

Ruby 3.3.5p100 (2024-09-03 revision ef084cc8f4958c1b6e4ead99136631bef6d8ddba)

Data Fields
rb_matchext_struct Struct Reference

Represents a match. More...

`#include <rmatch.h>`

## Data Fields
struct re_registers | regs
| "Registers" of a match.
struct rmatch_offset * | char_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* rb_matchext_struct::char_offset

Capture group offsets, in C array.

Definition at line 79 of file rmatch.h.

## ◆ char_offset_num_allocated

int rb_matchext_struct::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 rb_matchext_struct::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:

- include/ruby/internal/core/rmatch.h