Previous: 4.66.2.6. AnsiStrIComp function To the Table of Contents Next: 4.66.2.8. AnsiStrLIComp function
4.66.2.6. AnsiStrIComp function Table of Contents 4.66.2.8. AnsiStrLIComp function

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


4.66.2.7. AnsiStrLComp function

Targets: MS-DOS, OS/2, Win32


Strings Unit

Compares the first MaxLen bytes of two character sequences. It is case-sensitively.

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


Previous: 4.66.2.6. AnsiStrIComp function To the Table of Contents Next: 4.66.2.8. AnsiStrLIComp function
4.66.2.6. AnsiStrIComp function Table of Contents 4.66.2.8. AnsiStrLIComp function

- 4.66.2.7. -