Show: Object Pascal C++
Display Preferences

System.SysUtils.StrComp

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function StrComp(const Str1, Str2: PAnsiChar): Integer;
function StrComp(const Str1, Str2: PWideChar): Integer;

C++

extern DELPHI_PACKAGE int __fastcall StrComp _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (const char * Str1, const char * Str2)/* overload */;

Properties

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

Description

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

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

Compares two strings with case sensitivity.

Call StrComp to compare two null-terminated strings, with case sensitivity. The return value is indicated in the following table.



Return value Condition

<0

Str1 sorts before Str2.

=0

Str1is the same as Str2.

>0

Str1 sorts after Str2.



Note: When working with International characters, use AnsiStrComp instead.

See Also

Code Examples


Personal tools
Translations