RAD Studio VCL Reference
|
Compares two strings, case-insensitively, up to the first MaxLen bytes.
function AnsiStrLIComp(S1: PAnsiChar; S2: PAnsiChar; MaxLen: Cardinal): Integer; overload; function AnsiStrLIComp(S1: PWideChar; S2: PWideChar; MaxLen: Cardinal): Integer;
int AnsiStrLIComp(PAnsiChar S1, PAnsiChar S2, unsigned MaxLen); int AnsiStrLIComp(PWideChar S1, PWideChar S2, unsigned MaxLen);
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 compare operation is controlled by the current locale. The return value is:
Condition |
Return Value |
S1 > S2 |
> 0 |
S1 < S2 |
< 0 |
S1 = S2 (up to MaxLen characters) |
= 0 |
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|