跳转到内容

strip

string  strip(string value)

string  strip(string value, string whitespace)

返回去除首尾空白字符的字符串。如果指定了whitespace参数,则只去除该参数字符串中包含的字符。

该函数等效于对字符串同时执行rstriplstrip操作。