LazUtils: Masks: move TMaskFailCause type inside the TMaskBase class. It is not needed outside.

This commit is contained in:
Bart 2021-11-02 18:28:19 +01:00
parent 5133009bc0
commit 88f6d76cfc

View File

@ -45,13 +45,6 @@ type
property Code: TMaskExceptionCode read FCode;
end;
TMaskFailCause = (
mfcSuccess,
mfcMatchStringExhausted,
mfcMaskExhausted,
mfcMaskNotMatch,
mfcUnexpectedEnd
);
TMaskOpCode=(mocAnyChar, //treat ? as a wildcard to match exactly one char
mocAnyCharOrNone, //treat [?] to match any char or the absence of a char
@ -178,6 +171,13 @@ type
CharsGroupBegin=10,
CharsGroupEnd=11
);
TMaskFailCause = (
mfcSuccess,
mfcMatchStringExhausted,
mfcMaskExhausted,
mfcMaskNotMatch,
mfcUnexpectedEnd
);
const GROW_BY=100;
procedure Add(aLength: integer; aData: PBYTE);
procedure Add(aValue: integer);