Scilab-Branch-5.3-GIT
      
      - Ajuda Scilab
- Cadeias de Caracteres (Strings)
- ascii
- blanks
- code2str
- convstr
- emptystr
- eval
- evstr
- grep
- isalphanum
- isascii
- isdigit
- isletter
- isnum
- justify
- length
- part
- regexp
- sci2exp
- str2code
- strcat
- strchr
- strcmp
- strcmpi
- strcspn
- strindex
- string
- strings
- stripblanks
- strncpy
- strrchr
- strrev
- strsplit
- strspn
- strstr
- strsubst
- strtod
- strtok
- tokenpos
- tokens
- tree2code
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
| << strtod | Cadeias de Caracteres (Strings) | tokenpos >> |