FireDAC.Stan.Util.FDCompareByteStr
Delphi
function FDCompareByteStr(const AStr1, AStr2: PByte; ALen1, ALen2: Integer): Integer;
C++
extern DELPHI_PACKAGE int __fastcall FDCompareByteStr(const System::PByte AStr1, const System::PByte AStr2, int ALen1, int ALen2);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | FireDAC.Stan.Util.pas FireDAC.Stan.Util.hpp |
FireDAC.Stan.Util | FireDAC.Stan.Util |
Description
FDCompareByteStr compares the values of AStr1 and AStr2 parameters.
Use FDCompareByteStr to compare two TFDByteString objects with case sensitivity. The return value is 0 if AStr1 equals AStr2, -1 if AStr1 is less than AStr2, or 1 if AStr1 is greater than AStr2. The comparison operation is based on the 8-bit ordinal value of each character.
ALen1 and ALen2 represent the length of AStr1 and AStr2.