Ruby
2.4.2p198(2017-09-14revision59899)
|
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 *) |
Definition at line 51 of file re.h.
Referenced by match_aref(), match_array(), match_backref_number(), match_begin(), match_check(), match_end(), match_equal(), match_hash(), match_init_copy(), match_inspect(), match_named_captures(), match_names(), match_offset(), match_regexp(), match_string(), match_to_s(), match_values_at(), obj_memsize_of(), rb_reg_match_post(), rb_reg_match_pre(), rb_reg_nth_match(), rb_reg_search0(), and update_char_offset().
Definition at line 52 of file re.h.
Referenced by match_aref(), match_array(), match_ary_aref(), match_ary_subseq(), match_backref_number(), match_begin(), match_end(), match_equal(), match_hash(), match_init_copy(), match_inspect(), match_offset(), match_size(), match_values_at(), rb_match_count(), rb_match_nth_defined(), rb_reg_match_last(), rb_reg_match_post(), rb_reg_match_pre(), rb_reg_nth_defined(), rb_reg_nth_match(), rb_reg_search0(), rb_str_split_m(), rb_str_sub_bang(), rb_str_subpat_set(), scan_once(), and str_gsub().
typedef typedefRUBY_SYMBOL_EXPORT_BEGIN struct re_pattern_buffer Regexp |
void rb_match_busy | ( | VALUE | ) |
Definition at line 1260 of file re.c.
References FL_SET, and MATCH_BUSY.
Referenced by match_getter(), and rb_reg_match_m().
Definition at line 1465 of file re.c.
References onigenc_get_right_adjust_char_head(), ONIGENC_LEFT_ADJUST_CHAR_HEAD, ONIGENC_MBC_MAXLEN, range, rb_reg_prepare_enc(), RSTRING_LEN, RSTRING_PTR, and UChar.
Definition at line 1458 of file re.c.
References err, and rb_reg_prepare_re0().
Referenced by strscan_do_scan().
Definition at line 3356 of file re.c.
References mbclen, memcpy, OBJ_INFECT, 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, and RSTRING_PTR.
Referenced by match_regexp(), and rb_reg_s_quote().
Definition at line 2867 of file re.c.
References ENCODING_GET, memcmp(), rb_reg_new_str(), reg_cache, reg_hash(), RREGEXP_SRC_LEN, RREGEXP_SRC_PTR, RSTRING_LEN, and RSTRING_PTR.
Referenced by get_pat(), match_regexp(), and rb_str_split_m().
int rb_reg_region_copy | ( | struct re_registers * | , |
const struct re_registers * | |||
) |
Definition at line 912 of file re.c.
References re_registers::allocated, onig_region_copy(), ONIGERR_MEMORY, and rb_gc().
Referenced by match_init_copy(), rb_reg_search0(), and strscan_init_copy().
VALUE rb_reg_regsub | ( | VALUE | , |
VALUE | , | ||
struct re_registers * | , | ||
VALUE | |||
) |
Definition at line 3670 of file re.c.
References ASCGET, BEG, END, mbclen, name, name_to_backref_error(), NAME_TO_NUMBER, NIL_P, re_registers::num_regs, onig_noname_group_capture_is_active(), rb_enc_asciicompat, rb_enc_get(), rb_enc_str_buf_cat(), rb_eRuntimeError, rb_raise(), rb_str_buf_new(), rb_str_subseq(), RREGEXP_PTR, RSTRING_LEN, RSTRING_PTR, and val.
Referenced by rb_str_sub_bang(), and str_gsub().
Definition at line 1586 of file re.c.
References rb_reg_search0().
Referenced by rb_reg_eqq(), rb_reg_match2(), rb_str_index_m(), rb_str_partition(), rb_str_rindex_m(), rb_str_rpartition(), rb_str_split_m(), rb_str_subpat(), rb_str_subpat_set(), and reg_match_pos().