Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
b25fd05e
Commit
b25fd05e
authored
Jun 18, 2014
by
Yukihiro "Matz" Matsumoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'suzukaze-delete-string.slice_comment'
parents
42f5b741
8459b398
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
src/string.c
src/string.c
+1
-10
No files found.
src/string.c
View file @
b25fd05e
...
@@ -814,8 +814,6 @@ num_index:
...
@@ -814,8 +814,6 @@ num_index:
* str.slice(fixnum) => fixnum or nil
* str.slice(fixnum) => fixnum or nil
* str.slice(fixnum, fixnum) => new_str or nil
* str.slice(fixnum, fixnum) => new_str or nil
* str.slice(range) => new_str or nil
* str.slice(range) => new_str or nil
* str.slice(regexp) => new_str or nil
* str.slice(regexp, fixnum) => new_str or nil
* str.slice(other_str) => new_str or nil
* str.slice(other_str) => new_str or nil
*
*
* Element Reference---If passed a single <code>Fixnum</code>, returns the code
* Element Reference---If passed a single <code>Fixnum</code>, returns the code
...
@@ -827,10 +825,7 @@ num_index:
...
@@ -827,10 +825,7 @@ num_index:
* <code>nil</code> if the initial offset falls outside the string, the length
* <code>nil</code> if the initial offset falls outside the string, the length
* is negative, or the beginning of the range is greater than the end.
* is negative, or the beginning of the range is greater than the end.
*
*
* If a <code>Regexp</code> is supplied, the matching portion of <i>str</i> is
* If a <code>String</code> is given, that string is returned if it occurs in
* returned. If a numeric parameter follows the regular expression, that
* component of the <code>MatchData</code> is returned instead. If a
* <code>String</code> is given, that string is returned if it occurs in
* <i>str</i>. In both cases, <code>nil</code> is returned if there is no
* <i>str</i>. In both cases, <code>nil</code> is returned if there is no
* match.
* match.
*
*
...
@@ -842,10 +837,6 @@ num_index:
...
@@ -842,10 +837,6 @@ num_index:
* a[-4..-2] #=> "her"
* a[-4..-2] #=> "her"
* a[12..-1] #=> nil
* a[12..-1] #=> nil
* a[-2..-4] #=> ""
* a[-2..-4] #=> ""
* a[/[aeiou](.)\1/] #=> "ell"
* a[/[aeiou](.)\1/, 0] #=> "ell"
* a[/[aeiou](.)\1/, 1] #=> "l"
* a[/[aeiou](.)\1/, 2] #=> nil
* a["lo"] #=> "lo"
* a["lo"] #=> "lo"
* a["bye"] #=> nil
* a["bye"] #=> nil
*/
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment