System.StrUtils.AnsiMatchText

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AnsiMatchText(const AText: string; const AValues: array of string): Boolean;

C++

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

Properties

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

Description

Indicates whether an array of strings contains a case-insensitive match to a specified string.

Call AnsiMatchText to determine whether the string specified by AText matches one of the strings in AValues. Comparisons are case-insensitive and use the current system locale.

AText is the string to locate.

AValues is the array of strings to search.

Note: AValues_Size is the index of the last element in AValues (one less than the number of elements).

AnsiMatchText returns true if AText (or a string that matches except for case) appears in AValues, false if it does not appear in the array.

See Also