method

casecmp?

Importance_1
v2_4_6 - Show latest stable - 0 notes - Class: String
casecmp?(p1) public

Returns true if str and other_other_str are equal after Unicode case folding, false if they are not equal, and nil if other_str is not a string.

"abcdef".casecmp?("abcde")     #=> false
"aBcDeF".casecmp?("abcdef")    #=> true
"abcdef".casecmp?("abcdefg")   #=> false
"abcdef".casecmp?("ABCDEF")    #=> true
"\u{e4 f6 fc}".casecmp?("\u{c4 d6 dc}") #=> true
Show source
Register or log in to add new notes.