Sign in Join
FPDoc Onlineexperiment

TWindowsMaskUTF8.Matches function

Member of TWindowsMaskUTF8publicIn unit Masks

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

Declaration

pascal
function 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.