RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DBTables.NativeCompareTextBuf Function

Compares null-terminated strings based on a database locale and is not case sensitive.

Pascal
function NativeCompareTextBuf(Locale: TLocale; const S1: PAnsiChar; const S2: PAnsiChar; Len: Integer): Integer;
C++
int NativeCompareTextBuf(TLocale Locale, const PAnsiChar S1, const PAnsiChar S2, int Len);

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

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!