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

TMaskBase.Create

Constructor for the class instance.

Declaration

Source position: masks.pas line 206

public constructor TMaskBase.Create(

  aCaseSensitive: Boolean = False;

  aOpcodesAllowed: TMaskOpCodes = DefaultMaskOpCodes

);

constructor TMaskBase.Create(

  aOptions: TMaskOptions

);

Arguments

aCaseSensitive

  

True if the mask expression is case sensitive.

aOpcodesAllowed

  

Op codes allowed for the compiled mask expression.

Arguments

aOptions

  

Set with the TMaskOption values enabled in the class instance.

Description

Create is the overloaded constructor for the class instance. One variant allows case sensitivity for mask expressions and the allowed op codes to be specified as arguments. The other variant accepts an argument with the set of mask options for the class instance.

Create the sets the initial values for the CaseSensitive, AutoReverseRange, and EscapeChar properties.

Remark: TMaskBase does not provide a way to specify or store the mask expression for the class instance. Use one of the descendent classes which provide UTF-8 support and implement specific file system behavior for the mask expression.

Version 4.0 Generated 2025-05-03 Home