<< strings Strings strncpy >>

Scilab help >> Strings > stripblanks

stripblanks

文字列の先頭または末尾の空白(およびタブ)を取り除く

呼び出し手順

txt=stripblanks(txt[,tabs])

パラメータ

txt

文字列または文字列の行列 s

tabs

TRUEの場合,タブも削除されます (デフォルト値は FALSE)

説明

stripblanks は文字列の先頭または末尾の空白(およびタブ)を取り除 きます.

例

a='  123   ';
'!'+a+'!'
'!'+stripblanks(a)+'!'
a=['  123   ',' xyz']
strcat(stripblanks(a))
<< strings Strings strncpy >>