System.AnsiStrings.StrIComp

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function StrIComp(const Str1, Str2: PAnsiChar): Integer;

C++

extern DELPHI_PACKAGE int __fastcall StrIComp(const char * Str1, const char * Str2)/* overload */;

Properties

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

Description

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