public replace(oldValue as Char, notnull newValue as String) as String
Replaces every occurrence of a Unicode scalar with immutable text.
| Parameter | Description |
|---|---|
oldValue | Scalar to replace, including U+0000. |
newValue | Replacement text, which may be empty. |
A new String; the receiver is unchanged.
assert "aba".replace('a', "xy") == "xybxy"