RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DBTables.NativeCompareStrBuf Function

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

Pascal
function NativeCompareStrBuf(Locale: TLocale; const S1: PChar; const S2: PChar; Len: Integer): Integer;
C++
int NativeCompareStrBuf(TLocale Locale, const const char * S1, const const char * S2, int Len);

DBTables

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  

 

NativeCompareText 

NativeCompareStr

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!