зеркало из https://github.com/github/ruby.git
* re.c (rb_reg_initialize_m): Forgot to update output for or'd-options
example. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
edd67a6844
Коммит
6ac1d39ace
|
@ -1,3 +1,8 @@
|
|||
Tue Aug 21 05:25:41 2012 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* re.c (rb_reg_initialize_m): Forgot to update output for or'd-options
|
||||
example.
|
||||
|
||||
Tue Aug 21 05:18:03 2012 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* re.c (rb_reg_initialize_m): Update example to show that regexp
|
||||
|
|
8
re.c
8
re.c
|
@ -2888,10 +2888,10 @@ rb_reg_match_m(int argc, VALUE *argv, VALUE re)
|
|||
*
|
||||
* When the +lang+ parameter is `n' or `N' sets the regexp no encoding.
|
||||
*
|
||||
* r1 = Regexp.new('^a-z+:\\s+\w+') #=> /^a-z+:\s+\w+/
|
||||
* r2 = Regexp.new('cat', true) #=> /cat/i
|
||||
* r3 = Regexp.new(r2) #=> /cat/i
|
||||
* r4 = Regexp.new('dog', Regexp::EXTENDED | Regexp::IGNORECASE) #=> /dog/x
|
||||
* r1 = Regexp.new('^a-z+:\\s+\w+') #=> /^a-z+:\s+\w+/
|
||||
* r2 = Regexp.new('cat', true) #=> /cat/i
|
||||
* r3 = Regexp.new(r2) #=> /cat/i
|
||||
* r4 = Regexp.new('dog', Regexp::EXTENDED | Regexp::IGNORECASE) #=> /dog/ix
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
|
|
Загрузка…
Ссылка в новой задаче