replace__
replace__(target: String; replacement: String; bIgnoreCase: Boolean): String;
The replace__ method of the String primitive type replaces all occurrences of the substring specified in the target parameter with the substring specified in the replacement parameter, ignoring case-sensitivity if you set the value of the bIgnoreCase parameter to true.
Set the bIgnoreCase parameter to false if you want the substring replacement to be case‑sensitive.
The replace__ method returns the original receiver String if the value specified in the target parameter has a length of zero (0); that is, it is an empty string.
The following example shows the use of the replace__ method.
vars
output, input : String;
begin
input := "ababab";
output := input.replace__('b','a',false);
write output; // aaaaaa
end;
2018.0.01 and higher