Bogusław Brandys wrote:
Hi,

If somebody has some interesting masks (usable preferably) to test implementation of FormatMaskText function then please sent it to me (with output from delphi for comparison)

Regards
Boguslaw


Mantis is very slow now, so I'm commenting it here:

Fixed some bugs.
Warning: This function will not be totally compatible with buggy delphi behaviour! It should be rather compatible with some useful but unimplemented (by delphi) features.

For example this test:
AssertEquals('123-45-6789',FormatMaskText('000\-00\-0000;1;_','123-45-6789'));

is correct under lazarus now, because all literals in value match literals in mask (i.e. total value match mask), and this :

FormatMaskText('000\-00\-0000;1;_','123456789')); will raise exception under lazarus as opposite to delphi !


also :

FormatMaskText('>ccc;0;?','kerry NEIGHBOUR and 10') returns now:
'KERRY NEIGHBOUR AND 10' because of last character in mask is 'c' (could be 'C' also) - this partially match delphi , but delphi does not upper case text like it should.


This is mantis report for this function: http://www.freepascal.org/mantis/view.php?id=10149


Regards
Boguslaw

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to