Ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a25176072e02db9254f0e0c84c805cd)
|
Go to the source code of this file.
Data Structures | |
struct | rmatch_offset |
struct | rmatch |
struct | RMatch |
Macros | |
#define | RMATCH(obj) (R_CAST(RMatch)(obj)) |
#define | RMATCH_REGS(obj) (&(R_CAST(RMatch)(obj))->rmatch->regs) |
Typedefs | |
typedef typedefRUBY_SYMBOL_EXPORT_BEGIN struct re_pattern_buffer | Regexp |
Functions | |
VALUE | rb_reg_regcomp (VALUE) |
long | rb_reg_search (VALUE, VALUE, long, int) |
VALUE | rb_reg_regsub (VALUE, VALUE, struct re_registers *, VALUE) |
long | rb_reg_adjust_startpos (VALUE, VALUE, long, int) |
void | rb_match_busy (VALUE) |
VALUE | rb_reg_quote (VALUE) |
regex_t * | rb_reg_prepare_re (VALUE re, VALUE str) |
int | rb_reg_region_copy (struct re_registers *, const struct re_registers *) |
typedef typedefRUBY_SYMBOL_EXPORT_BEGIN struct re_pattern_buffer Regexp |
Definition at line 1499 of file re.c.
References err, rb_reg_prepare_re0(), and str.
Definition at line 3462 of file re.c.
References mbclen, memcpy(), n, rb_enc_ascget(), rb_enc_associate(), rb_enc_copy(), rb_enc_get(), rb_enc_mbcput, rb_enc_str_asciionly_p(), rb_str_new, rb_str_new3, rb_str_resize(), rb_usascii_encoding(), RSTRING_LEN, RSTRING_PTR, and str.
int rb_reg_region_copy | ( | struct re_registers * | to, |
const struct re_registers * | from | ||
) |
Definition at line 946 of file re.c.
References re_registers::allocated, onig_region_copy(), ONIGERR_MEMORY, and rb_gc().
VALUE rb_reg_regsub | ( | VALUE | str, |
VALUE | src, | ||
struct re_registers * | regs, | ||
VALUE | regexp | ||
) |
Definition at line 3776 of file re.c.
References ASCGET, mbclen, n, name, NAME_TO_NUMBER, NIL_P, onig_noname_group_capture_is_active(), rb_enc_asciicompat, rb_enc_get(), rb_enc_str_buf_cat(), rb_str_buf_new(), rb_str_subseq(), RREGEXP_PTR, RSTRING_LEN, RSTRING_PTR, src, and str.
Definition at line 1620 of file re.c.
References rb_reg_search0(), and str.
Referenced by rb_reg_match2().