Ruby
2.0.0p648(2015-12-16revision53162)
|
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 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) |
Definition at line 53 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_names(), match_offset(), match_regexp(), match_string(), match_to_s(), memsize_of(), rb_reg_match_post(), rb_reg_match_pre(), rb_reg_nth_match(), rb_reg_search(), and update_char_offset().
Definition at line 54 of file re.h.
Referenced by match_aref(), match_array(), match_backref_number(), match_begin(), match_end(), match_equal(), match_hash(), match_init_copy(), match_inspect(), match_offset(), match_size(), match_values_at(), rb_reg_match_last(), rb_reg_match_post(), rb_reg_match_pre(), rb_reg_nth_defined(), rb_reg_nth_match(), rb_reg_search(), rb_str_split_m(), rb_str_sub_bang(), rb_str_subpat_set(), scan_once(), and str_gsub().
typedef struct re_pattern_buffer Regexp |
void rb_match_busy | ( | VALUE | ) |
Definition at line 1189 of file re.c.
References FL_SET, and MATCH_BUSY.
Referenced by match_getter(), and rb_reg_match_m().
Definition at line 1321 of file re.c.
References onigenc_get_right_adjust_char_head(), ONIGENC_LEFT_ADJUST_CHAR_HEAD, ONIGENC_MBC_MAXLEN, p, range, rb_reg_prepare_enc(), RSTRING_LEN, RSTRING_PTR, and UChar.
Definition at line 1282 of file re.c.
References re_pattern_buffer::enc, err, onig_error_code_to_str(), onig_new(), OnigDefaultSyntax, re_pattern_buffer::options, Qnil, rb_eArgError, RB_GC_GUARD, rb_raise(), rb_reg_check(), rb_reg_prepare_enc(), rb_reg_preprocess(), rb_reg_raise(), RREGEXP, RREGEXP_SRC_LEN, RREGEXP_SRC_PTR, RSTRING_LEN, RSTRING_PTR, and UChar.
Referenced by rb_reg_search(), and strscan_do_scan().
Definition at line 2960 of file re.c.
References mbclen, 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 get_pat(), and rb_reg_s_quote().
Definition at line 2542 of file re.c.
References ENCODING_GET, memcmp(), rb_reg_new_str(), reg_cache, RREGEXP_SRC_LEN, RREGEXP_SRC_PTR, RSTRING_LEN, and RSTRING_PTR.
Referenced by get_pat(), and rb_str_split_m().
VALUE rb_reg_regsub | ( | VALUE | , |
VALUE | , | ||
struct re_registers * | , | ||
VALUE | |||
) |
Definition at line 3281 of file re.c.
References ASCGET, BEG, END, mbclen, name, name_to_backref_error(), name_to_backref_number(), re_registers::num_regs, onig_noname_group_capture_is_active(), p, rb_enc_asciicompat, rb_enc_compatible(), rb_enc_get(), rb_enc_str_buf_cat(), rb_eRuntimeError, rb_raise(), rb_str_buf_new(), rb_str_subseq(), RREGEXP, RSTRING_LEN, RSTRING_PTR, and val.
Referenced by rb_str_sub_bang(), and str_gsub().
Definition at line 1352 of file re.c.
References err, FL_TAINT, FL_TEST, FL_UNSET, match(), match_alloc(), MATCH_BUSY, MEMZERO, NIL_P, OBJ_INFECT, OBJ_TAINT, onig_error_code_to_str(), onig_free(), ONIG_MISMATCH, ONIG_OPTION_NONE, onig_region_copy(), onig_region_free(), onig_search(), Qnil, range, rb_backref_get(), rb_backref_set(), rb_reg_prepare_re(), rb_reg_raise(), rb_safe_level, rb_str_new4(), result, RMATCH, RMATCH_REGS, RREGEXP, RREGEXP_SRC_LEN, RREGEXP_SRC_PTR, RSTRING_LEN, RSTRING_PTR, and UChar.
Referenced by rb_reg_eqq(), rb_reg_match2(), rb_str_index_m(), rb_str_partition(), rb_str_rindex_m(), rb_str_rpartition(), rb_str_scan(), rb_str_split_m(), rb_str_sub_bang(), rb_str_subpat(), rb_str_subpat_set(), reg_match_pos(), scan_once(), and str_gsub().