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

TMaskUTF8.Compile

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

Declaration

Source position: masks.pas line 254

public procedure TMaskUTF8.Compile; virtual;

Description

Compile is a virtual method used to examine and convert values from the Mask property into TMaskParsedCode values for the positions in the mask expression.

CaseSensitive indicates if case is significant for the value in Mask. Mask is converted to lowercase prior to processing in the method when CaseSensitive is set to False.

Compile examines each of the UTF-8 codepoints in Mask, and adds values to an internal list representing the character ranges, literal values, or other TMaskParsedCode values needed to evaluate the Mask expression. Compile may raise an exception when an invalid or incomplete mask is encountered. If the Compile method is called again using the same value in Mask, it simply returns False rather than re-raise the exception.

Compile is called from the Matches method when the Mask expression has not already been compiled.

See also

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.

TMaskUTF8.Compile

  

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

TMaskBase.CaseSensitive

  

Indicates if the mask expression is case sensitive.

TMaskBase.AutoReverseRange

  

Indicates if a range expression is automatically reversed when the starting value is larger than the ending value.

TMaskBase.EscapeChar

  

Contains the character used to escape the following character in a mask expression.


Version 4.0 Generated 2025-05-03 Home