replaceChar

Replace a character in a string

string
replaceChar
(
in string str
,
in char from_char
,
in char to_char
)

Parameters

str string

the input string

from_char char

the character to replace

to_char char

the character to replace it with

Return Value

Type: string

str with all instances of from_char replaced by to_char

Meta