Show: Delphi C++
Display Preferences

System.AnsiStrings.AnsiCompareText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AnsiCompareText(const S1, S2: AnsiString): Integer;

C++

extern DELPHI_PACKAGE int __fastcall AnsiCompareText(const System::AnsiString S1, const System::AnsiString S2)/* overload */;

Properties

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

Description

Compare two strings without case-sensitivity.

AnsiCompareText compares S1 to S2 without case-sensitivity. The compare operation is controlled by the current user locale, unlike CompareText. The return value is the same as for CompareStr.

To compare strings with case-sensitivity, use AnsiCompareStr.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance