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

Change language to:
English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Ajuda do Scilab >> Cadeias de Caracteres (Strings) > tokens

tokens

retorna as fichas (tokens) de um string

Seqüência de Chamamento

T=tokens(str [,delimiter])

Parâmetros

str

string, o local de procura dos tokens

delimiter

(opcional) um caractere ou um vetor de caracteres. Os delimitadores de fichas.

T

vetor coluna de fichas encontradas

Descrição

T=tokens(str [,delimiter]) procura pelos tokens inclusos no string str. O padrão de delimiter é [" ",<Tab>] onde <Tab> é ascii(9).

Exemplos

tokens('Isto é um string')

tokens('SCI/demos/scicos','/')

tokens('y=a+b*2',['=','+','*'])

Ver Também

  • strindex — procura posição de um string em outro
  • tokenpos — retorna as posições das fichas (token) em um string
Report an issue
<< tokenpos Cadeias de Caracteres (Strings) Manipulação de Arquivos de Som >>

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:
Tue Feb 14 15:09:46 CET 2017