Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.1.0 - Português


stripblanks

retira espaços em branco (e tabulações) no início ou no fim de strings

Seqüência de Chamamento

txt=stripblanks(txt[,tabs])

Parâmetros

txt

um string ou uma matriz de strings

tabs

se TRUE, retira também tabulações (o valor padrão é FALSE)

Descrição

stripblanks retira espaços em branco (e tabulações) no início ou no fim de strings.

Exemplos

a='  123   ';
'!'+a+'!'
'!'+stripblanks(a)+'!'
a=['  123   ',' xyz']
strcat(stripblanks(a))
Report an issue
<< string Cadeias de Caracteres (Strings) strncpy >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon May 22 12:42:14 CEST 2023