Bde.DBTables.NativeCompareStr
Delphi
function NativeCompareStr(Locale: TLocale; const S1, S2: AnsiString; Len: Integer): Integer;
C++
extern DELPHI_PACKAGE int __fastcall NativeCompareStr(void * Locale, const System::AnsiString S1, const System::AnsiString S2, int Len);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Bde.DBTables.pas Bde.DBTables.hpp |
Bde.DBTables | Bde.DBTables |
Description
Compares strings based on a database locale case sensitively.
NativeCompareStr compares S1 to S2, up to a length of Len characters. If the Len parameter is 0, NativeCompareStr compares the strings up to their entire length. The comparison is performed with case sensitivity. The compare operation is controlled by the database locale specified as the Locale parameter. The return value is:
Condition | Return Value |
---|---|
S1 > S2 |
> 0 |
S1 < S2 |
< 0 |
S1 = S2 |
= 0 |