Read Me - Common Public License V1.0 - Copyright Notice(©)

caselessCompareTo


>>-caselessCompareTo(string-+-----------------------+-)----------------------><
                            +-,--+---+--+---------+-+
                                 +-n-+  +-,length-+

Performs a caseless sort comparison of the target string to the [string] argument. If the two strings are equal, 0 is returned. If the target string is larger, 1 is returned. -1 if the [string] argument is the larger string. The comparison is performed starting at character [n] for [length] characters in both strings. [n] must be a positive whole number. If [n] is omitted, the comparison starts at the first character. [length] must be a non-negative whole number. If omitted, the comparison will take place to the end of the target string.

String class - caselessCompareTo method



"abc"~caselessCompareTo("abc")         ->    0
"b"~caselessCompareTo("a")             ->    1
"a"~caselessCompareTo("b")             ->   -1
"abc"~caselessCompareTo("aBc")         ->    0
"aBc"~caselessCompareTo("abc")         ->    0
"000abc000"~caselessCompareTo(111abc111", 4, 3)  -> 0

Read Me - Common Public License V1.0 - Copyright Notice(©)