Previous: 4.66.2.7. AnsiStrLComp function To the Table of Contents Next: 4.66.2.9. AnsiStrLower function
4.66.2.7. AnsiStrLComp function Table of Contents 4.66.2.9. AnsiStrLower function

- 4.66.2.8. -
Table of Contents
4. Standard Units
4.66. Strings - Large string manipulation unit
4.66.2. Strings Unit Procedures and Functions
4.66.2.8. AnsiStrLIComp function


4.66.2.8. AnsiStrLIComp function

Targets: MS-DOS, OS/2, Win32


Strings Unit

Compares two strings, case-insensitively, up to the first MaxLen bytes.

Declaration:
function AnsiStrLIComp(S1, S2: PWChar; MaxLen: DWORD): Longint;
function AnsiStrLIComp(S1, S2: PChar; MaxLen: DWORD): Longint;
Remarks:
AnsiStrLIComp compares S1 to S2, without case sensitivity. If S1 or S2 is longer than MaxLen characters, AnsiStrLIComp only compares up to the first MaxLen characters. The return value is:
 Condition  Return Value 
S1 > S2> 0
S1 < S2< 0
S1 = S2= 0
Win32 target:
AnsiStrLIComp uses the current Windows locale.


Previous: 4.66.2.7. AnsiStrLComp function To the Table of Contents Next: 4.66.2.9. AnsiStrLower function
4.66.2.7. AnsiStrLComp function Table of Contents 4.66.2.9. AnsiStrLower function

- 4.66.2.8. -