Bde.DBTables.NativeCompareStrBuf

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Bde.DBTables.pas
Bde.DBTables.hpp
Unit: Bde.DBTables
Parent: Bde.DBTables

Delphi

function NativeCompareStrBuf(Locale: TLocale; const S1, S2: PAnsiChar; Len: Integer): Integer;

C++

extern DELPHI_PACKAGE int __fastcall NativeCompareStrBuf(TLocale Locale, const char * S1, const char * S2, int Len);

Description

Compares null-terminated strings based on a database locale case sensitively.

NativeCompareStrBuf compares up to the first Len characters of S1 to those of S2, with case sensitivity. If the Len parameter is 0, NativeCompareStrBuf compares the strings up to their entire length. 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



See Also