修剪字符串尾部的指定字符.
(dos_strtrimright string [chars])
string
字符串.
chars
要修剪的目标字符. 如果未指定chars则函数删除字符串尾部的换行,空格和TAB.
如果成功, 返回修改后的字符.
nil 失败时.
Command: (setq str "Hockey is the best!!!!")
"Hockey is the best!!!!"
Command: (dos_strtrimright str "!")
"Hockey is the best"
Command: (setq str "Hockey is the best ")
"Hockey is the best "
Command: (dos_strtrimright str)
"Hockey is the best"