删除空白
- 更新时间2025-07-30
- 阅读时长2分钟
在字符串的起始、末尾或两端删除所有ASCII空白(空格、制表符、回车符和换行符)。去除空白的VI不删除双字节字符。
默认为删除字符串两端的空格。

输入/输出
location (both)
—
location determines if this function removes white space from the beginning, end, or both ends of string. 默认值为两端。
string
—
string is the input string.
trimmed string
—
删除空白后的字符串为删除了空白后的字符串。 |
location (both)
—
string
—
trimmed string
—