Regexp, MatchData
最終更新:
tmtbnc
-
view
Regexp
Object > Regexp
| Ruby | C |
| Regexp | rb_cRegexp |
| Regexp.compile | rb_reg_new(s, len, options) |
| Regexp.escape Regexp.quote |
rb_reg_quote(str) |
| Regexp#=== | rb_reg_eqq(re, str) |
| Regexp#=~ | rb_reg_match(re, str) |
| Regexp#~ | rb_reg_match2(re) |
| Regexp#options | int rb_reg_options(re) |
| rb_reg_adjust_startpos(re, str, pos, reverse) | |
| rb_reg_mbclen2(c, re) | |
| rb_reg_regcomp(str) | |
| rb_reg_regsub(str, src, regs) | |
| rb_reg_search(re, str, pos, reverse) |
MatchData
Object > MatchData
| Ruby | C |
| MatchData | rb_cMatch |
| MatchData#[](nth) | rb_reg_nth_match(int nth, match) |
| MatchData#post_match | rb_reg_match_post(match) |
| MatchData#pre_match | rb_reg_match_pre(match) |
| match[0] | rb_reg_last_match(match) |
| match[-1] | rb_reg_match_last(match) |
| rb_reg_nth_defined(int nth, match) |