FireDAC.Stan.Util.FDCompareWideStr
Delphi
function FDCompareWideStr(const AStr1, AStr2: PWideChar; ALen1, ALen2: Integer;
ALocale: TFDLocalID; AOptions: TFDCompareDataOptions): Integer;
C++
extern DELPHI_PACKAGE int __fastcall FDCompareWideStr(const System::WideChar * AStr1, const System::WideChar * 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
FDCompareWideStr compares the values of AStr1 and AStr2 parameters.
Use FDCompareWideStr to compare two PWideChar objects. The return value is indicated in the following table.
| 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.