Overload List
Overload 1: class function CompareLinguistic(const StrA: string; const IndexA: Integer; const StrB: string; const IndexB, Length: Integer): Integer; overload; static;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | StrA | string | |
| 2 | IndexA | Integer | |
| 3 | StrB | string | |
| 4 | IndexB | Integer | |
| 5 | Length | Integer |
Returns: Integer
Overload 2: class function CompareLinguistic(const StrA: string; const IndexA: Integer; const StrB: string; const IndexB, Length: Integer; const IgnoreCase: Boolean): Integer; overload; static;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | StrA | string | |
| 2 | IndexA | Integer | |
| 3 | StrB | string | |
| 4 | IndexB | Integer | |
| 5 | Length | Integer | |
| 6 | IgnoreCase | Boolean |
Returns: Integer
Overload 3: class function CompareLinguistic(const StrA: string; const IndexA: Integer; const StrB: string; const IndexB, Length: Integer; const IgnoreCase: Boolean; const LocaleID: TLocaleID): Integer; overload; static;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | StrA | string | |
| 2 | IndexA | Integer | |
| 3 | StrB | string | |
| 4 | IndexB | Integer | |
| 5 | Length | Integer | |
| 6 | IgnoreCase | Boolean | |
| 7 | LocaleID | TLocaleID |
Returns: Integer
Overload 4: class function CompareLinguistic(const StrA: string; const IndexA: Integer; const StrB: string; const IndexB, Length: Integer; const Options: TCompareOptions): Integer; overload; static;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | StrA | string | |
| 2 | IndexA | Integer | |
| 3 | StrB | string | |
| 4 | IndexB | Integer | |
| 5 | Length | Integer | |
| 6 | Options | TCompareOptions |
Returns: Integer
Overload 5: class function CompareLinguistic(const StrA: string; const IndexA: Integer; const StrB: string; const IndexB, Length: Integer; const Options: TCompareOptions; const LocaleID: TLocaleID): Integer; overload; static;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | StrA | string | |
| 2 | IndexA | Integer | |
| 3 | StrB | string | |
| 4 | IndexB | Integer | |
| 5 | Length | Integer | |
| 6 | Options | TCompareOptions | |
| 7 | LocaleID | TLocaleID |
Returns: Integer
Overload 6: class function CompareLinguistic(const StrA: string; const IndexA: Integer; const StrB: string; const IndexB, Length: Integer; const LocaleID: TLocaleID): Integer; overload; static;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | StrA | string | |
| 2 | IndexA | Integer | |
| 3 | StrB | string | |
| 4 | IndexB | Integer | |
| 5 | Length | Integer | |
| 6 | LocaleID | TLocaleID |
Returns: Integer
Overload 7: class function CompareLinguistic(const StrA, StrB: string): Integer; overload; static;
Compares StrA with StrB in the sort order of the default locale or of LocaleID, with the options or IgnoreCase given.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | StrA | string | |
| 2 | StrB | string |
Returns: Integer - -1, 0 or 1; an empty text sorts first.
The window forms compare Length characters from IndexA and IndexB (0-based); a window outside its text raises ESubstringRangeError. A failed comparison raises EOSError. Every text kind, both texts of one kind. Note: This routine is 19 to 153 times slower than Compare, and 11 to 65 times slower than CompareAscii with IgnoreCase, due to handling of the locale specific char handling. Use Compare or CompareAscii, if this handling is not needed.
Ignoring case, and the order of two texts.
uses Substr;
procedure Example;
begin
Assert(Substring.CompareLinguistic('abc', 'ABC', True) = 0);
Assert(Substring.CompareLinguistic('a', 'b') = -1);
end;
Overload 8: class function CompareLinguistic(const StrA, StrB: string; const IgnoreCase: Boolean): Integer; overload; static;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | StrA | string | |
| 2 | StrB | string | |
| 3 | IgnoreCase | Boolean |
Returns: Integer
Overload 9: class function CompareLinguistic(const StrA, StrB: string; const IgnoreCase: Boolean; const LocaleID: TLocaleID): Integer; overload; static;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | StrA | string | |
| 2 | StrB | string | |
| 3 | IgnoreCase | Boolean | |
| 4 | LocaleID | TLocaleID |
Returns: Integer
Overload 10: class function CompareLinguistic(const StrA, StrB: string; const Options: TCompareOptions): Integer; overload; static;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | StrA | string | |
| 2 | StrB | string | |
| 3 | Options | TCompareOptions |
Returns: Integer
Overload 11: class function CompareLinguistic(const StrA, StrB: string; const Options: TCompareOptions; const LocaleID: TLocaleID): Integer; overload; static;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | StrA | string | |
| 2 | StrB | string | |
| 3 | Options | TCompareOptions | |
| 4 | LocaleID | TLocaleID |
Returns: Integer
Overload 12: class function CompareLinguistic(const StrA, StrB: string; const LocaleID: TLocaleID): Integer; overload; static;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | StrA | string | |
| 2 | StrB | string | |
| 3 | LocaleID | TLocaleID |
Returns: Integer