Sign in Join
FPDoc Onlineexperiment

TMaskUTF8.Compile procedure

Member of TMaskUTF8publicIn unit Masks

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

Declaration

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

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