System.SysUtils.StrIComp

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function StrIComp(const Str1, Str2: MarshaledAString): Integer; overload;
function StrIComp(const Str1, Str2: PWideChar): Integer;

C++

extern DELPHI_PACKAGE int __fastcall StrIComp _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: The ANSI version of StrIComp is deprecated. Please use the AnsiStrings unit.

Compares two strings without case sensitivity.

Call StrIComp to compare two strings without case sensitivity. StrIComp returns a value greater than 0 if Str1 > Str2, less than 0 if Str1 < Str2, and returns 0 if the strings are equal except for differences in case.

When working with international characters, use AnsiStrIComp instead.

See Also

Code Examples