vl-string-translate


(vl-string-translate fromSet toSet string)

This function replaces any character in fromSet with corresponding character in toSet in the string.

Arguments

fromSet  (string) 
toSet  (string) the string where to replace characters from fromSet with corresponding
string  (string) the string where characters are to be substituted

Return

(string) the result string after character substitution

Example

(vl-string-translate "WSL" "wsl" "Wrong SpeLLing")  returns "wrong spelling"

Remarks

"corresponding character" means : character at position N in fromSet is substituted by character N in toSet



©  Bricsys NV. All rights reserved.