Scilab 5.5.1
      
      - Ajuda do Scilab
- Cadeias de Caracteres (Strings)
- ascii
- blanks
- char
- convstr
- emptystr
- eval
- evstr
- grep
- isalphanum
- isascii
- isdigit
- isletter
- isnum
- justify
- length
- part
- regexp
- sci2exp
- strcat
- strchr
- strcmp
- strcmpi
- strcspn
- strindex
- string
- strings
- stripblanks
- strncpy
- strrchr
- strrev
- strsplit
- strspn
- strstr
- strsubst
- strtod
- strtok
- tokenpos
- tokens
- asciimat
Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
strtok
divide um string em fichas (tokens)
Seqüência de Chamamento
res = strtok(str,delimiters)
Parâmetros
- str
- string 
- delimiters
- string 
- res
- string 
Descrição
res = strtok(str,delimiters) divide str em
            fichas, que são seqüências de caracteres contíguos separados por qualquer
            um dos caracteres que fazem parte do string delimiters (delimiters =
            delimitadores).
Exemplos
TOKENS = []; token = strtok("Um string de ,,fichas e algumas fichas mais"," ,"); TOKENS = [TOKENS,token]; while( token <> '' ) token = strtok(" ,"); TOKENS = [TOKENS,token]; end disp(TOKENS);
Ver Também
| Report an issue | ||
| << strtod | Cadeias de Caracteres (Strings) | tokenpos >> |