diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-29 07:57:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-29 07:57:48 +0000 |
commit | 256c88861beb452d790d74c7677a7e4217bc170b (patch) | |
tree | 8b992570061fc56456a48a6a8208e2f42414ea8f /gc.h | |
parent | 0d82c354c205ffcb9749141b36027f6ed9e5333d (diff) | |
download | ruby-256c88861beb452d790d74c7677a7e4217bc170b.tar.gz |
strscan.c: add MatchData-like methods
* ext/strscan/strscan.c: added `size`, `captures` and `values_at`
to StringScanner, shorthands of accessing the matched data.
based on the patch by apeiros (Stefan Rusterholz) at
[ruby-core:20412]. [Feature #836]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.h')
0 files changed, 0 insertions, 0 deletions