Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.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 manual >> Strings > strcspn

strcspn

文字列の中の文字までの間隔を得る

Calling Sequence

res = strcspn(string_one,string_two)

パラメータ

string_one

文字列または文字列の行列

string_two

文字列または文字列の行列

res

行列.

説明

res = strcspn(string_one,string_two) は, string_oneの中で string_twoの一部の文字のどれかが最初に現れる位置を 探し,それが最初に現れるまでのstring_oneの文字数を返します.

string_one はstring_twoと同じ次元で,string_one は文字列である必要があります.

strcspn("fcba73","1234567890")
strcspn(["fcba73","f7cba73"],"1234567890")
strcspn(["fcba73","f7cba73"],["312","34567890"])

参照

<< strcmpi Strings strindex >>

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:
Wed Jan 26 16:25:13 CET 2011