From cbd72b86da4f6ed5828c83ec17d9febd8e304bf7 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 26 Nov 2007 08:33:11 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ re.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3a8633d76c..e767e1d1a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Nov 26 17:32:16 2007 Tanaka Akira + + * re.c (Init_Regexp): new method Regexp#fixed_encoding? + Mon Nov 26 13:28:14 2007 Keiju Ishitsuka * lib/complex.rb: be able to create Complex(0, -0.0). [ruby-list:44268] diff --git a/re.c b/re.c index 887adc93a3..0184c18e72 100644 --- a/re.c +++ b/re.c @@ -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));