#include "ruby.h"
#include "re.h"
#include <ctype.h>
Go to the source code of this file.
|
|
Definition at line 18 of file re.c. Referenced by rb_reg_match_pre(), rb_reg_regsub(), rb_str_split_m(), rb_str_sub_bang(), scan_once(), and str_gsub(). |
|
|
Definition at line 19 of file re.c. Referenced by rb_reg_regsub(), rb_str_split_m(), rb_str_sub_bang(), scan_once(), and str_gsub(). |
|
|
Definition at line 156 of file re.c. Referenced by kcode_euc(), kcode_reset_option(), kcode_set_option(), rb_get_kcode(), rb_kcode(), rb_reg_desc(), rb_reg_get_kcode(), rb_reg_initialize_m(), rb_reg_kcode_m(), rb_reg_s_union(), and rb_set_kcode(). |
|
|
Definition at line 159 of file re.c. Referenced by kcode_euc(), kcode_none(), kcode_set_option(), kcode_sjis(), kcode_utf8(), rb_reg_adjust_startpos(), rb_reg_cur_kcode(), rb_reg_desc(), rb_reg_initialize_m(), rb_reg_kcode_m(), rb_reg_mbclen2(), rb_reg_options(), rb_reg_prepare_re(), rb_reg_s_union(), and rb_reg_search(). |
|
|
Definition at line 160 of file re.c. Referenced by kcode_euc(), kcode_none(), kcode_set_option(), kcode_sjis(), kcode_utf8(), rb_reg_cur_kcode(), rb_reg_desc(), rb_reg_get_kcode(), rb_reg_initialize_m(), rb_reg_kcode_m(), rb_reg_prepare_re(), and rb_reg_s_union(). |
|
|
Definition at line 155 of file re.c. Referenced by kcode_reset_option(), kcode_set_option(), rb_kcode(), rb_reg_desc(), rb_reg_get_kcode(), rb_reg_initialize_m(), rb_reg_kcode_m(), rb_reg_s_union(), and rb_set_kcode(). |
|
|
Definition at line 157 of file re.c. Referenced by kcode_reset_option(), kcode_set_option(), kcode_sjis(), rb_get_kcode(), rb_kcode(), rb_reg_desc(), rb_reg_get_kcode(), rb_reg_initialize_m(), rb_reg_kcode_m(), rb_reg_s_union(), and rb_set_kcode(). |
|
|
Definition at line 158 of file re.c. Referenced by kcode_reset_option(), kcode_set_option(), kcode_utf8(), rb_get_kcode(), rb_kcode(), rb_reg_desc(), rb_reg_get_kcode(), rb_reg_initialize_m(), rb_reg_kcode_m(), rb_reg_s_union(), and rb_set_kcode(). |
|
|
Referenced by rb_memsearch(). |
|
|
Definition at line 806 of file re.c. Referenced by rb_match_busy(), and rb_reg_search(). |
|
|
Definition at line 154 of file re.c. Referenced by rb_reg_initialize(), and rb_reg_prepare_re(). |
|
|
Definition at line 2145 of file re.c. References Qfalse, Qtrue, and ruby_ignorecase. Referenced by Init_Regexp(). |
|
||||||||||||
|
Definition at line 2151 of file re.c. References ID, may_need_recompile, rb_id2name(), rb_warn(), RTEST, ruby_ignorecase, and VALUE. Referenced by Init_Regexp(). |
|
|
|
Definition at line 165 of file re.c. References FL_SET, FL_UNSET, KCODE_EUC, KCODE_FIXED, and KCODE_MASK. Referenced by rb_reg_initialize(). |
|
|
Definition at line 2097 of file re.c. References rb_get_kcode(), and rb_str_new2(). Referenced by Init_Regexp(). |
|
|
Definition at line 192 of file re.c. References FL_SET, FL_UNSET, KCODE_FIXED, and KCODE_MASK. Referenced by rb_reg_initialize(). |
|
|
Definition at line 226 of file re.c. References curr_kcode, KCODE_EUC, KCODE_NONE, KCODE_SJIS, KCODE_UTF8, MBCTYPE_ASCII, MBCTYPE_EUC, MBCTYPE_SJIS, MBCTYPE_UTF8, re_mbcinit(), and reg_kcode. Referenced by rb_reg_adjust_startpos(), rb_reg_initialize(), rb_reg_mbclen2(), rb_reg_s_quote(), rb_reg_search(), and rb_reg_to_s(). |
|
|
Definition at line 202 of file re.c. References curr_kcode, FL_TEST, KCODE_EUC, KCODE_FIXED, KCODE_MASK, KCODE_NONE, KCODE_SJIS, KCODE_UTF8, MBCTYPE_ASCII, MBCTYPE_EUC, MBCTYPE_SJIS, MBCTYPE_UTF8, RBASIC, re_mbcinit(), reg_kcode, and VALUE. Referenced by rb_reg_adjust_startpos(), rb_reg_initialize(), rb_reg_mbclen2(), rb_reg_prepare_re(), rb_reg_search(), and rb_reg_to_s(). |
|
|
Definition at line 2137 of file re.c. References may_need_recompile, rb_set_kcode(), StringValuePtr, and VALUE. Referenced by Init_Regexp(). |
|
|
Definition at line 174 of file re.c. References FL_SET, FL_UNSET, KCODE_FIXED, KCODE_MASK, and KCODE_SJIS. Referenced by rb_reg_initialize(). |
|
|
Definition at line 183 of file re.c. References FL_SET, FL_UNSET, KCODE_FIXED, KCODE_MASK, and KCODE_UTF8. Referenced by rb_reg_initialize(). |
|
|
Definition at line 1069 of file re.c. References rb_backref_get(), and rb_reg_last_match(). Referenced by Init_Regexp(). |
|
|
Definition at line 1087 of file re.c. References rb_backref_get(), and rb_reg_match_last(). Referenced by Init_Regexp(). |
|
||||||||||||||||
|
Definition at line 618 of file re.c. References ALLOC, ALLOC_N, MEMZERO, NULL, rb_reg_raise(), re_compile_pattern(), re_free_pattern(), and Regexp. Referenced by rb_reg_initialize(). |
|
|
Definition at line 669 of file re.c. References ALLOC, MEMZERO, NEWOBJ, OBJSETUP, T_MATCH, and VALUE. Referenced by Init_Regexp(), and rb_reg_search(). |
|
||||||||||||||||
|
Definition at line 1191 of file re.c. References FIX2INT, FIXNUM_P, match_to_a(), NIL_P, rb_ary_aref(), rb_reg_nth_match(), rb_scan_args(), and VALUE. Referenced by Init_Regexp(). |
|
||||||||||||
|
Definition at line 1093 of file re.c. References OBJ_TAINT, OBJ_TAINTED, Qnil, rb_ary_new2(), rb_ary_push(), rb_str_substr(), RMATCH, and VALUE. Referenced by match_captures(), and match_to_a(). |
|
||||||||||||
|
Definition at line 764 of file re.c. References INT2FIX, NUM2INT, Qnil, rb_eIndexError, rb_raise(), RMATCH, and VALUE. Referenced by Init_Regexp(). |
|
|
Definition at line 1164 of file re.c. References match_array(), and VALUE. Referenced by Init_Regexp(). |
|
||||||||||||
|
Definition at line 792 of file re.c. References INT2FIX, NUM2INT, Qnil, rb_eIndexError, rb_raise(), RMATCH, and VALUE. Referenced by Init_Regexp(). |
|
||||||||||||
|
Definition at line 1208 of file re.c. References rb_reg_nth_match(), and VALUE. Referenced by match_values_at(). |
|
|
Definition at line 2161 of file re.c. References NIL_P, Qnil, rb_backref_get(), rb_match_busy(), and VALUE. Referenced by Init_Regexp(), and rb_reg_s_last_match(). |
|
||||||||||||
|
Definition at line 685 of file re.c. References rb_eTypeError, rb_obj_class(), rb_obj_is_instance_of(), rb_raise(), re_copy_registers(), re_free_registers(), RMATCH, and VALUE. Referenced by Init_Regexp(). |
|
||||||||||||
|
Definition at line 735 of file re.c. References INT2FIX, NUM2INT, Qnil, rb_assoc_new(), rb_eIndexError, rb_raise(), RMATCH, and VALUE. Referenced by Init_Regexp(). |
|
||||||||||||||||
|
Definition at line 1251 of file re.c. References OBJ_TAINT, OBJ_TAINTED, rb_ary_new(), rb_ary_push(), rb_eArgError, rb_raise(), rb_str_substr(), rb_yield(), RMATCH, RTEST, and VALUE. Referenced by Init_Regexp(). |
|
|
Definition at line 2171 of file re.c. References Check_Type, NIL_P, rb_backref_set(), T_MATCH, and VALUE. Referenced by Init_Regexp(). |
|
|
Definition at line 715 of file re.c. References INT2FIX, RMATCH, and VALUE. Referenced by Init_Regexp(). |
|
|
Definition at line 1312 of file re.c. Referenced by Init_Regexp(). |
|
|
Definition at line 1144 of file re.c. References match_array(), and VALUE. Referenced by Init_Regexp(), and match_aref(). |
|
|
Definition at line 1289 of file re.c. References NIL_P, OBJ_TAINT, OBJ_TAINTED, rb_reg_last_match(), rb_str_new(), RMATCH, and VALUE. Referenced by Init_Regexp(). |
|
||||||||||||||||
|
Definition at line 1229 of file re.c. References match_entry(), rb_values_at(), RMATCH, and VALUE. Referenced by Init_Regexp(). |
|
|
Definition at line 1081 of file re.c. References rb_backref_get(), and rb_reg_match_post(). Referenced by Init_Regexp(). |
|
|
Definition at line 1075 of file re.c. References rb_backref_get(), and rb_reg_match_pre(). Referenced by Init_Regexp(). |
|
|
Definition at line 1840 of file re.c. References KCODE_EUC, KCODE_NONE, KCODE_SJIS, KCODE_UTF8, MBCTYPE_ASCII, MBCTYPE_EUC, MBCTYPE_SJIS, MBCTYPE_UTF8, rb_bug(), and reg_kcode. |
|
|
Definition at line 809 of file re.c. References FL_SET, MATCH_BUSY, and VALUE. Referenced by match_getter(), rb_reg_match_m(), rb_str_scan(), rb_str_sub_bang(), and str_gsub(). |
|
||||||||||||||||||||
|
Definition at line 861 of file re.c. References curr_kcode, FL_TEST, KCODE_FIXED, kcode_reset_option(), kcode_set_option(), may_need_recompile, rb_reg_check(), rb_reg_prepare_re(), re_adjust_startpos(), reg_kcode, RREGEXP, RSTRING, and VALUE. Referenced by rb_str_index_m(), and rb_str_rindex_m(). |
|
|
Definition at line 544 of file re.c. References Qfalse, Qtrue, rb_reg_check(), RE_OPTION_IGNORECASE, RREGEXP, and VALUE. Referenced by Init_Regexp(). |
|
|
Definition at line 261 of file re.c. References rb_eTypeError, rb_raise(), RREGEXP, and VALUE. Referenced by rb_reg_adjust_startpos(), rb_reg_casefold_p(), rb_reg_desc(), rb_reg_equal(), rb_reg_hash(), rb_reg_init_copy(), rb_reg_initialize_m(), rb_reg_inspect(), rb_reg_options(), rb_reg_prepare_re(), rb_reg_search(), rb_reg_source(), and rb_reg_to_s(). |
|
|
Definition at line 1425 of file re.c. References FL_TEST, KCODE_FIXED, KCODE_MASK, RBASIC, and VALUE. Referenced by rb_reg_equal(). |
|
||||||||||||||||
|
Definition at line 328 of file re.c. References FL_TEST, KCODE_EUC, KCODE_FIXED, KCODE_MASK, KCODE_NONE, KCODE_SJIS, KCODE_UTF8, OBJ_INFECT, rb_reg_check(), rb_reg_expr_str(), rb_str_buf_cat2(), rb_str_buf_new2(), RBASIC, RE_OPTION_EXTENDED, RE_OPTION_IGNORECASE, RE_OPTION_MULTILINE, RREGEXP, and VALUE. Referenced by rb_reg_inspect(), and rb_reg_raise(). |
|
||||||||||||
|
Definition at line 1541 of file re.c. References NIL_P, Qfalse, Qnil, Qtrue, rb_backref_set(), rb_check_string_type(), rb_reg_search(), StringValue, T_STRING, TYPE, and VALUE. Referenced by Init_Regexp(). |
|
||||||||||||
|
Definition at line 1476 of file re.c. References Qfalse, Qtrue, rb_reg_check(), rb_reg_cur_kcode(), RREGEXP, T_REGEXP, TYPE, and VALUE. Referenced by Init_Regexp(). |
|
||||||||||||||||
|
Definition at line 272 of file re.c. References ismbchar, ISPRINT, ISSPACE, mbclen, rb_str_buf_cat(), and VALUE. Referenced by rb_reg_desc(), and rb_reg_to_s(). |
|
|
Definition at line 1856 of file re.c. References KCODE_EUC, KCODE_MASK, KCODE_NONE, KCODE_SJIS, KCODE_UTF8, RBASIC, and VALUE. Referenced by rb_reg_options(). |
|
|
Definition at line 1442 of file re.c. References INT2FIX, rb_reg_check(), RREGEXP, and VALUE. Referenced by Init_Regexp(). |
|
||||||||||||
|
Definition at line 1981 of file re.c. References rb_check_frozen(), rb_eTypeError, rb_obj_class(), rb_obj_is_instance_of(), rb_raise(), rb_reg_check(), rb_reg_initialize(), rb_reg_options(), RREGEXP, and VALUE. Referenced by Init_Regexp(). |
|
||||||||||||||||||||
|
Definition at line 1321 of file re.c. References ALLOC_N, FL_SET, free, kcode_euc(), kcode_none(), kcode_reset_option(), kcode_set_option(), kcode_sjis(), kcode_utf8(), make_regexp(), re_free_pattern(), RE_OPTION_IGNORECASE, REG_CASESTATE, reg_kcode, RREGEXP, ruby_ignorecase, and VALUE. Referenced by rb_reg_init_copy(), rb_reg_initialize_m(), and rb_reg_new(). |
|
||||||||||||||||
|
Definition at line 1647 of file re.c. References FIX2INT, FIXNUM_P, FL_TEST, KCODE_EUC, KCODE_FIXED, KCODE_MASK, KCODE_NONE, KCODE_SJIS, KCODE_UTF8, NIL_P, rb_check_frozen(), rb_eArgError, rb_raise(), rb_reg_check(), rb_reg_initialize(), rb_warn(), RBASIC, RE_OPTION_IGNORECASE, RREGEXP, RSTRING, RTEST, StringValuePtr, T_REGEXP, TYPE, and VALUE. Referenced by Init_Regexp(). |
|
|
Definition at line 401 of file re.c. References rb_reg_check(), rb_reg_desc(), RREGEXP, and VALUE. Referenced by Init_Regexp(). |
|
|
|