📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 07:23:20
📂
/ (Root)
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
String
📍 /opt/alt/ruby27/share/ri/system/String
🔄 Refresh
✏️
Editing: casecmp-i.ri
Read Only
U:RDoc::AnyMethod[iI"casecmp:ETI"String#casecmp;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"-Case-insensitive version of String#<=>. ;TI"ECurrently, case-insensitivity only works on characters A-Z/a-z, ;TI"@not all of Unicode. This is different from String#casecmp?.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I")"aBcDeF".casecmp("abcde") #=> 1 ;TI")"aBcDeF".casecmp("abcdef") #=> 0 ;TI"*"aBcDeF".casecmp("abcdefg") #=> -1 ;TI")"abcdef".casecmp("ABCDEF") #=> 0 ;T:@format0o; ; [I"G+nil+ is returned if the two strings have incompatible encodings, ;TI"'or if +other_str+ is not a string.;T@o;; [I" "foo".casecmp(2) #=> nil ;TI"J"\u{e4 f6 fc}".encode("ISO-8859-1").casecmp("\u{c4 d6 dc}") #=> nil;T; 0: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I"3str.casecmp(other_str) -> -1, 0, +1, or nil ;T0[ I" (p1);T@FI"String;TcRDoc::NormalClass00
💾 Save Changes
❌ Cancel