RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.StrLIComp Function

Compares strings up to a specified maximum number of characters, without case sensitivity.

Pascal
function StrLIComp(const Str1: PChar; const Str2: PChar; MaxLen: Cardinal): Integer;
C++
int StrLIComp(const const char * Str1, const const char * Str2, unsigned MaxLen);

SysUtils

StrLIComp compares Str1 to Str2, up to a maximum length of MaxLen characters, without case sensitivity. The return value is indicated in the following table:

Return value 
Condition 
<0  
Str1 sorts before Str2  
=0  
Str1is the same as Str2  
>0  
Str1 sorts after Str2  

Note: When working with international characters, use AnsiStrLIComp instead.
 

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