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" {.
struct re_pattern_buffer Regexp
Old name of re_pattern_buffer.
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.
struct rmatch_offset * char_offset
Capture group offsets, in C array.
union RMatch::@357327212031205367147161324375004050200256000107 as
"Registers" of a match.
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.
rb_len_t end
End of a group.
rb_len_t beg
Beginning of a group.
long rb_len_t
A signed integer type for lengths and indices of objects such as String and Array.
uintptr_t VALUE
Type that represents a Ruby object.
Defines enum ruby_value_type.