Bug #10476 ยป bug-10476.patch
string.c | ||
---|---|---|
* change was made. See also <code>String#rstrip!</code> and
|
||
* <code>String#strip!</code>.
|
||
*
|
||
* Refer to <code>strip</code> for the definition of whitespace.
|
||
*
|
||
* " hello ".lstrip #=> "hello "
|
||
* "hello".lstrip! #=> nil
|
||
*/
|
||
... | ... | |
* Returns a copy of <i>str</i> with leading whitespace removed. See also
|
||
* <code>String#rstrip</code> and <code>String#strip</code>.
|
||
*
|
||
* Refer to <code>strip</code> for the definition of whitespace.
|
||
*
|
||
* " hello ".lstrip #=> "hello "
|
||
* "hello".lstrip #=> "hello"
|
||
*/
|
||
... | ... | |
* Returns a copy of <i>str</i> with trailing whitespace removed. See also
|
||
* <code>String#lstrip</code> and <code>String#strip</code>.
|
||
*
|
||
* Refer to <code>strip</code> for the definition of whitespace.
|
||
*
|
||
* " hello ".rstrip #=> " hello"
|
||
* "hello".rstrip #=> "hello"
|
||
*/
|
||
... | ... | |
*
|
||
* Removes leading and trailing whitespace from <i>str</i>. Returns
|
||
* <code>nil</code> if <i>str</i> was not altered.
|
||
*
|
||
* Refer to <code>strip</code> for the definition of whitespace.
|
||
*/
|
||
static VALUE
|
||
... | ... | |
* str.strip -> new_str
|
||
*
|
||
* Returns a copy of <i>str</i> with leading and trailing whitespace removed.
|
||
*
|
||
* Whitespace is defined as any of the following characters:
|
||
* null, horizontal tab, line feed, vertical tab, form feed, carriage return, space.
|
||
*
|
||
* " hello ".strip #=> "hello"
|
||
* "\tgoodbye\r\n".strip #=> "goodbye"
|
||
* "\x00\t\n\v\f\r ".strip #=> ""
|
||
*/
|
||
static VALUE
|