LazUtils: add comments for the TMaskOpCode enums in Masks unit.

This commit is contained in:
Bart 2021-10-23 23:27:05 +02:00
parent 4f84bdc0f3
commit d511c0dfb9

View File

@ -74,13 +74,13 @@ type
CharsGroupBegin=10,
CharsGroupEnd=11
);
TMaskOpCode=(mocAnyChar,
mocAnyCharOrNone,
mocAnyText,
mocRange,
mocOptionalChar,
mocNegateGroup,
mocEscapeChar);
TMaskOpCode=(mocAnyChar, //treat ? as a wildcard
mocAnyCharOrNone, //treat [?] to match any char the absence of a char
mocAnyText, //treat * as a wildcard
mocRange, //treat [a-d] to match either 'a', 'b', 'c', or 'd'
mocOptionalChar, //treat [ab] to match either 'a' or 'b
mocNegateGroup, //treat [!a-d] to not match 'a', 'b', 'c', or 'd', but match any other char. Requires mocRange and/or mocOptionalChar
mocEscapeChar); //treat EscapeChar (defaults to '\') in [a\-b] to match either 'a', 'b', or '-'. Requires mocOptionalChar enebaled and mocRange disabled
TMaskOpCodes=set of TMaskOpCode;
(*