mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* re.c: corrected documentation format (rb_reg_initialize_m)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
84e968f06c
commit
ac19769719
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Sat Feb 22 09:51:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
|
||||
|
||||
* re.c: corrected documentation format (rb_reg_initialize_m)
|
||||
|
||||
Sat Feb 21 22:41:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
|
||||
|
||||
* ext/zlib/zlib.c: documented, but needs more effort.
|
||||
|
|
4
re.c
4
re.c
|
@ -1621,7 +1621,7 @@ rb_reg_match_m(re, str)
|
|||
* call-seq:
|
||||
* Regexp.new(string [, options [, lang]]) => regexp
|
||||
* Regexp.new(regexp) => regexp
|
||||
* Regexp.compile(string [, options [, lang]]) => regexp
|
||||
* Regexp.compile(string [, options [, lang]]) => regexp
|
||||
* Regexp.compile(regexp) => regexp
|
||||
*
|
||||
* Constructs a new regular expression from <i>pattern</i>, which can be either
|
||||
|
@ -1634,7 +1634,7 @@ rb_reg_match_m(re, str)
|
|||
* <code>nil</code>, the regexp will be case insensitive. The <i>lang</i>
|
||||
* parameter enables multibyte support for the regexp: `n', `N' = none, `e',
|
||||
* `E' = EUC, `s', `S' = SJIS, `u', `U' = UTF-8.
|
||||
*
|
||||
*
|
||||
* r1 = Regexp.new('^a-z+:\\s+\w+') #=> /^a-z+:\s+\w+/
|
||||
* r2 = Regexp.new('cat', true) #=> /cat/i
|
||||
* r3 = Regexp.new('dog', Regexp::EXTENDED) #=> /dog/x
|
||||
|
|
Loading…
Reference in a new issue