Sign in Join
FPDoc Onlineexperiment

TMaskBase.TMaskParsedCode enumeration

Member of TMaskBaseprotectedIn unit Masks

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

Declaration

pascal
TMaskParsedCode = (Literal,Range,Negate,AnyChar,AnyCharOrNone,
 AnyCharToNext,OptionalChar,CharsGroupBegin,
 CharsGroupEnd)

Description

Used in the Add and IncrementLastCounterBy methods.

Values

LiteralOp code for a literal value in a compiled mask expression.
RangeOp code for a range declared in a compiled mask expression.
NegateOp code to exclude a range or set declared in a compiled mask expression.
AnyCharOp code to match any single character in a compiled mask expression. The character is required.
AnyCharOrNoneOp code to match any single character in a compiled mask expression. The character is optional.
AnyCharToNextOp code to match any number of characters in a compiled mask expression. On failure, the match is restarted at the next position and continues until the mask is completed or all matching values are used.
OptionalCharOp code to match a single optional character value in the compiled mask expression.
CharsGroupBeginOp code for the '[' character which starts an optional range or set in a compiled mask expression.
CharsGroupEndOp code for the ']' character which ends an optional range or set in a compiled mask expression.

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