Show: Delphi C++
Display Preferences

System.SysUtils.AnsiCompareText

From XE2 API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

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

Description

Compares strings based on the current locale without case sensitivity.

AnsiCompareText compares S1 to S2, without case sensitivity. The comparison operation is controlled by the current locale. AnsiCompareText returns a value less than 0 if S1 < S2, a value greater than 0 if S1 > S2, and 0 if S1 = S2.

See Also

Personal tools
Previous Versions
Translations