summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-20 01:38:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-20 01:38:04 +0000
commit3f075b9ac9063a037456a2828a9478cc323fdb2e (patch)
tree812149ffc2ca8d55635c534f9f51895c1130141d /re.c
parentc1c101e752f483d4956f66fd567ec86d0274899a (diff)
rdoc
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/re.c b/re.c
index 8427535be4..daa179d819 100644
--- a/re.c
+++ b/re.c
@@ -1530,6 +1530,15 @@ rb_reg_match_pos(re, str, pos)
return LONG2FIX(pos);
}
+/*
+ * call-seq:
+ * rxp =~ str => integer or nil
+ *
+ * Match---Matches <i>rxp</i> against <i>str</i>.
+ *
+ * /at/ =~ "input data" #=> 7
+ */
+
VALUE
rb_reg_match(re, str)
VALUE re, str;