System.Generics.Defaults.TOrdinalIStringComparer.Compare
Delphi
function Compare(const Left, Right: string): Integer; override;
C++
virtual int __fastcall Compare(const System::UnicodeString Left, const System::UnicodeString Right);
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
| function | public | System.Generics.Defaults.pas System.Generics.Defaults.hpp | System.Generics.Defaults | TOrdinalIStringComparer | 
Description
Performs an ASCII case-insensitive comparison between two strings. It returns an integer which depends on how the specified strings compare:
| Return value | Description | 
|---|---|
| Result is less than zero (<0) | Left goes before Right. | 
| Result is equal to zero (=0) | Both strings are equal, order-wise (compared case-insensitively). | 
| Result is greater than zero (>0) | Left goes after Right. |