downcase()
public
Returns a copy of str with all uppercase letters replaced with
their lowercase counterparts. The operation is locale insensitive—only
characters “A” to “Z” are affected.
"hEllO".downcase
Show source
/*
* call-seq:
* str.downcase => new_str
*
* Returns a copy of <i>str</i> with all uppercase letters replaced with their
* lowercase counterparts. The operation is locale insensitive---only
* characters ``A'' to ``Z'' are affected.
*
* "hEllO".downcase
*/
static VALUE
rb_str_downcase(str)
VALUE str;
{
str = rb_str_dup(str);
rb_str_downcase_bang(str);
return str;
}