⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.116
Server IP:
78.40.11.138
Server:
Linux tango.o2switch.net 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
alt
/
ruby31
/
share
/
ri
/
system
/
View File Name :
page-case_mapping_rdoc.ri
U:RDoc::TopLevel[ i I"case_mapping.rdoc:ETcRDoc::Parser::Simpleo:RDoc::Markup::Document:@parts[,S:RDoc::Markup::Heading: leveli: textI"Case Mapping;To:RDoc::Markup::BlankLine o:RDoc::Markup::Paragraph;[I"3Some string-oriented methods use case mapping.;T@ o; ;[I"In String:;T@ o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0;[o; ;[I"String#capitalize;To;;0;[o; ;[I"String#capitalize!;To;;0;[o; ;[I"String#casecmp;To;;0;[o; ;[I"String#casecmp?;To;;0;[o; ;[I"String#downcase;To;;0;[o; ;[I"String#downcase!;To;;0;[o; ;[I"String#swapcase;To;;0;[o; ;[I"String#swapcase!;To;;0;[o; ;[I"String#upcase;To;;0;[o; ;[I"String#upcase!;T@ o; ;[I"In Symbol:;T@ o;;;;[o;;0;[o; ;[I"Symbol#capitalize;To;;0;[o; ;[I"Symbol#casecmp;To;;0;[o; ;[I"Symbol#casecmp?;To;;0;[o; ;[I"Symbol#downcase;To;;0;[o; ;[I"Symbol#swapcase;To;;0;[o; ;[I"Symbol#upcase;T@ S; ; i;I"Default Case Mapping;T@ o; ;[I"EBy default, all of these methods use full Unicode case mapping, ;TI"+which is suitable for most languages. ;TI"ISee {Unicode Latin Case Chart}[https://www.unicode.org/charts/case].;T@ o; ;[I"ANon-ASCII case mapping and folding are supported for UTF-8, ;TI"AUTF-16BE/LE, UTF-32BE/LE, and ISO-8859-1~16 Strings/Symbols.;T@ o; ;[I"4Context-dependent case mapping as described in ;TI"c{Table 3-17 of the Unicode standard}[https://www.unicode.org/versions/Unicode13.0.0/ch03.pdf] ;TI" is currently not supported.;T@ o; ;[I"UIn most cases, case conversions of a string have the same number of characters. ;TI"3There are exceptions (see also +:fold+ below):;T@ o:RDoc::Markup::Verbatim;[ I"s = "\u00DF" # => "ß" ;TI"s.upcase # => "SS" ;TI"s = "\u0149" # => "ʼn" ;TI"s.upcase # => "ʼN" ;T:@format0o; ;[I"GCase mapping may also depend on locale (see also +:turkic+ below):;T@ o;;[I""s = "\u0049" # => "I" ;TI"/s.downcase # => "i" # Dot above. ;TI"3s.downcase(:turkic) # => "ı" # No dot above. ;T;0o; ;[I"(Case changes may not be reversible:;T@ o;;[I",s = 'Hello World!' # => "Hello World!" ;TI",s.downcase # => "hello world!" ;TI"Is.downcase.upcase # => "HELLO WORLD!" # Different from original s. ;T;0o; ;[I"CCase changing methods may not maintain Unicode normalization. ;TI"#See String#unicode_normalize).;T@ S; ; i;I"Options for Case Mapping;T@ o; ;[I"*Except for +casecmp+ and +casecmp?+, ;TI"3each of the case-mapping methods listed above ;TI"3accepts optional arguments, <tt>*options</tt>.;T@ o; ;[I"The arguments may be:;T@ o;;;;[o;;0;[o; ;[I"+:ascii+ only.;To;;0;[o; ;[I"+:fold+ only.;To;;0;[o; ;[I"(+:turkic+ or +:lithuanian+ or both.;T@ o; ;[I"The options:;T@ o;;;;[ o;;0;[o; ;[ I"+:ascii+: ;TI"ASCII-only mapping: ;TI"Muppercase letters ('A'..'Z') are mapped to lowercase letters ('a'..'z); ;TI"%other characters are not changed;T@ o;;[ I"6s = "Foo \u00D8 \u00F8 Bar" # => "Foo Ø ø Bar" ;TI"6s.upcase # => "FOO Ø Ø BAR" ;TI"6s.downcase # => "foo ø ø bar" ;TI"6s.upcase(:ascii) # => "FOO Ø ø BAR" ;TI"6s.downcase(:ascii) # => "foo Ø ø bar" ;T;0o;;0;[o; ;[I"+:turkic+: ;TI"AFull Unicode case mapping, adapted for the Turkic languages ;TI"Jthat distinguish dotted and dotless I, for example Turkish and Azeri.;T@ o;;[I"*s = 'Türkiye' # => "Türkiye" ;TI")s.upcase # => "TÜRKIYE" ;TI"7s.upcase(:turkic) # => "TÜRKİYE" # Dot above. ;TI" ;TI"*s = 'TÜRKIYE' # => "TÜRKIYE" ;TI")s.downcase # => "türkiye" ;TI":s.downcase(:turkic) # => "türkıye" # No dot above. ;T;0o;;0;[o; ;[I"+:lithuanian+: ;TI"Not yet implemented.;T@ o;;0;[o; ;[ I"D+:fold+ (available only for String#downcase, String#downcase!, ;TI"and Symbol#downcase): ;TI"Unicode case folding, ;TI":which is more far-reaching than Unicode case mapping.;T@ o;;[I"!s = "\u00DF" # => "ß" ;TI"!s.downcase # => "ß" ;TI"!s.downcase(:fold) # => "ss" ;TI"!s.upcase # => "SS" ;TI" ;TI""s = "\uFB04" # => "ffl" ;TI""s.downcase # => "ffl" ;TI""s.upcase # => "FFL" ;TI"!s.downcase(:fold) # => "ffl";T;0: @file@:0@omit_headings_from_table_of_contents_below0