[Lazarus] TMask revisited

José Mejuto joshyfun at gmail.com
Wed Oct 27 13:35:56 CEST 2021


El 26/10/2021 a las 19:01, Bart via lazarus escribió:
> On Tue, Oct 26, 2021 at 6:48 PM Bart <bartjunk64 at gmail.com> wrote:
> 
>> Point 2 would need (probably a minor) change to the CompileRange method.
> 
> Attached diff might do what I intended.
> @José: does it in fact allow ? in a range as a literal, without side effects.
> I don't really understand the matching algorithm.

Hello,

Only ranges and escape char activated.

Mask      String

"T[?]" => "T?" : Invalid char mask "?" at 3
"T[0-?]" => "T?" : True

"T[?]" fails because in ranges valid syntax is only "char-char".

-- 



More information about the lazarus mailing list