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

« back to all changes in this revision

Viewing changes to modules/string/help/en_US/strtok.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:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="strtok">
14
 
  <refnamediv>
15
 
    <refname>strtok</refname>
16
 
    <refpurpose>Split string into tokens</refpurpose>
17
 
  </refnamediv>
18
 
  <refsynopsisdiv>
19
 
    <title>Calling Sequence</title>
20
 
    <synopsis>res = strtok(str,delimiters)</synopsis>
21
 
  </refsynopsisdiv>
22
 
  <refsection>
23
 
    <title>Arguments</title>
24
 
    <variablelist>
25
 
      <varlistentry>
26
 
        <term>str</term>
27
 
        <listitem>
28
 
          <para>A character string</para>
29
 
        </listitem>
30
 
      </varlistentry>
31
 
      <varlistentry>
32
 
        <term>delimiters</term>
33
 
        <listitem>
34
 
          <para>A character string</para>
35
 
        </listitem>
36
 
      </varlistentry>
37
 
      <varlistentry>
38
 
        <term>res</term>
39
 
        <listitem>
40
 
          <para>A character string</para>
41
 
        </listitem>
42
 
      </varlistentry>
43
 
    </variablelist>
44
 
  </refsection>
45
 
  <refsection>
46
 
    <title>Description</title>
47
 
    <para>
48
 
      <literal>res = strtok(str,delimiters)</literal>  sequence of calls to this function split str into tokens, which are sequences of contiguous characters spearated by any of the characters that are part of delimiters.
49
 
    </para>
50
 
  </refsection>
51
 
  <refsection>
52
 
    <title>Examples</title>
53
 
    <programlisting role="example"><![CDATA[ 
 
14
    <refnamediv>
 
15
        <refname>strtok</refname>
 
16
        <refpurpose>Split string into tokens</refpurpose>
 
17
    </refnamediv>
 
18
    <refsynopsisdiv>
 
19
        <title>Calling Sequence</title>
 
20
        <synopsis>res = strtok(str,delimiters)</synopsis>
 
21
    </refsynopsisdiv>
 
22
    <refsection>
 
23
        <title>Arguments</title>
 
24
        <variablelist>
 
25
            <varlistentry>
 
26
                <term>str</term>
 
27
                <listitem>
 
28
                    <para>A character string</para>
 
29
                </listitem>
 
30
            </varlistentry>
 
31
            <varlistentry>
 
32
                <term>delimiters</term>
 
33
                <listitem>
 
34
                    <para>A character string</para>
 
35
                </listitem>
 
36
            </varlistentry>
 
37
            <varlistentry>
 
38
                <term>res</term>
 
39
                <listitem>
 
40
                    <para>A character string</para>
 
41
                </listitem>
 
42
            </varlistentry>
 
43
        </variablelist>
 
44
    </refsection>
 
45
    <refsection>
 
46
        <title>Description</title>
 
47
        <para>
 
48
            <literal>res = strtok(str,delimiters)</literal>  sequence of calls to this function split str into tokens, which are sequences of contiguous characters spearated by any of the characters that are part of delimiters.
 
49
        </para>
 
50
    </refsection>
 
51
    <refsection>
 
52
        <title>Examples</title>
 
53
        <programlisting role="example"><![CDATA[ 
54
54
TOKENS = [];
55
55
token = strtok("A string of ,,tokens and some  more tokens"," ,");
56
56
TOKENS = [TOKENS,token];
60
60
end
61
61
disp(TOKENS);
62
62
 ]]></programlisting>
63
 
  </refsection>
64
 
  <refsection role="see also">
65
 
    <title>See Also</title>
66
 
    <simplelist type="inline">
67
 
      <member>
68
 
        <link linkend="strrchr">strrchr</link>
69
 
      </member>
70
 
      <member>
71
 
        <link linkend="strchr">strchr</link>
72
 
      </member>
73
 
    </simplelist>
74
 
  </refsection>
 
63
    </refsection>
 
64
    <refsection role="see also">
 
65
        <title>See Also</title>
 
66
        <simplelist type="inline">
 
67
            <member>
 
68
                <link linkend="strrchr">strrchr</link>
 
69
            </member>
 
70
            <member>
 
71
                <link linkend="strchr">strchr</link>
 
72
            </member>
 
73
        </simplelist>
 
74
    </refsection>
75
75
</refentry>