[ruby-cvs:62048] naruse:r54886 (trunk): * re.c (str_coderange): to avoid function call when the string already

naruse at ruby-lang.org naruse at ruby-lang.org
Mon May 2 21:04:05 JST 2016


naruse	2016-05-02 21:04:04 +0900 (Mon, 02 May 2016)

  New Revision: 54886

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

  Log:
    * re.c (str_coderange): to avoid function call when the string already
      has coderange information.
    
    * re.c (rb_reg_prepare_enc): add shortcut path when the regexp has
      the same encoding of given string.
    
    * re.c (rb_reg_prepare_re): avoid duplicated allocation of
      onig_errmsg_buffer.

  Modified files:
    trunk/ChangeLog
    trunk/re.c


More information about the ruby-cvs mailing list