ruby-cvs:22009
From: akr ruby-lang.org
Date: Fri, 28 Dec 2007 23:55:44 +0900 (JST)
Subject: [ruby-cvs:22009] Ruby:r14772 (trunk): * ext/strscan/strscan.c (str_new): new function for allocate an string
akr 2007-12-28 23:55:43 +0900 (Fri, 28 Dec 2007)
New Revision: 14772
Modified files:
trunk/ChangeLog
trunk/ext/strscan/strscan.c
trunk/include/ruby/encoding.h
trunk/test/strscan/test_stringscanner.rb
Log:
* ext/strscan/strscan.c (str_new): new function for allocate an string
with encoding propagation.
(extract_range): use str_new.
(extract_beg_len): ditto.
(strscan_peek): ditto.
(strscan_rest): ditto.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14772&r2=14771
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/encoding.h?r1=14772&r2=14771
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/strscan/test_stringscanner.rb?r1=14772&r2=14771
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ext/strscan/strscan.c?r1=14772&r2=14771