Show: Delphi C++
Display Preferences

System.AnsiStrings.SameText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function SameText(const S1, S2: AnsiString): Boolean;
function SameText(const S1, S2: AnsiString; LocaleOptions: TLocaleOptions): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall SameText(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 for equality without case-sensitivity.

SameText compares S1 to S2, without case-sensitivity. Returns true if S1 and S2 are equal, that is, if CompareText would return 0. SameText has the same 8-bit limitations as CompareText.

Use SameStr to compare strings with case-sensitivity.

See Also

Personal tools
RAD Studio 10.2 Tokyo
In Other Languages
Previous Versions
Assistance