Show: Delphi C++
Display Preferences

System.SysUtils.StrLIComp

From XE2 API Documentation
Jump to: navigation, search

Delphi

function StrLIComp(const Str1, Str2: PAnsiChar; MaxLen: Cardinal): Integer;
function StrLIComp(const Str1, Str2: PWideChar; MaxLen: Cardinal): Integer;

C++

extern PACKAGE int __fastcall StrLIComp(const char * Str1, const char * Str2, unsigned MaxLen)/* overload */;

Contents

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

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

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

Str1 is the same as Str2.

>0

Str1 sorts after Str2.



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

See Also

Code Examples


Personal tools
Previous Versions
Translations