Project

General

Profile

Actions

Bug #28

closed

Fixing a bug in Strings.Replace in case of truncation

Added by J. Templ almost 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
01/30/2015
Due date:
% Done:

100%

Estimated time:

Description

Strings.Replace does not terminate the resulting string with 0X if truncation is needed.
For example: VAR a: ARRAY 5 OF CHAR; a := "ABCD"; Strings.Replace(a, 1, 1, "xy");
Reported by Manuel Martín Sánchez on 2014-03-21.
In addition, the simple case where the string length is not changed should be optimized.

Refers to CPC 1.7 rc5 change list number 30.

Actions

Also available in: Atom PDF