Re: [Lazarus] TMask revisited

2021-10-24 Thread Bart via lazarus
On Sun, Oct 24, 2021 at 4:26 PM José Mejuto via lazarus wrote: > > @José: is this indeed as intended? > No, in fact escaping was introduced to allow "[a\-]" to be interpreted > as literal set "a-". I must check my test cases, maybe a simple missing > if. Please let me check it tomorrow, monday.

Re: [Lazarus] TMask revisited

2021-10-24 Thread José Mejuto via lazarus
El 24/10/2021 a las 15:48, Bart via lazarus escribió: It looks like escaping does not work as advertised? Seems like escaping is NOT supported in ranges or sets, but only outside them? If that is the case (and by design) then, with [mocRange] enabled, you can only have '-' in a range if the

Re: [Lazarus] TMask revisited

2021-10-24 Thread Bart via lazarus
On Sun, Oct 24, 2021 at 3:26 PM Bart wrote: > It looks like escaping does not work as advertised? Seems like escaping is NOT supported in ranges or sets, but only outside them? If that is the case (and by design) then, with [mocRange] enabled, you can only have '-' in a range if the range

Re: [Lazarus] TMask revisited

2021-10-24 Thread Bart via lazarus
On Sat, Oct 23, 2021 at 11:33 PM Bart wrote: > I renamed mocOptionaChar to mocSet and added some comments in the code. > > @José: are these comments correct? I'm still strugling with the difference between mocRange and mocSet (previously mocOptionalChar). Consider the following mask: [a-c]