File: st-sgml-ref-api.xml

package info (click to toggle)
streamtuner 0.99.99-15
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 5,220 kB
  • ctags: 2,980
  • sloc: ansic: 27,119; sh: 8,206; xml: 4,811; makefile: 444; python: 366
file content (88 lines) | stat: -rw-r--r-- 3,184 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<refentry id="streamtuner-st-sgml-ref-api">
<refmeta>
<refentrytitle>st-sgml-ref</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>STREAMTUNER Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>st-sgml-ref</refname><refpurpose>functions for expanding SGML character references.</refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>

<synopsis>



<link linkend="char">char</link>*       <link linkend="st-sgml-ref-expand">st_sgml_ref_expand</link>              (const <link linkend="char">char</link> *str);
<link linkend="char">char</link>*       <link linkend="st-sgml-ref-expand-len">st_sgml_ref_expand_len</link>          (const <link linkend="char">char</link> *str,
                                             <link linkend="int">int</link> len);
</synopsis>
</refsynopsisdiv>









<refsect1>
<title>Description</title>
<para>

</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="st-sgml-ref-expand"/>st_sgml_ref_expand ()</title>
<indexterm><primary>st_sgml_ref_expand</primary></indexterm><programlisting><link linkend="char">char</link>*       st_sgml_ref_expand              (const <link linkend="char">char</link> *str);</programlisting>
<para>
Parses <parameter>str</parameter>, expanding its SGML character references and XHTML
character entities. See <link linkend="st-sgml-ref-expand-len"><function>st_sgml_ref_expand_len()</function></link>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>str</parameter>&nbsp;:</term>
<listitem><simpara> the nul-terminated string to parse.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the expansion of <parameter>str</parameter>. The string should be freed
when no longer needed.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="st-sgml-ref-expand-len"/>st_sgml_ref_expand_len ()</title>
<indexterm><primary>st_sgml_ref_expand_len</primary></indexterm><programlisting><link linkend="char">char</link>*       st_sgml_ref_expand_len          (const <link linkend="char">char</link> *str,
                                             <link linkend="int">int</link> len);</programlisting>
<para>
Parses <parameter>str</parameter>, expanding its SGML character references and XHTML
character entities.
</para>
<para>
Numerical SGML character references as well as XHTML entities are
supported. Unsupported entities will be inserted verbatim into the
result.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>str</parameter>&nbsp;:</term>
<listitem><simpara> the string to parse.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>len</parameter>&nbsp;:</term>
<listitem><simpara> the length of <parameter>str</parameter>, or -1 if <parameter>str</parameter> is nul-terminated.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis> :</term><listitem><simpara> the expansion of <parameter>str</parameter>. The string should be freed
when no longer needed.
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>