| [Overview][Types][Classes][Procedures and functions][Index] |
Determine whether the specified file name matches at least one of the specified masks.
Source position: masks.pas line 96
function MatchesWindowsMaskList( |
const FileName: string; |
const Mask: string |
):Boolean; |
const FileName: string; |
const Mask: string; |
Separator: Char |
):Boolean; |
const FileName: string; |
const Mask: string; |
Separator: Char; |
const CaseSensitive: Boolean |
):Boolean; |
const FileName: string; |
const Mask: string; |
Separator: Char; |
const Options: TMaskOptions |
):Boolean; |
FileName |
|
File name compared to the file masks in Mask. |
Mask |
|
one or more file mask expressions separated by one of the values in Separator. |
True when Filename matches at least one of the masks in the list.
FileName |
|
File name compared to the file masks in Mask. |
Mask |
|
one or more file mask expressions separated by one of the values in Separator. |
Separator |
|
Character(s) used as a separator between mask expressions in Mask. |
FileName |
|
File name compared to the file masks in Mask. |
Mask |
|
one or more file mask expressions separated by one of the values in Separator. |
Separator |
|
Character(s) used as a separator between mask expressions in Mask. |
CaseSensitive |
|
True if the file name to mask comparison is case sensitive. |
FileName |
|
File name compared to the file masks in Mask. |
Mask |
|
one or more file mask expressions separated by one of the values in Separator. |
Separator |
|
Character(s) used as a separator between mask expressions in Mask. |
Options |
|
TMaskOption values which enable or disable features in the comparison. |
MatchesWindowsMaskList is an overloaded Boolean function used to determine whether the specified file name matches at least one of the specified masks. MatchesWindowsMaskList is similar to MatchesMaskList, but provides support for Windows-style file system masks in the Mask argument. This includes use of the following:
Overloaded variants of the routine provide arguments and configuration settings, including:
| Remark: | The overloaded variant which includes the CaseSensitive argument has been deprecated. Use the variant that includes the TMaskOptions argument. |
MatchesWindowsMaskList creates a TMaskList instance which uses the values in the Mask, Separator and Options parameters. Its MatchesWindowsMask method is called to compare the value in Filename to the Windows-style masks in the list.
The return value is True when Filename matches at least one of the masks in the list.
|
Determine whether the specified file name matches at least one of the specified masks. |
|
|
Contains options which can be enabled or disabled in TMask comparisons. |
|
|
Implements a list for masks. |
|
|
Masks Overview. |