* re.c (Init_Regexp): new method Regexp#fixed_encoding?

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2007-11-26 08:33:11 +00:00
parent e6140f3e3c
commit cbd72b86da
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Mon Nov 26 17:32:16 2007 Tanaka Akira <akr@fsij.org>
* re.c (Init_Regexp): new method Regexp#fixed_encoding?
Mon Nov 26 13:28:14 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
* lib/complex.rb: be able to create Complex(0, -0.0). [ruby-list:44268]

1
re.c
View File

@ -2198,6 +2198,7 @@ Init_Regexp(void)
rb_define_method(rb_cRegexp, "casefold?", rb_reg_casefold_p, 0);
rb_define_method(rb_cRegexp, "options", rb_reg_options_m, 0);
rb_define_method(rb_cRegexp, "encoding", rb_obj_encoding, 0); /* in encoding.c */
rb_define_method(rb_cRegexp, "fixed_encoding?", rb_reg_fixed_encoding_p, 0);
rb_define_const(rb_cRegexp, "IGNORECASE", INT2FIX(ONIG_OPTION_IGNORECASE));
rb_define_const(rb_cRegexp, "EXTENDED", INT2FIX(ONIG_OPTION_EXTEND));