[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'Masks' (#lazutils)

TMask.Matches

Determines whether the specified file name matches the mask value.

Declaration

Source position: masks.pas line 57

public function TMask.Matches(

  const AFileName: string

):Boolean;

Arguments

AFileName

  

File name compared to the mask value in the method.

Function result

True when the file name matches the mask in the class instance.

Description

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.

See also

TMask.Create

  

Constructor for the class instance.

TMaskOptions

  

Set type used to store values from the TMaskOption enumeration.

TMaskOption

  

Contains options which can be enabled or disabled in TMask comparisons.

Masks Overview

  

Masks Overview.