Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.1 - 日本語

Change language to:
English - Français - Português

Please note that the recommended version of Scilab is 2025.0.0. 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

<< strtod Strings tokenpos >>

Copyright (c) 2022-2024 (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:
Thu Mar 03 11:00:59 CET 2011