Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-23 Thread Juha Manninen via lazarus
On Tue, Feb 23, 2021 at 7:38 PM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > I have copied in the past some of the TMaskEdit logic and methods to > the MaskUtils unit. > Ok, the TEditMask thing was in MaskUtils. I didn't pay attention. How about TMask? Does it have the same syntax

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-23 Thread José Mejuto via lazarus
El 23/02/2021 a las 10:41, Juha Manninen via lazarus escribió: > > Masks in LazUtils has a slow implementation. > I planned to optimize it but now I realize we may have overlapping code. > Q: Are Masks (LazUtils) and FPMasks (fpindexer) compatible? > If they are, we should dump the LazUtils Masks

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-23 Thread Bart via lazarus
On Tue, Feb 23, 2021 at 3:27 PM Juha Manninen via lazarus wrote: > Does it mean the mask syntax is different? I found this: > http://docwiki.embarcadero.com/Libraries/Sydney/en/System.MaskUtils.TEditMask > Is TEditMask the same as TMaskEdit? Or is TEditMask used for TMask? Can you > please

Re: [Lazarus] LHelp and LazMouseAndKeyInput package

2021-02-23 Thread Sergey Bodrov via lazarus
There is another useless dependency for AvgLvlTree inside IpHtml.pas unit. It used only for private VisitedList: TStringMap field in TIpHtmlCustomPanel and has no benefits against TStringList.Find() пн, 22 февр. 2021 г. в 11:52, Juha Manninen via lazarus < lazarus@lists.lazarus-ide.org>: > On

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-23 Thread Michael Van Canneyt via lazarus
On Tue, 23 Feb 2021, Juha Manninen via lazarus wrote: Hello LazUtils has unit Masks with classes TMask and TMaskList. FPC's packages/fpindexer has unit FPMasks also with classes TMask and TMaskList. A comment in FPMasks says "Moved here from LCL". Revision control shows it was added 9 years

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-23 Thread Juha Manninen via lazarus
A related thing. I am confused with different mask classes. Embarcadero docs for TMask http://docwiki.embarcadero.com/Libraries/Sydney/en/System.Masks.TMask says: "*Note:* Do not confuse TMask with the EditMask of a field or masked edit object. While both are used for comparing strings to a

[Lazarus] unit Masks vs. unit FPMasks

2021-02-23 Thread Juha Manninen via lazarus
Hello LazUtils has unit Masks with classes TMask and TMaskList. FPC's packages/fpindexer has unit FPMasks also with classes TMask and TMaskList. A comment in FPMasks says "Moved here from LCL". Revision control shows it was added 9 years ago in 2012. Since 2.5 years ago it supports Unicode by

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-23 Thread Bart via lazarus
On Tue, Feb 23, 2021 at 10:41 AM Juha Manninen via lazarus wrote: > LazUtils has unit Masks with classes TMask and TMaskList. > FPC's packages/fpindexer has unit FPMasks also with classes TMask and > TMaskList. MaskEdit is a LCL control and hence has nothing to do in fpc. I have in the past

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-23 Thread Juha Manninen via lazarus
On Tue, Feb 23, 2021 at 12:56 PM Juha Manninen wrote: > Oops, now I understand that FPMasks does not really support Unicode. > Type UTF8String only converts encoding automatically when assigning values. > There is no code to identify codepoints. > The LazUtils Masks iterates codepoints, although

Re: [Lazarus] unit Masks vs. unit FPMasks

2021-02-23 Thread Juha Manninen via lazarus
On Tue, Feb 23, 2021 at 2:54 PM Bart via lazarus < lazarus@lists.lazarus-ide.org> wrote: > MaskEdit is a LCL control and hence has nothing to do in fpc. > I am not suggesting to move MaskEdit to FPC libs obviously. I have in the past copied bits of TMaskEdit to a related fpc unit > (cannot