System.SysUtils.AnsiSameText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AnsiSameText(const S1, S2: string): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall AnsiSameText(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.

AnsiSameText compares S1 to S2, without case sensitivity. The comparison operation is controlled by the current locale. The return value is True if the two strings have the same value or False otherwise.

See Also