[ruby-cvs:68110] nobu:r60929 (trunk): strscan.c: add MatchData-like methods

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Nov 29 16:57:48 JST 2017


nobu	2017-11-29 16:57:48 +0900 (Wed, 29 Nov 2017)

  New Revision: 60929

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60929

  Log:
    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]

  Modified files:
    trunk/NEWS
    trunk/ext/strscan/strscan.c
    trunk/test/strscan/test_stringscanner.rb


More information about the ruby-cvs mailing list