replaceChars

Replace a character in a string

string
replaceChars
(
in string str
,
in char[] chars
,
in char to_char
)

Parameters

str string

the input string

chars char[]

the characters to replace

to_char char

the character to replace it with

Return Value

Type: string

str with all instances of chars replaced by to_char

Meta