Show: Object Pascal C++
Display Preferences

System.SysUtils.AnsiStrComp

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function AnsiStrComp(S1, S2: PAnsiChar): Integer;
function AnsiStrComp(S1, S2: PWideChar): Integer;

C++

extern DELPHI_PACKAGE int __fastcall AnsiStrComp _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (char * S1, char * S2)/* overload */;

Properties

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

Description

Warning: Ansi version of AnsiStrComp is deprecated. Please use AnsiStrings unit.

Compares null-terminated character strings.

AnsiStrComp compares S1 to S2, with case sensitivity. The compare operation is controlled by the current locale. The return value is one of the following.



Condition Return Value

S1 > S2

> 0

S1 < S2

< 0

S1 = S2

= 0



Note: Most locales consider lowercase characters to be less than the corresponding uppercase characters. This is in contrast to ASCII order, in which lowercase characters are greater than uppercase characters.
Note: This function supports multi-byte character sets (MBCS).

See Also

Personal tools
Translations