System.AnsiStrings.MatchStr
Delphi
function MatchStr(const AText: AnsiString; const AValues: array of AnsiString): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall MatchStr(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 with case-sensitivity.
MatchStr 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 with case-sensitivity and is controlled by the current user locale, as for SameText.
This function is the same as AnsiMatchStr.
To make the comparison without case-sensitivity, use MatchText.