Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский

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

Scilabヘルプ >> Strings > strtok

strtok

文字列をトークンに分割

呼び出し手順

res = strtok(str, delimiters)

引数

str

文字列

delimiters

文字列

res

文字列

説明

res = strtok(str, delimiters) この関数を連続してコールすることにより, strをトークンに分割します. トークンはdelimitersの文字のどれかで 区切られた連続する一連の文字です.

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);

参照o

Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 13:58:25 CEST 2014