StringCaseInsensitiveComparer: IComparer;
The StringCaseInsensitiveComparer property returns an object to compare elements of string type. Comparison is executed taking into account the length and without taking into account the case of element contents.
Sub Main;
Var
Com: IComparer;
i, i1, i2, i3: Integer;
Begin
Com:=Comparer.StringCaseInsensitiveComparer;
i:=Com.Compare("a", "A");
i1:=Com.Compare("aa", "A");
i2:=Com.Compare("a", "AA");
i3:=Com.Compare("aA", "Aa");
End Sub Main;
After executing the example the "i, i1, i2, i3" variables contain "0, 1, -1, 0" respectively.
See also: