- 积分
- 36655
- 明经币
- 个
- 注册时间
- 2011-8-7
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2014-5-21 08:27:11
|
显示全部楼层
vl-string-translate
在字符串中替换字符
(vl-string-translate source-set dest-set str)
参数
source-set
要被替换的字符的集合。
dest-set
字符串,用于替换 source-set 中的字符。
str
字符串,在其中搜索和替换。
返回值
在进行替换后 str 的值。
示例
_$ (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"
|
|