Scilab-Branch-6.1-GIT
- Scilabヘルプ
- Strings
- ascii
- asciimat
- blanks
- char
- convstr
- emptystr
- evstr
- grep
- isalphanum
- isascii
- isdigit
- isletter
- isnum
- justify
- length
- part
- prettyprint
- regexp
- sci2exp
- strcat
- strchr
- strcmp
- strcspn
- strindex
- string
- stripblanks
- strncpy
- strrchr
- strrev
- strsplit
- strspn
- strstr
- strsubst
- strtod
- strtok
- tokenpos
- tokens
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
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
Report an issue | ||
<< strcmp | Strings | strindex >> |