| [Overview][Types][Classes][Procedures and functions][Index] |
Determines whether a filename matches the mask using Windows file system masks.
Source position: masks.pas line 58
public function TMask.MatchesWindowsMask( |
const AFileName: string |
):Boolean; |
AFileName |
|
File name examined in the method. |
True when the file name matches the mask value in the class instance.
Determines whether a filename matches the mask value. Implements some special rules for a Windows© file system file masks and comparisons. It is assumed that the initial mask value passed to the constructor uses Windows-specific notation, such as:
This is done by converting the Windows-specific file mask to the equivalent notation normally used in the class instance. MatchesWindowsMask calls ClearMaskString and InitMaskString using the altered mask value, and calls the Matches method to perform the comparison. When a Windows-specific file mask is not found, the Matches method is called using the original mask value.
The return value is True when the value in AFileName satisfies the Windows-specific mask expression.
|
Determines whether the specified file name matches the mask value. |
|
|
Masks Overview. |