~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/string/help/en_US/strspn.xml

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 *
12
12
 -->
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">
14
 
  <refnamediv>
15
 
    <refname>strspn</refname>
16
 
    <refpurpose>Get span of character set in string</refpurpose>
17
 
  </refnamediv>
18
 
  <refsynopsisdiv>
19
 
    <title>Calling Sequence</title>
20
 
    <synopsis>res = strspn(str1,str2)</synopsis>
21
 
  </refsynopsisdiv>
22
 
  <refsection>
23
 
    <title>Arguments</title>
24
 
    <variablelist>
25
 
      <varlistentry>
26
 
        <term>str1</term>
27
 
        <listitem>
28
 
          <para>A character string or matrix of character strings</para>
29
 
        </listitem>
30
 
      </varlistentry>
31
 
      <varlistentry>
32
 
        <term>str2</term>
33
 
        <listitem>
34
 
          <para>A character string or matrix of character strings</para>
35
 
        </listitem>
36
 
      </varlistentry>
37
 
      <varlistentry>
38
 
        <term>res</term>
39
 
        <listitem>
40
 
          <para>matrix.</para>
41
 
        </listitem>
42
 
      </varlistentry>
43
 
    </variablelist>
44
 
  </refsection>
45
 
  <refsection>
46
 
    <title>Description</title>
47
 
    <para>
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
50
 
      str2.
51
 
    </para>
52
 
    <para>str1 must have same dimensions than str2 or str1 must be a string. </para>
53
 
  </refsection>
54
 
  <refsection>
55
 
    <title>Examples</title>
56
 
    <programlisting role="example"><![CDATA[ 
 
14
    <refnamediv>
 
15
        <refname>strspn</refname>
 
16
        <refpurpose>Get span of character set in string</refpurpose>
 
17
    </refnamediv>
 
18
    <refsynopsisdiv>
 
19
        <title>Calling Sequence</title>
 
20
        <synopsis>res = strspn(str1,str2)</synopsis>
 
21
    </refsynopsisdiv>
 
22
    <refsection>
 
23
        <title>Arguments</title>
 
24
        <variablelist>
 
25
            <varlistentry>
 
26
                <term>str1</term>
 
27
                <listitem>
 
28
                    <para>A character string or matrix of character strings</para>
 
29
                </listitem>
 
30
            </varlistentry>
 
31
            <varlistentry>
 
32
                <term>str2</term>
 
33
                <listitem>
 
34
                    <para>A character string or matrix of character strings</para>
 
35
                </listitem>
 
36
            </varlistentry>
 
37
            <varlistentry>
 
38
                <term>res</term>
 
39
                <listitem>
 
40
                    <para>matrix.</para>
 
41
                </listitem>
 
42
            </varlistentry>
 
43
        </variablelist>
 
44
    </refsection>
 
45
    <refsection>
 
46
        <title>Description</title>
 
47
        <para>
 
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
 
50
            str2.
 
51
        </para>
 
52
        <para>str1 must have same dimensions than str2 or str1 must be a string. </para>
 
53
    </refsection>
 
54
    <refsection>
 
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>
61
 
  </refsection>
62
 
  <refsection role="see also">
63
 
    <title>See Also</title>
64
 
    <simplelist type="inline">
65
 
      <member>
66
 
        <link linkend="strcspn">strcspn</link>
67
 
      </member>
68
 
    </simplelist>
69
 
  </refsection>
 
61
    </refsection>
 
62
    <refsection role="see also">
 
63
        <title>See Also</title>
 
64
        <simplelist type="inline">
 
65
            <member>
 
66
                <link linkend="strcspn">strcspn</link>
 
67
            </member>
 
68
        </simplelist>
 
69
    </refsection>
70
70
</refentry>