25#include "ruby/internal/cast.h"
37#define RMATCH(obj) RBIMPL_CAST((struct RMatch *)(obj))
39#define RMATCH_REGS RMATCH_REGS
42struct re_patter_buffer;
111 OnigPosition embed[1];
125void rb_match_ensure_onig(
VALUE match);
153 rb_match_ensure_onig(match);
154 return &
RMATCH(match)->as.onig;
Defines RBIMPL_ATTR_ARTIFICIAL.
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Defines RBIMPL_ATTR_PURE.
#define RMATCH(obj)
Convenient casting macro.
static struct re_registers * RMATCH_REGS(VALUE match)
Queries the raw re_registers.
Ruby object's base components.
Regular expression execution context.
VALUE regexp
The expression of this match.
union RMatch::@55 as
"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.
int num_regs
Number of capture-group registers.
int capa
Capacity of as.embed, in OnigPosition slots.
struct RBasic basic
Basic part, including flags and class.
VALUE str
The target string that the match was made against.
Represents the region of a capture group.
long beg
Beginning of a group.
uintptr_t VALUE
Type that represents a Ruby object.
Defines enum ruby_value_type.