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