dos_strtrimleft

修剪字符串头部的指定字符.


语法

(dos_strtrimleft string [chars])

参数

string

字符串.

 

chars

要修剪的目标字符. 如果未指定chars则函数删除字符串头部的换行,空格和TAB.

返回

如果成功, 返回修改后的字符.

nil 失败时.

示例

Command: (setq str "****Hockey is the best")

"****Hockey is the best"

 

Command: (dos_strtrimleft str "*")

"Hockey is the best"

 

Command: (setq str "\t\tHockey is the best")

"\t\tHockey is the best"

 

Command: (dos_strtrimleft str)

"Hockey is the best"