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

TMaskList.Matches

Determines whether the specified file name matches a mask in the list.

Declaration

Source position: masks.pas line 331

public function TMaskList.Matches(

  const AFileName: string

):Boolean;

Arguments

AFileName

  

File name examined in the method.

Function result

True when the file name matches one of the mask items.

Description

Matches is a Boolean function used to determine if the specified file name matches one of the file masks in the list.

AFileName contains the file name examined in the method.

Matches uses the TMask or TWindowsMask instances in Items to perform the file name comparison. Each mask in Items is used to call its Matches method until a match is found, or until all of the masks have been visited.

The return value is True when a mask is found that matches the file name.

See also

TMaskList.Items

  

The mask items in the list.

TMaskList.Count

  

The number of mask items in the list.

TMaskList.GetMaskClass

  

Gets the class type used to create new mask instances for the list.

TMask

  

The TMask class represents a mask expression and performs comparisons.

TWindowsMask

  

Implements the class type used to evaluate and compare Windows-specific mask expressions.


Version 4.0 Generated 2025-05-03 Home