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

ruby-cvs:21250

From: akr ruby-lang.org
Date: Sun, 25 Nov 2007 22:25:35 +0900 (JST)
Subject: [ruby-cvs:21250] Ruby:r14013 (trunk): * include/ruby/encoding.h (rb_enc_str_asciionly_p): declared.

akr	2007-11-25 22:25:34 +0900 (Sun, 25 Nov 2007)

  New Revision: 14013

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

  Log:
    * include/ruby/encoding.h (rb_enc_str_asciionly_p): declared.
      (rb_enc_str_asciicompat_p): defined.
    
    * re.c (rb_reg_initialize_str): use rb_enc_str_asciionly_p.
      (rb_reg_quote): return ascii-8bit string if the argument is
      ascii-only to generate encoding generic regexp if possible.
      (rb_reg_s_union): fix encoding handling.  [ruby-dev:32094]
    
    * string.c (rb_enc_str_asciionly_p): defined.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/string.c?r1=14013&r2=14012
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14013&r2=14012
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/encoding.h?r1=14013&r2=14012
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/re.c?r1=14013&r2=14012
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_m17n.rb?r1=14013&r2=14012


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