Method: String#downcase
- Defined in:
- string.c
#downcase ⇒ String
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 #=> "hello"
2837 2838 2839 |
# File 'string.c', line 2837 static VALUE rb_str_downcase(str) VALUE str; |