13
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns4="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="strspn" xml:lang="en">
15
<refname>strspn</refname>
16
<refpurpose>Get span of character set in string</refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>res = strspn(str1,str2)</synopsis>
23
<title>Arguments</title>
28
<para>A character string or matrix of character strings</para>
34
<para>A character string or matrix of character strings</para>
46
<title>Description</title>
48
<literal>res = strspn(str1,str2)</literal> Returns the length of the
49
initial portion of str1 which consists only of characters that are part of
52
<para>str1 must have same dimensions than str2 or str1 must be a string. </para>
55
<title>Examples</title>
56
<programlisting role="example"><![CDATA[
15
<refname>strspn</refname>
16
<refpurpose>Get span of character set in string</refpurpose>
19
<title>Calling Sequence</title>
20
<synopsis>res = strspn(str1,str2)</synopsis>
23
<title>Arguments</title>
28
<para>A character string or matrix of character strings</para>
34
<para>A character string or matrix of character strings</para>
46
<title>Description</title>
48
<literal>res = strspn(str1,str2)</literal> Returns the length of the
49
initial portion of str1 which consists only of characters that are part of
52
<para>str1 must have same dimensions than str2 or str1 must be a string. </para>
55
<title>Examples</title>
56
<programlisting role="example"><![CDATA[
57
57
i = strspn("129th","1234567890");
58
58
mprintf ("The length of initial number is %d.\n",i);
59
59
i = strspn(["129th","130th"],["1234567890","130t"])
60
60
]]></programlisting>
62
<refsection role="see also">
63
<title>See Also</title>
64
<simplelist type="inline">
66
<link linkend="strcspn">strcspn</link>
62
<refsection role="see also">
63
<title>See Also</title>
64
<simplelist type="inline">
66
<link linkend="strcspn">strcspn</link>