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);
Propriétés
| Type | Visibilité | Source | Unité | Parent |
|---|---|---|---|---|
| function | public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TPath |
Description
Renvoie True si FileName correspond au Pattern spécifié.
La méthode MatchesPattern renvoie True si FileName correspond au Pattern spécifié, et False si le nom de fichier ne correspond pas au modèle. Si le nom de fichier donné contient un caractère non valide, la méthode MatchesPattern déclenche une EArgumentException.