match 273 ext/date/date_parse.c return match(s, p, hash, c); \ match 413 gc.c struct RMatch match; match 2213 gc.c if (RANY(obj)->as.match.rmatch) { match 2214 gc.c struct rmatch *rm = RANY(obj)->as.match.rmatch; match 4527 gc.c gc_mark(objspace, any->as.match.regexp); match 4528 gc.c if (any->as.match.str) { match 4529 gc.c gc_mark(objspace, any->as.match.str); match 668 include/ruby/intern.h int rb_reg_backref_number(VALUE match, VALUE backref); match 901 re.c NEWOBJ_OF(match, struct RMatch, klass, T_MATCH); match 903 re.c match->str = 0; match 904 re.c match->rmatch = 0; match 905 re.c match->regexp = 0; match 906 re.c match->rmatch = ZALLOC(struct rmatch); match 908 re.c return (VALUE)match; match 941 re.c struct rmatch *rm = RMATCH(match)->rmatch; match 960 re.c enc = rb_enc_get(RMATCH(match)->str); match 980 re.c s = p = RSTRING_PTR(RMATCH(match)->str); match 1012 re.c if (!RMATCH(match)->regexp) { match 1064 re.c match_check(match); match 1065 re.c regexp = RMATCH(match)->regexp; match 1067 re.c VALUE str = rb_reg_nth_match(0, match); match 1069 re.c RMATCH(match)->regexp = regexp; match 1091 re.c match_check(match); match 1092 re.c return rb_reg_names(RMATCH(match)->regexp); match 1110 re.c match_check(match); match 1111 re.c return INT2FIX(RMATCH_REGS(match)->num_regs); match 1120 re.c struct re_registers *regs = RMATCH_REGS(match); match 1121 re.c VALUE regexp = RMATCH(match)->regexp; match 1123 re.c match_check(match); match 1152 re.c return match_backref_number(match, backref); match 1176 re.c int i = match_backref_number(match, n); match 1177 re.c struct re_registers *regs = RMATCH_REGS(match); match 1179 re.c match_check(match); match 1186 re.c update_char_offset(match); match 1187 re.c return rb_assoc_new(INT2FIX(RMATCH(match)->rmatch->char_offset[i].beg), match 1188 re.c INT2FIX(RMATCH(match)->rmatch->char_offset[i].end)); match 1212 re.c int i = match_backref_number(match, n); match 1213 re.c struct re_registers *regs = RMATCH_REGS(match); match 1215 re.c match_check(match); match 1222 re.c update_char_offset(match); match 1223 re.c return INT2FIX(RMATCH(match)->rmatch->char_offset[i].beg); match 1247 re.c int i = match_backref_number(match, n); match 1248 re.c struct re_registers *regs = RMATCH_REGS(match); match 1250 re.c match_check(match); match 1257 re.c update_char_offset(match); match 1258 re.c return INT2FIX(RMATCH(match)->rmatch->char_offset[i].end); match 1266 re.c FL_SET(match, MATCH_BUSY); match 1273 re.c if (NIL_P(match)) return -1; match 1274 re.c regs = RMATCH_REGS(match); match 1283 re.c if (NIL_P(match)) return FALSE; match 1284 re.c regs = RMATCH_REGS(match); match 1299 re.c struct RMatch *match = (struct RMatch *)m; match 1300 re.c struct rmatch *rmatch = match->rmatch; match 1302 re.c match->str = string; match 1303 re.c match->regexp = Qnil; match 1308 re.c OBJ_INFECT(match, string); match 1314 re.c VALUE match = rb_backref_get(); match 1315 re.c if (NIL_P(match) || FL_TEST(match, MATCH_BUSY)) { match 1316 re.c match = match_alloc(rb_cMatch); match 1318 re.c match_set_string(match, string, pos, len); match 1319 re.c rb_backref_set(match); match 1504 re.c VALUE match; match 1520 re.c match = rb_backref_get(); match 1521 re.c if (!NIL_P(match)) { match 1522 re.c if (FL_TEST(match, MATCH_BUSY)) { match 1523 re.c match = Qnil; match 1526 re.c regs = RMATCH_REGS(match); match 1529 re.c if (NIL_P(match)) { match 1564 re.c if (NIL_P(match)) { match 1566 re.c match = match_alloc(rb_cMatch); match 1567 re.c err = rb_reg_region_copy(RMATCH_REGS(match), regs); match 1572 re.c FL_UNSET(match, FL_TAINT); match 1576 re.c RMATCH(match)->str = rb_str_new4(str); match 1577 re.c OBJ_INFECT(match, str); match 1580 re.c RMATCH(match)->regexp = re; match 1581 re.c RMATCH(match)->rmatch->char_offset_updated = 0; match 1582 re.c rb_backref_set(match); match 1584 re.c OBJ_INFECT(match, re); match 1599 re.c if (NIL_P(match)) return Qnil; match 1600 re.c match_check(match); match 1601 re.c regs = RMATCH_REGS(match); match 1620 re.c if (NIL_P(match)) return Qnil; match 1621 re.c match_check(match); match 1622 re.c regs = RMATCH_REGS(match); match 1634 re.c str = rb_str_subseq(RMATCH(match)->str, start, len); match 1635 re.c OBJ_INFECT(str, match); match 1642 re.c return rb_reg_nth_match(0, match); match 1663 re.c if (NIL_P(match)) return Qnil; match 1664 re.c match_check(match); match 1665 re.c regs = RMATCH_REGS(match); match 1667 re.c str = rb_str_subseq(RMATCH(match)->str, 0, BEG(0)); match 1668 re.c if (OBJ_TAINTED(match)) OBJ_TAINT(str); match 1691 re.c if (NIL_P(match)) return Qnil; match 1692 re.c match_check(match); match 1693 re.c regs = RMATCH_REGS(match); match 1695 re.c str = RMATCH(match)->str; match 1698 re.c if (OBJ_TAINTED(match)) OBJ_TAINT(str); match 1708 re.c if (NIL_P(match)) return Qnil; match 1709 re.c match_check(match); match 1710 re.c regs = RMATCH_REGS(match); match 1716 re.c return rb_reg_nth_match(i, match); match 1750 re.c int taint = OBJ_TAINTED(match); match 1752 re.c match_check(match); match 1753 re.c regs = RMATCH_REGS(match); match 1755 re.c target = RMATCH(match)->str; match 1796 re.c return match_array(match, 0); match 1815 re.c return match_array(match, 1); match 1858 re.c long olen = RMATCH_REGS(match)->num_regs; match 1864 re.c rb_ary_push(result, rb_reg_nth_match((int)j, match)); match 1876 re.c int num_regs = RMATCH_REGS(match)->num_regs; match 1881 re.c if (NIL_P(result)) return rb_reg_nth_match(NUM2INT(idx), match); match 1882 re.c rb_ary_push(result, rb_reg_nth_match(NUM2INT(idx), match)); match 1887 re.c return match_ary_subseq(match, beg, len, result); match 1923 re.c match_check(match); match 1928 re.c return rb_reg_nth_match(FIX2INT(idx), match); match 1931 re.c int num = namev_to_backref_number(RMATCH_REGS(match), RMATCH(match)->regexp, idx); match 1933 re.c return rb_reg_nth_match(num, match); match 1936 re.c return match_ary_aref(match, idx, Qnil); match 1943 re.c long num_regs = RMATCH_REGS(match)->num_regs; match 1957 re.c return match_ary_subseq(match, beg, len, Qnil); match 1984 re.c match_check(match); match 1989 re.c rb_ary_push(result, rb_reg_nth_match(FIX2INT(argv[i]), match)); match 1992 re.c int num = namev_to_backref_number(RMATCH_REGS(match), RMATCH(match)->regexp, argv[i]); match 1994 re.c rb_ary_push(result, rb_reg_nth_match(num, match)); match 1997 re.c match_ary_aref(match, argv[i], result); match 2018 re.c VALUE str = rb_reg_last_match(match); match 2020 re.c match_check(match); match 2022 re.c if (OBJ_TAINTED(match)) OBJ_TAINT(str); match 2023 re.c if (OBJ_TAINTED(RMATCH(match)->str)) OBJ_TAINT(str); match 2032 re.c VALUE match = memo->v2; match 2041 re.c value = rb_reg_nth_match(back_refs[i], match); match 2084 re.c match_check(match); match 2087 re.c memo = MEMO_NEW(hash, match, 0); match 2089 re.c onig_foreach_name(RREGEXP(RMATCH(match)->regexp)->ptr, match_named_captures_iter, (void*)memo); match 2107 re.c match_check(match); match 2108 re.c return RMATCH(match)->str; /* str is frozen */ match 2153 re.c VALUE cname = rb_class_path(rb_obj_class(match)); match 2156 re.c struct re_registers *regs = RMATCH_REGS(match); match 2159 re.c VALUE regexp = RMATCH(match)->regexp; match 2162 re.c return rb_sprintf("#<%"PRIsVALUE":%p>", cname, (void*)match); match 2166 re.c cname, rb_reg_nth_match(0, match)); match 2189 re.c v = rb_reg_nth_match(i, match); match 2951 re.c st_index_t hashval = rb_hash_start(rb_str_hash(RMATCH(match)->str)); match 2953 re.c rb_hash_uint(hashval, reg_hash(RMATCH(match)->regexp)); match 2954 re.c regs = RMATCH_REGS(match); match 3815 re.c VALUE match = rb_backref_get(); match 3817 re.c if (NIL_P(match)) return Qnil; match 3818 re.c rb_match_busy(match); match 3819 re.c return match; match 3865 re.c VALUE match = rb_backref_get(); match 3867 re.c if (NIL_P(match)) return Qnil; match 3868 re.c n = match_backref_number(match, nth); match 3869 re.c return rb_reg_nth_match(n, match); match 4119 regexec.c goto match;\ match 4129 regexec.c goto match;\ match 4141 regexec.c goto match;\ match 4151 regexec.c goto match;\ match 4419 regexec.c goto match; match 4455 regexec.c match: match 4008 string.c VALUE match = rb_backref_get(); match 4009 string.c int nth = rb_reg_backref_number(match, backref); match 4010 string.c return rb_reg_nth_match(nth, match); match 4249 string.c VALUE match; match 4257 string.c match = rb_backref_get(); match 4258 string.c nth = rb_reg_backref_number(match, backref); match 4259 string.c regs = RMATCH_REGS(match); match 4497 string.c VALUE match; match 4500 string.c match = rb_backref_get(); match 4501 string.c OBJ_INFECT(match, pat); match 4557 string.c VALUE match, match0 = Qnil; match 4562 string.c match = rb_backref_get(); match 4563 string.c regs = RMATCH_REGS(match); match 4572 string.c if (iter) match0 = rb_reg_nth_match(0, match); match 4691 string.c VALUE pat, val = Qnil, repl, match, match0 = Qnil, dest, hash = Qnil; match 4739 string.c match = rb_backref_get(); match 4740 string.c regs = RMATCH_REGS(match); match 4749 string.c if (mode == ITER) match0 = rb_reg_nth_match(0, match); match 8158 string.c VALUE result, match; match 8163 string.c match = rb_backref_get(); match 8164 string.c regs = RMATCH_REGS(match); match 8180 string.c return rb_reg_nth_match(0, match); match 8184 string.c rb_ary_push(result, rb_reg_nth_match(i, match)); match 1916 util.c match(const char **sp, char *t) match 2209 util.c if (match(&s,"nf")) { match 2211 util.c if (!match(&s,"inity")) match 2220 util.c if (match(&s, "an")) {