mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Describe String#split grouping behavior. Patch by Jan Svitok [ruby-core:08603].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4bc2a9860c
commit
8b827f1a7d
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Aug 12 22:33:06 2006 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* string.c (String#split): Describe grouping behavior. Patch by Jan
|
||||
Svitok <jan.svitok at gmail.com>. [ruby-core:08603]
|
||||
|
||||
Sun Aug 13 12:08:02 2006 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/socket.c: ANSIfied. [ruby-core:08601]
|
||||
|
|
3
string.c
3
string.c
|
@ -3256,7 +3256,8 @@ rb_str_count(int argc, VALUE *argv, VALUE str)
|
|||
*
|
||||
* If <i>pattern</i> is a <code>Regexp</code>, <i>str</i> is divided where the
|
||||
* pattern matches. Whenever the pattern matches a zero-length string,
|
||||
* <i>str</i> is split into individual characters.
|
||||
* <i>str</i> is split into individual characters. If <i>pattern</i> contains
|
||||
* groups, the respective matches will be returned in the array as well.
|
||||
*
|
||||
* If <i>pattern</i> is omitted, the value of <code>$;</code> is used. If
|
||||
* <code>$;</code> is <code>nil</code> (which is the default), <i>str</i> is
|
||||
|
|
Loading…
Reference in a new issue