<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">On Tue, Oct 19, 2021 at 5:34 PM Bart via lazarus <<a href="mailto:lazarus@lists.lazarus-ide.org">lazarus@lists.lazarus-ide.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">With only eMaskOpcodeOptionalChar enabled [a-z] would match 'a', '-' or 'z'?<br>
(This would be the old behaviour of TMask)<br></blockquote><div><br></div><div>There is now a constant MaskOpCodesNoEscape which leaves out eMaskOpcodeAnyCharOrNone and eMaskOpcodeEscapeChar.</div><div>It matches more or less with the old behavior and is used in the ...Legacy constructors and functions.</div><div><div><br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
The eMaskOpcodeOptionalChar enum name is not very self-explanatory,<br>
maybe we should come up with another name (better now than in half a<br>
year).<br></blockquote><div><br></div><div>Suggestions?</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
And maybe a constant that has all opcodes except the ones that enable ranges.<br></blockquote><div><br></div><div>There is MaskOpCodesDisableRange which leaves out eMaskOpcodeAnyCharOrNone, eMaskOpcodeRange and eMaskOpcodeOptionalChar.</div><div>It is used in unit ShellCtrls.</div><div><br></div><div><br></div><div>I forgot to answer this earlier :</div><div>> The corresponding Create in TMaskBase is not deprecated: is that by design?<br></div><div><br></div><div>The Create in TMaskBase is never called directly by a user. He will get a deprecated message from elsewhere.<br></div><div><br></div><div>Juha</div><div><br></div></div></div></div></div></div></div></div></div></div></div>