[fpc-pascal] TMaskUtils.ValidateInput function: how is it supposed to behave?

Michael Van Canneyt michael at freepascal.org
Mon Apr 18 17:27:39 CEST 2016



On Mon, 18 Apr 2016, Graeme Geldenhuys wrote:

> On 2016-04-18 15:51, Bart wrote:
>> Maybe a version of maskutils unit based on UnicodeString should also
>> be made?
>
> This seems so redundant. I still need to study the new FPC 3.0 string
> handling, but I was hoping such duplication of implementations would not
> be necessary with newer FPC versions. We don't see such rubbish
> [duplication of code with various string types] in Java or C# or Qt, so
> why must we put up with it in Object Pascal.

I think Bart meant that the maskutils unit should simply use unicodestring.
Given that it almost surely will need to deal with $ and € etc, that seems
like a better approach.


Michael.


More information about the fpc-pascal mailing list