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

TMaskBase.Add

Adds one or more mask op codes found in the compiled mask expression.

Declaration

Source position: masks.pas line 179

protected procedure TMaskBase.Add(

  aLength: Integer;

  aData: PBYTE

);

procedure TMaskBase.Add(

  aValue: Integer

);

procedure TMaskBase.Add(

  aValue: TMaskParsedCode

);

Arguments

aLength

  

Number of bytes needed to represent the op codes in AData.

aData

  

Pointer to the bytes representing the op codes.

Arguments

aValue

  

Integer value for the TMaskOpCode enumeration value added in the method.

Arguments

aValue

  

Integer value for the TMaskOpCode enumeration value added in the method.

Description

Add is an overloaded method used to add one or more op codes for compiled mask expression. The overloaded variants allow the op code to be specified as a TMaskParsedCode enumeration value, as a pointer to byte values for the parsed op code(s), or as an Integer.

Add is called is from the Compile method (in descendent classes) when UTF-8 codepoints in the mask expression are translated into their corresponding op codes.

See also

TMaskUTF8.Compile

  

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

TMaskBase.TMaskParsedCode

  

Represents op codes found when parsing / compiling a mask expression.


Version 4.0 Generated 2025-05-03 Home