vl-string-translate
 
 
 

Replaces characters in a string with a specified set of characters

(vl-string-translate source-set dest-set str)

Arguments

source-set

A string of characters to be matched.

dest-set

A string of characters to be substituted for those in source-set.

str

A string to be searched and translated.

Return Values

The value of str after any substitutions have been made

Examples

_$ (vl-string-translate "abcABC"
"123123" "A is a, B is b, C is C")
"1 is 1, 2 is 2, 3 is 3"
_$ (vl-string-translate "abc"
"123" "A is a, B is b, C is C")
"A is 1, B is 2, C is 3"