different behaviour in "stuffstring" between delphi and fpc
Original Reporter info from Mantis: roozbeh
-
Reporter name: roozbeh gholizadeh
Original Reporter info from Mantis: roozbeh
- Reporter name: roozbeh gholizadeh
Description:
s := StuffString('ba', 2, 4, 'aaa
');
in delphi : s = baaa``
in fpc : s = baaa`
actually number 4 in paramtrs is wrong it should be 3(it is lenght of charachters to be replaced from master string,ie a``,starting from pos 2)
,but i guess higher values as in delphi should not cause problem(using value 3 makes fpc giving the same result)
Additional information:
delphi implemntation is far simpler than fpc
Mantis conversion info:
- Mantis ID: 9770
- Fixed in revision: 8689 (#7429c487)