[Lazarus] New TMaskList [forked from: TMask revisited]

Bart bartjunk64 at gmail.com
Tue Oct 26 19:20:53 CEST 2021


Hi,

So, now we have:
TMask
TMaskWindows
TMaskList

TMaskList also caters for the old TMask.MatchesWindowsMask.

However, now that we have a dedicated TMaskWindows, wouldn't it also
make more sense to have a TMaskListWindows class?

The TMaskList constructors
    constructor CreateWindows(const aValue: String; aSeparator: Char;
aOptions: TMaskOptions);
    constructor CreateSysNative(const aValue: String; aSeparator:
Char; CaseSensitive: Boolean);
would not be necessary anymore.

For the TMaskListWindows we only need the constructor with the new
syntax, and the class would be rather simple.


-- 
Bart


More information about the lazarus mailing list