Scilab 5.5.1
- Aide de Scilab
- Chaînes de caractères
- asciimat
- eval
- evstr
- isnum
- string
- ascii
- blanks
- char
- convstr
- emptystr
- grep
- isalphanum
- isascii
- isdigit
- isletter
- justify
- length
- part
- regexp
- sci2exp
- strcat
- strchr
- strcmp
- strcmpi
- strcspn
- strindex
- strings
- stripblanks
- strncpy
- strrchr
- strrev
- strsplit
- strspn
- strstr
- strsubst
- strtod
- strtok
- tokenpos
- tokens
Please note that the recommended version of Scilab is 2024.1.0. This page might be outdated.
See the recommended documentation of this function
strtok
split string into tokens
Calling Sequence
res = strtok(str, delimiters)
Arguments
- str
a character string.
- delimiters
a character string.
- res
a character string.
Description
res = strtok(str, delimiters)
sequence of calls to
this function split str
into tokens, which are
sequences of contiguous characters separated by any of the
characters that are part of delimiters
.
Examples
TOKENS = []; token = strtok("A string of ,,tokens and some more tokens"," r,"); TOKENS = [TOKENS,token]; while( token <> '' ) token = strtok(" r,"); TOKENS = [TOKENS,token]; end disp(TOKENS);
See Also
Report an issue | ||
<< strtod | Chaînes de caractères | tokenpos >> |