The only code change is in TMask.InitMaskString
- '[': AddCharSet;
+ '[': if fUseSets then
This works fine.
Easy to implement it as Options.
Am 19.03.2020 um 18:37 schrieb Bart via
On Thu, Mar 19, 2020 at 8:25 AM Rolf Wetjen via lazarus
[hidden email] wrote:
seems that this isn't your favourite option.
Without any context, I cannot comment on this.
Ok, what's about an additional TMask property to control the useage of
sets (default should be true for Delphi compatibility) and additional
options for the MatchesMask and MatchesWindowsMask functions?
It's on my ToDo list (as long as other devels don't object to this.
I intend to have an Options property for that, with for now
moCaseSensitive and moDisableSets.
There will be an overloaded constructor TMask,Create((const AValue:
String; ASeparator: Char = ';'; const Options: TMaskOptions = );
(By default CaseSensitive and DisableSets must be off for backwards
It will only be for trunk and the next stable major release (so it
won't go into fixes branch) anyhow.
Am 20.03.2020 um 19:08 schrieb Bart via lazarus:
> On Fri, Mar 20, 2020 at 10:47 AM Bart <[hidden email]> wrote:
>> I prefer the Options parameter over another Boolean, mainly because
>> you never know if another use-case might raise the need for yet
>> another parameter.
> Committed in r62782