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

TWindowsMaskUTF8.Matches

Indicates whether the specified value is a match for the Mask expression.

Declaration

Source position: masks.pas line 284

public function TWindowsMaskUTF8.Matches(

  const aFileName: string

):Boolean; override;

Arguments

aFileName

  

Value examined and compared to the Mask expression.

Function result

True when the specified value matches the Mask expression.

Description

Matches calls Compile if the MaskOpCodes have not been compiled for the Mask expression, or when one the configuration parameters has been changed for the class instance.

Matches provides support for values in the Quirks property such as wqNoExtension. When specified and found in the mask expression, SplitFileNameExtension is called to get the file name and extension components for the value in AFileName.

Matches calls the inherited method to compare the specified values using the MaskOpCodes for the class instance. The return value is True if the file name argument matches the Mask expression. It is False if either the Mask expression or the compared value is too long or too short.

See also

TWindowsMaskUTF8.Quirks

  

Contains the TWindowsQuirk enumeration values for file system quirks enabled in the class instance.

TWindowsMaskUTF8.SplitFileNameExtension

  

Separates the specified value into file name and extension values.

TMaskUTF8.Matches

  

Indicates whether the specified value is a match for the Mask expression.

TMaskUTF8.Mask

  

Mask expression used to match files or directories in the class instance.

TMaskBase.MaskOpCodes

  

Contains the set of mask op codes enabled for the class instance.


Version 4.0 Generated 2025-05-03 Home