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

TMaskUTF8.Matches

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

Declaration

Source position: masks.pas line 255

public function TMaskUTF8.Matches(

  const aStringToMatch: string

):Boolean; virtual;

Arguments

aStringToMatch

  

Value to compare 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. When CaseSensitive is set to False, the value in aStringToMatch is converted to a lowercase UTF-8 codepoint for the comparison.

Matches calls the IntfMatches method to implement the comparison between the specified value using the MaskOpCodes for the class instance. The return value is True if the call to IntfMatches is successful. It is False if either the Mask expression or the compared value is too long or too short.

See also

TMaskUTF8.IntfMatches

  

Implements the Matches method for the supported platform.

TMaskUTF8.Mask

  

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

TMaskUTF8.Compile

  

Examines the mask expression and creates a list of op codes.

TMaskBase.MaskOpCodes

  

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

TMaskBase.CaseSensitive

  

Indicates if the mask expression is case sensitive.


Version 4.0 Generated 2025-05-03 Home