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

TMaskBase.EscapeChar

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

Declaration

Source position: masks.pas line 212

public property TMaskBase.EscapeChar : Char
  read fMaskEscapeChar
  write SetMaskEscapeChar;

Description

EscapeChar causes the character that immediately follows the value to be treated as a literal character instead of a wildcard. It is used to allow wildcard characters (like '?' or '*') or set / range characters (like '[', '-', or ']') to be used as literals in the Mask expression. The default value for the property is '\' (Backslash) as assigned in the Create constructor.

EscapeChar must be one of the 7-bit ASCII characters in the range #0..#127. Setting the property to a value larger than #127 (ASCII Delete) causes an EMaskError exception to be raised with the message in the rsInvalidEscapeChar resource string.

Changing the value for the property causes Compile to be called during execution of the Matches method.

Descendent classes (which include the Mask expression) use the value in their Compile and CompileRange methods. Make sure the class instance has the value mocRange in the MaskOpCodes property to enable range notation in the Mask expression.

See also

TMaskBase.MaskOpCodes

  

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

TMaskOpCode

  

Represents operations needed for an entry in a mask specification.

TMaskOpCodes

  

Set type used to store values from the TMaskOpcode enumeration.

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.

TWindowsMaskUTF8.Compile

  

Examines and converts the mask expression into a list of op codes.

rsInvalidEscapeChar


Version 4.0 Generated 2025-05-03 Home