diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-12 02:56:12 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-12-12 02:56:12 +0000 |
commit | 2a425a78156585ab584cbc145b64eab44f0d0787 (patch) | |
tree | 85a4ba28f3d0b584438569244f45d12dedec138e /internal.h | |
parent | 2565d1fedc8c81fec29e9da0cfb5ef5ca6855ad8 (diff) | |
download | ruby-2a425a78156585ab584cbc145b64eab44f0d0787.tar.gz |
String#match? and Symbol#match?
* string.c (rb_str_match_m_p): inverse of Regexp#match?. based on
the patch by Herwin Weststrate <herwin@snt.utwente.nl>.
[Fix GH-1483] [Feature #12898]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 71ded35948..7aefcda8e8 100644 --- a/internal.h +++ b/internal.h @@ -1394,6 +1394,7 @@ VALUE rb_rational_cmp(VALUE self, VALUE other); VALUE rb_reg_compile(VALUE str, int options, const char *sourcefile, int sourceline); VALUE rb_reg_check_preprocess(VALUE); long rb_reg_search0(VALUE, VALUE, long, int, int); +VALUE rb_reg_match_p(VALUE re, VALUE str, long pos); void rb_backref_set_string(VALUE string, long pos, long len); int rb_match_count(VALUE match); int rb_match_nth_defined(int nth, VALUE match); |