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

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ヘルプ >> 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

Report an issue
<< 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:
Tue Feb 25 08:53:23 CET 2020