[前][次][番号順一覧][スレッド一覧][生データ]

ruby-cvs:22147

From: akr ruby-lang.org
Date: Sun, 6 Jan 2008 18:25:10 +0900 (JST)
Subject: [ruby-cvs:22147] Ruby:r14910 (trunk): * include/ruby/encoding.h (rb_enc_str_buf_cat): declared.

akr	2008-01-06 18:25:09 +0900 (Sun, 06 Jan 2008)

  New Revision: 14910

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/encoding.h
    trunk/re.c
    trunk/string.c
    trunk/test/ruby/test_m17n_comb.rb

  Log:
    * include/ruby/encoding.h (rb_enc_str_buf_cat): declared.
    
    * string.c (coderange_scan): extracted from rb_enc_str_coderange.
      (rb_enc_str_coderange): use coderange_scan.
      (rb_str_shared_replace): copy encoding and coderange.
      (rb_enc_str_buf_cat): new function for linear complexity string
      accumulation with encoding.
      (rb_str_sub_bang): don't conflict substituted part and replacement.
      (str_gsub): use rb_enc_str_buf_cat.
      (rb_str_clear): clear coderange.
    
    * re.c (rb_reg_regsub): use rb_enc_str_buf_cat.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_m17n_comb.rb?r1=14910&r2=14909&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/string.c?r1=14910&r2=14909&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14910&r2=14909&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/encoding.h?r1=14910&r2=14909&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/re.c?r1=14910&r2=14909&diff_format=u


[前][次][番号順一覧][スレッド一覧][生データ]