System.AnsiStrings.MatchText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function MatchText(const AText: AnsiString; const AValues: array of AnsiString): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall MatchText(const System::AnsiString AText, const System::AnsiString *AValues, const int AValues_High)/* overload */;

Properties

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

Description

Determines if string in string array.

MatchText returns true if it finds a matching string in an array of strings. If the string is not found, the function returns false.

The string comparison is made without case-sensitivity and is controlled by the current user locale, as for AnsiSameText.

This function is identical to AnsiMatchText.

To make the comparison with case-sensitivity, use MatchStr.

See Also