System.IOUtils.TPath.MatchesPattern

提供: RAD Studio API Documentation
移動先: 案内検索

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


説明

指定された PatternFileName が一致すれば True を返します。

MatchesPattern メソッドは、指定された PatternFileName が一致すれば True を、パターンにファイル名が一致しなければ False を返します。指定されたファイル名に無効な文字が含まれていると、MatchesPattern メソッドで EArgumentException が発生します。

関連項目