Bde.DBTables.NativeCompareText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function NativeCompareText(Locale: TLocale; const S1, S2: AnsiString; Len: Integer): Integer;

C++

extern DELPHI_PACKAGE int __fastcall NativeCompareText(TLocale 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 without case sensitivity.

NativeCompareText compares up to the first Len characters of S1 to those of S2, without case sensitivity. If the Len parameter is 0, NativeCompareText compares the strings up to their entire length. The compare operation is controlled by the database locale specified as the Locale parameter. NativeCompareText returns a value less than 0 if S1 < S2, a value greater than 0 if S1 > S2, and returns 0 if S1 = S2.

See Also