从字符串结尾删除指定字符
(vl-string-right-trim character-set string)
参数
character-set
字符串,列出要删除的字符。
string
字符串,从中删除 character-set。
返回值
字符串,其中包含删除 character-set 后的所有字符。
示例
_$ (vl-string-right-trim " \t\n" " STR \n\t ")
" STR"
_$ (vl-string-right-trim "1356789" "3CPO is not R2D267891")
"3CPO is not R2D2"
_$ (vl-string-right-trim " " "There are too many spaces here ")
"There are too many spaces here"
明经通道 版权所有 未经许可 不得传播 | 评论 |