ruby/doc/string/downcase.rdoc
2025-07-15 16:31:58 -04:00

12 lines
504 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Returns a new string containing the downcased characters in +self+:
'Hello, World!'.downcase # => "hello, world!"
'ТЕСТ'.downcase # => "тест"
'よろしくお願いします'.downcase # => "よろしくお願いします"
Some characters do not have upcased and downcased versions.
The casing may be affected by the given +mapping+;
see {Case Mapping}[rdoc-ref:case_mapping.rdoc].
Related: see {Converting to New String}[rdoc-ref:String@Converting+to+New+String].