System.AnsiStrings.MatchText

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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

C++

extern DELPHI_PACKAGE bool __fastcall MatchText(const System::AnsiString AText, System::AnsiString const *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