System.IOUtils.TPath.MatchesPattern
Delphi
class function MatchesPattern(const FileName, Pattern: string; const CaseSensitive: Boolean): Boolean; static;
C++
static bool __fastcall MatchesPattern(const System::UnicodeString FileName, const System::UnicodeString Pattern, const bool CaseSensitive);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TPath |
Description
Returns True if the FileName matches the specified Pattern.
The MatchesPattern method returns True if the FileName matches the specified Pattern, and False if the file name does not match the pattern. If the given file name contains any invalid character, the MatchesPattern method raises an EArgumentException.