Bug #4652 ยป string_start_with_improve.diff
string.c | ||
---|---|---|
* call-seq:
|
||
* 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
|
||
*
|
||
* # 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", "paradice") #=> false
|
||
* p "hello".start_with?("heaven", "paradise") #=> false
|
||
*
|
||
*
|
||
*
|
||
... | ... | |
* call-seq:
|
||
* 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
|