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);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TPath |
説明
指定された Pattern
に FileName
が一致すれば True
を返します。
MatchesPattern メソッドは、指定された Pattern
に FileName
が一致すれば True
を、パターンにファイル名が一致しなければ False
を返します。指定されたファイル名に無効な文字が含まれていると、MatchesPattern メソッドで EArgumentException が発生します。