From RAD Studio API Documentation
Jump to: navigation, search


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


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


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


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