[前][次][番号順一覧][スレッド一覧]

ruby-changes:41710

From: zzak <ko1@a...>
Date: Tue, 9 Feb 2016 13:54:30 +0900 (JST)
Subject: [ruby-changes:41710] zzak:r53784 (trunk): * re.c: Remove deprecated kcode argument from Regexp.new and compile

zzak	2016-02-09 13:54:39 +0900 (Tue, 09 Feb 2016)

  New Revision: 53784

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

  Log:
    * re.c: Remove deprecated kcode argument from Regexp.new and compile
      patch provided by Dylan Pulliam [Bug #11495]

  Modified files:
    trunk/ChangeLog
    trunk/re.c
Index: re.c
===================================================================
--- re.c	(revision 53783)
+++ re.c	(revision 53784)
@@ -3058,10 +3058,10 @@ rb_reg_match_m(int argc, VALUE *argv, VA https://github.com/ruby/ruby/blob/trunk/re.c#L3058
 
 /*
  *  call-seq:
- *     Regexp.new(string, [options [, kcode]])       -> regexp
- *     Regexp.new(regexp)                            -> regexp
- *     Regexp.compile(string, [options [, kcode]])   -> regexp
- *     Regexp.compile(regexp)                        -> regexp
+ *     Regexp.new(string, [options])       -> regexp
+ *     Regexp.new(regexp)                  -> regexp
+ *     Regexp.compile(string, [options)    -> regexp
+ *     Regexp.compile(regexp)              -> regexp
  *
  *  Constructs a new regular expression from +pattern+, which can be either a
  *  String or a Regexp (in which case that regexp's options are propagated),
@@ -3072,9 +3072,6 @@ rb_reg_match_m(int argc, VALUE *argv, VA https://github.com/ruby/ruby/blob/trunk/re.c#L3072
  *  <em>or</em>-ed together.  Otherwise, if +options+ is not
  *  +nil+ or +false+, the regexp will be case insensitive.
  *
- *  When the +kcode+ parameter is `n' or `N' sets the regexp no encoding.
- *  It means that the regexp is for binary strings.
- *
  *    r1 = Regexp.new('^a-z+:\\s+\w+') #=> /^a-z+:\s+\w+/
  *    r2 = Regexp.new('cat', true)     #=> /cat/i
  *    r3 = Regexp.new(r2)              #=> /cat/i
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 53783)
+++ ChangeLog	(revision 53784)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Feb  9 13:52:49 2016  Zachary Scott  <zzak@r...>
+
+	* re.c: Remove deprecated kcode argument from Regexp.new and compile
+	  patch provided by Dylan Pulliam [Bug #11495]
+
 Mon Feb  8 21:26:19 2016  Martin Duerst  <duerst@i...>
 
 	* enc/unicode/case-folding.rb, enc/unicode/casefold.h: Flags for

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]