diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | re.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -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] @@ -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)); |