summaryrefslogtreecommitdiffstats
path: root/include/ruby
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-14 18:04:21 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-14 18:04:21 +0000
commitf17af09b264975fea3ce03210f740c17c96b62db (patch)
tree840798354a8f3ec79e6a0de7c0b7b652594d8f0b /include/ruby
parent09f1595ef92b79289a66b8459875f747fb99b77c (diff)
downloadruby-f17af09b264975fea3ce03210f740c17c96b62db.tar.gz
ruby-f17af09b264975fea3ce03210f740c17c96b62db.tar.xz
ruby-f17af09b264975fea3ce03210f740c17c96b62db.zip
* string.c (rb_str_subpat): accept capture name.
(rb_str_aref): follow above change. (rb_str_aref_m): pass the 2nd argument to rb_str_subpat. (rb_str_subpat_set): accept capture name. (rb_str_aset): follow above change. (rb_str_partition): ditto. (rb_str_aset_m): pass the 2nd argument to rb_str_subpat_set. * include/ruby/intern.h (rb_reg_backref_number): declared. * re.c (rb_reg_backref_number): defined. [ruby-core:21057] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/intern.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index 1a034508e..ddb1b0322 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -518,6 +518,7 @@ int rb_memcicmp(const void*,const void*,long);
void rb_match_busy(VALUE);
VALUE rb_reg_nth_defined(int, VALUE);
VALUE rb_reg_nth_match(int, VALUE);
+int rb_reg_backref_number(VALUE match, VALUE backref);
VALUE rb_reg_last_match(VALUE);
VALUE rb_reg_match_pre(VALUE);
VALUE rb_reg_match_post(VALUE);