mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
[DOC] Tweaks for String#downcase
This commit is contained in:
parent
b2ef33b3c5
commit
3cf32e9364
2 changed files with 13 additions and 9 deletions
12
doc/string/downcase.rdoc
Normal file
12
doc/string/downcase.rdoc
Normal file
|
@ -0,0 +1,12 @@
|
|||
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].
|
10
string.c
10
string.c
|
@ -8181,15 +8181,7 @@ rb_str_downcase_bang(int argc, VALUE *argv, VALUE str)
|
|||
* call-seq:
|
||||
* downcase(mapping) -> string
|
||||
*
|
||||
* Returns a string containing the downcased characters in +self+:
|
||||
*
|
||||
* s = 'Hello World!' # => "Hello World!"
|
||||
* s.downcase # => "hello world!"
|
||||
*
|
||||
* The casing may be affected by the given +mapping+;
|
||||
* see {Case Mapping}[rdoc-ref:case_mapping.rdoc].
|
||||
*
|
||||
* Related: String#downcase!, String#upcase, String#upcase!.
|
||||
* :include: doc/string/downcase.rdoc
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue