ruby-cvs:22548
From: akr ruby-lang.org
Date: Tue, 29 Jan 2008 17:03:52 +0900 (JST)
Subject: [ruby-cvs:22548] Ruby:r15311 (trunk): * insns.def (toregexp): generate a regexp from strings instead of one
akr 2008-01-29 17:03:51 +0900 (Tue, 29 Jan 2008)
New Revision: 15311
Modified files:
trunk/ChangeLog
trunk/compile.c
trunk/insns.def
trunk/re.c
trunk/test/ruby/test_m17n.rb
Log:
* insns.def (toregexp): generate a regexp from strings instead of one
string.
* re.c (rb_reg_new_ary): defined for toregexp. it concatenates
strings after each string is preprocessed.
* compile.c (compile_dstr_fragments): split from compile_dstr.
(compile_dstr): call compile_dstr_fragments.
(compile_dregx): defined for dynamic regexp.
(iseq_compile_each): use compile_dregx for dynamic regexp.
[ruby-dev:33400]
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/compile.c?r1=15311&r2=15310&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15311&r2=15310&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/re.c?r1=15311&r2=15310&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/insns.def?r1=15311&r2=15310&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_m17n.rb?r1=15311&r2=15310&diff_format=u