1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* string.c: Improve documentation for String#start_with? and

String#end_with?. fixes #4652
  patched by Andrew Grimm <andrew.j.grimm at gmail.com>

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-05-09 09:35:27 +00:00
parent ca927d60f4
commit 140e1f0b15
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,9 @@
Mon May 9 18:33:05 2011 NARUSE, Yui <naruse@ruby-lang.org>
* string.c: Improve documentation for String#start_with? and
String#end_with?. fixes #4652
patched by Andrew Grimm <andrew.j.grimm at gmail.com>
Mon May 9 13:49:00 2011 Kenta Murata <mrkn@mrkn.jp> Mon May 9 13:49:00 2011 Kenta Murata <mrkn@mrkn.jp>
* complex.c (string_to_c_internal): support scientific notation. * complex.c (string_to_c_internal): support scientific notation.

View file

@ -7139,13 +7139,13 @@ rb_str_rpartition(VALUE str, VALUE sep)
* call-seq: * call-seq:
* str.start_with?([prefix]+) -> true or false * str.start_with?([prefix]+) -> true or false
* *
* Returns true if <i>str</i> starts with a prefix given. * Returns true if <i>str</i> starts with one of the prefixes given.
* *
* p "hello".start_with?("hell") #=> true * p "hello".start_with?("hell") #=> true
* *
* # returns true if one of prefix matches. * # returns true if one of the prefixes matches.
* p "hello".start_with?("heaven", "hell") #=> true * p "hello".start_with?("heaven", "hell") #=> true
* p "hello".start_with?("heaven", "paradice") #=> false * p "hello".start_with?("heaven", "paradise") #=> false
* *
* *
* *
@ -7171,7 +7171,7 @@ rb_str_start_with(int argc, VALUE *argv, VALUE str)
* call-seq: * call-seq:
* str.end_with?([suffix]+) -> true or false * str.end_with?([suffix]+) -> true or false
* *
* Returns true if <i>str</i> ends with a suffix given. * Returns true if <i>str</i> ends with one of the suffixes given.
*/ */
static VALUE static VALUE