mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* re.c: Remove deprecated kcode argument from Regexp.new and compile
patch provided by Dylan Pulliam [Bug #11495] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
650c05ae40
commit
d901058900
2 changed files with 9 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Feb 9 13:52:49 2016 Zachary Scott <zzak@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@it.aoyama.ac.jp>
|
Mon Feb 8 21:26:19 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||||
|
|
||||||
* enc/unicode/case-folding.rb, enc/unicode/casefold.h: Flags for
|
* enc/unicode/case-folding.rb, enc/unicode/casefold.h: Flags for
|
||||||
|
|
7
re.c
7
re.c
|
@ -3058,9 +3058,9 @@ rb_reg_match_m(int argc, VALUE *argv, VALUE re)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* call-seq:
|
||||||
* Regexp.new(string, [options [, kcode]]) -> regexp
|
* Regexp.new(string, [options]) -> regexp
|
||||||
* Regexp.new(regexp) -> regexp
|
* Regexp.new(regexp) -> regexp
|
||||||
* Regexp.compile(string, [options [, kcode]]) -> regexp
|
* Regexp.compile(string, [options) -> regexp
|
||||||
* Regexp.compile(regexp) -> regexp
|
* Regexp.compile(regexp) -> regexp
|
||||||
*
|
*
|
||||||
* Constructs a new regular expression from +pattern+, which can be either a
|
* Constructs a new regular expression from +pattern+, which can be either a
|
||||||
|
@ -3072,9 +3072,6 @@ rb_reg_match_m(int argc, VALUE *argv, VALUE re)
|
||||||
* <em>or</em>-ed together. Otherwise, if +options+ is not
|
* <em>or</em>-ed together. Otherwise, if +options+ is not
|
||||||
* +nil+ or +false+, the regexp will be case insensitive.
|
* +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+/
|
* r1 = Regexp.new('^a-z+:\\s+\w+') #=> /^a-z+:\s+\w+/
|
||||||
* r2 = Regexp.new('cat', true) #=> /cat/i
|
* r2 = Regexp.new('cat', true) #=> /cat/i
|
||||||
* r3 = Regexp.new(r2) #=> /cat/i
|
* r3 = Regexp.new(r2) #=> /cat/i
|
||||||
|
|
Loading…
Reference in a new issue