| [Overview][Types][Classes][Procedures and functions][Index] |
Determines whether the specified file name matches the mask value.
Source position: masks.pas line 57
public function TMask.Matches( |
const AFileName: string |
):Boolean; |
AFileName |
|
File name compared to the mask value in the method. |
True when the file name matches the mask in the class instance.
Matches is a Boolean function used to determine whether the specified file name matches the mask value in the class instance. Matches converts the value in AFileName to lowercase when case sensitivity is omitted from the TMaskOptions for the class instance.
Matches examines each of the UTF-8 code points in the AFileName argument, and compares the code points to the character types defined in the internal mask string. The return value is False when:
The return value is True when AFileName satisfies the mask expression using the options for the class instance.
Pass values for the mask expression and its options to the constructor for the class instance.
|
Constructor for the class instance. |
|
|
Set type used to store values from the TMaskOption enumeration. |
|
|
Contains options which can be enabled or disabled in TMask comparisons. |
|
|
Masks Overview. |