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 help >> Strings > strtok

strtok

文字列をトークンに分割

呼び出し手順

res = strtok(str,delimiters)

パラメータ

str

文字列

delimiters

文字列

res

文字列

説明

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

TOKENS = [];
token = strtok("A string of ,,tokens and some  more tokens"," ,");
TOKENS = [TOKENS,token];
while( token <> '' )
  token = strtok(" ,");
  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:
Mon Oct 01 17:40:36 CEST 2012