Re: [Lazarus] Lazarus Release 2.0.12

2021-02-24 Thread Ondrej Pokorny via lazarus
On 24.02.2021 12:09, Mattias Gaertner via lazarus wrote: The Lazarus team is glad to announce the release of Lazarus 2.0.12. Thank you all for your work! Ondrej -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/

[Lazarus] Attn Marc: snv up please [[Re: Lazarus Release 2.0.12]]

2021-02-24 Thread Martin Frb via lazarus
On 24/02/2021 12:09, Mattias Gaertner via lazarus wrote: The Lazarus team is glad to announce the release of Lazarus 2.0.12. Hi Marc, please svn up the web. Thanks -- ___ lazarus mailing list lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.or

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Bart via lazarus
On Wed, Feb 24, 2021 at 12:28 PM José Mejuto via lazarus wrote: > Filename:='test.txt' > Mask:='test??.txt?' > Match must be true That sucks big time. A ? is supposed to match EXACTLY 1 character (not optional). Bloody @#$%$#@#$ Micro$uck, -- Bart -- _

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Bart via lazarus
On Wed, Feb 24, 2021 at 9:54 PM Juha Manninen via lazarus wrote: > I am interested in how well your TMask version compares with Delphi's version. > Does it match the speed or even surpass it? > > Anyway this unit looks very promising! > It works with Unicode as advertised. It passes all cases in

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Bart via lazarus
On Wed, Feb 24, 2021 at 12:28 PM José Mejuto via lazarus wrote: > Filename:='test.txt' > Mask:='test??.txt?' > Match must be true That sucks big time. ? is supposed to match exactly 1 character (non-optional). Bloody #$%$#!! M$uck. -- Bart -- ___ la

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Juha Manninen via lazarus
On Wed, Feb 24, 2021 at 1:05 PM José Mejuto via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Note: Just to put in context, my "explore" in the TMask world started > when writing my NTFS filesystem reader, when all file names are read > (400,000) I can search for them using masks. When compile

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Bart via lazarus
On Wed, Feb 24, 2021 at 12:11 PM Juha Manninen via lazarus wrote: >> I tested that extensively on my machine with all scenarios I could think of. > Please add your tests to the project I mentioned. I did that when writing the code. I never saved the tested masks I used anywhere AFAIK. The comme

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Juha Manninen via lazarus
MaskList is used in TCustomShellTreeView.GetFilesInDir(). It sets a mask option *moDisableSets*. Why are sets disabled? Is it to stay compatible with FindFirstUTF8() syntax? I don't fully understand the comment. Why would EConvertError be raised? //Disable the use of sets in the masklist.

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread José Mejuto via lazarus
El 24/02/2021 a las 13:31, Juha Manninen via lazarus escribió: Hello, I was thinking in import the NTFS (the filesystem) case comparison tables which are 128 KB "only". That is not necessary. LazUTF8 has functions like UTF8CompareText(), UTF8CompareTextP() and the The code was origin

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Juha Manninen via lazarus
On Wed, Feb 24, 2021 at 12:22 PM José Mejuto via lazarus < lazarus@lists.lazarus-ide.org> wrote: > In my code there is non 100% unicode compatibility when using the > "CaseInsensitive" mode as as it uses lowercase mask and lowercase string > to perform the test which is wrong by definition but I w

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread José Mejuto via lazarus
El 24/02/2021 a las 11:58, Bart via lazarus escribió: Hello, In my code there is non 100% unicode compatibility when using the "CaseInsensitive" mode as as it uses lowercase mask and lowercase string to perform the test which is wrong by definition Currently Masks unit does the same. Yes, b

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Juha Manninen via lazarus
On Wed, Feb 24, 2021 at 1:00 PM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > > > There are no tests for MatchesWindowsMask() yet. > I tested that extensively on my machine with all scenarios I could think > of. > Please add your tests to the project I mentioned. Juha -- __

[Lazarus] Lazarus Release 2.0.12

2021-02-24 Thread Mattias Gaertner via lazarus
The Lazarus team is glad to announce the release of Lazarus 2.0.12. This release was built with FPC 3.2.0. Here is the list of changes for Lazarus and Free Pascal: http://wiki.lazarus.freepascal.org/Lazarus_2.0.0_release_notes http://wiki.lazarus.freepascal.org/User_Changes_3.2.0 Windows users s

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread José Mejuto via lazarus
El 24/02/2021 a las 11:47, Bart via lazarus escribió: On Wed, Feb 24, 2021 at 10:02 AM Bart wrote: Of course that is NOT a reason not to improve it: O(n^4) is just terrible. To put this discussion in a little perspective. Given a string S (UTF8 encoded) with Utf8Length=1000. GetCodePoint(S,1

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Bart via lazarus
On Wed, Feb 24, 2021 at 11:22 AM José Mejuto via lazarus wrote: > In my code there is non 100% unicode compatibility when using the > "CaseInsensitive" mode as as it uses lowercase mask and lowercase string > to perform the test which is wrong by definition Currently Masks unit does the same. >

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Bart via lazarus
On Wed, Feb 24, 2021 at 10:02 AM Bart wrote: > Of course that is NOT a reason not to improve it: O(n^4) is just terrible. To put this discussion in a little perspective. Given a string S (UTF8 encoded) with Utf8Length=1000. GetCodePoint(S,1000) on my laptop takes 0.00439 msecs to perform. So 10

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread José Mejuto via lazarus
El 24/02/2021 a las 10:31, Juha Manninen via lazarus escribió: José Mejuto's code is a major rewrite for Masks. It supports Unicode in masks, too. I try to make it compatible by changing some class and method names, and then run the unit tests. Hello, In my code there is non 100% unicode com

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Juha Manninen via lazarus
I will not touch MaskEdit. Don't worry. On Wed, Feb 24, 2021 at 11:03 AM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > Without a major rewrite (which increases the cange of breaking > compatibility). > José Mejuto's code is a major rewrite for Masks. It supports Unicode in masks, to

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Bart via lazarus
On Wed, Feb 24, 2021 at 9:11 AM Juha Manninen via lazarus wrote: >> TMask (unit masks) deals with masks with wildcards (*,? and sets of >> single byte chars). ... > TMask also supports ranges and sets. See the unit test. > Eg. '[a-b]', '[!a-b]', '[abc]', '[0-9]' By single byte chars I meant ASC

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-24 Thread Juha Manninen via lazarus
On Wed, Feb 24, 2021 at 12:08 AM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > TMask (unit masks) deals with masks with wildcards (*,? and sets of > single byte chars). > It is mainly used for matching filenames (similar to the Path supplied > to FindFirst). > > TMaskEdit gives you th