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 - Русский
Scilabヘルプ >> Strings > strcspn

strcspn

lengths from the beginning of texts until a character among those prohibited

Syntax

res = strcspn(string_one, string_two)

引数

string_one

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

string_two

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

res

行列.

説明

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

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

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

参照

  • strspn — lengths of the beginning of texts as long as characters are among those allowed
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jan 03 14:37:53 CET 2022