[Lazarus] TMask revisited

Bart bartjunk64 at gmail.com
Mon Oct 18 22:39:28 CEST 2021


On Sun, Oct 17, 2021 at 7:37 PM José Mejuto via lazarus
<lazarus at lists.lazarus-ide.org> wrote:
> OpcodeOptionalChar (maybe the name should be OptionChar) works in the
> compiled stream as CheckMatch and if match go to next char; if not match
> continue checking without advance in the target string.
>
> Most people are familiar with ranges "[a-z]", optional chars use the
> same "[" syntax but without the dash "-", so "[abcde]" matches one
> position with any of those chars or if you negate the set "[!abcde]" it
> will match any char *except* any of those.

So, with that option specified ranges work like "sets" in the old
Masks implementation?
And [a-z] will mean either 'a' or '-' or 'z'?


-- 
Bart


More information about the lazarus mailing list