FireDAC.Stan.Util.FDCompareAnsiStr
Delphi
function FDCompareAnsiStr(const AStr1, AStr2: PFDAnsiString; ALen1, ALen2: Integer;
ALocale: TFDLocalID; AOptions: TFDCompareDataOptions): Integer;
C++
extern DELPHI_PACKAGE int __fastcall FDCompareAnsiStr(const Firedac::Stan::Intf::PFDAnsiString AStr1, const Firedac::Stan::Intf::PFDAnsiString AStr2, int ALen1, int ALen2, Firedac::Stan::Intf::TFDLocalID ALocale, Firedac::Stan::Intf::TFDCompareDataOptions AOptions);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | FireDAC.Stan.Util.pas FireDAC.Stan.Util.hpp |
FireDAC.Stan.Util | FireDAC.Stan.Util |
Description
FDCompareAnsiStr compares the values of AStr1 and AStr2 parameters.
Use FDCompareAnsiStr to compare two TFDByteString objects. The return value is indicated in the table below.
| Return value | Condition |
|---|---|
|
<0 |
|
|
=0 |
|
|
>0 |
|
The compare operation can be customized by giving proper values to its parameters (ANoCase - case-sensitivity, APartial - partial comparison, ANoSymbols - symbols and spaces). The ALen1 and ALen2 parameters represent the length of AStr1 and AStr2.