File: gsf-Text.html

package info (click to toggle)
libgsf 1.11.1-1sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,588 kB
  • ctags: 1,947
  • sloc: ansic: 12,552; sh: 8,448; xml: 5,456; makefile: 371
file content (40 lines) | stat: -rw-r--r-- 6,426 bytes parent folder | download
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
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Text</title><meta name="generator" content="DocBook XSL Stylesheets V1.66.1"><link rel="start" href="index.html" title="GSF Reference Manual"><link rel="up" href="parsers.html" title="Stream Parsers"><link rel="prev" href="parsers.html" title="Stream Parsers"><link rel="next" href="gsf-XML-and-libxml.html" title="XML and libxml"><meta name="generator" content="GTK-Doc V1.2 (XML mode)"><link rel="stylesheet" href="style.css" type="text/css"><link rel="part" href="into.html" title="PartI.GSF Overview"><link rel="part" href="api.html" title="PartII.API Reference"><link rel="chapter" href="io.html" title="Basic Input/Output"><link rel="chapter" href="sources.html" title="Stream Sources"><link rel="chapter" href="parsers.html" title="Stream Parsers"><link rel="chapter" href="misc.html" title="Miscellaneous"><link rel="index" href="ix01.html" title="Index"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="parsers.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="parsers.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GSF Reference Manual</th><td><a accesskey="n" href="gsf-XML-and-libxml.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="gsf-Text"></a><div class="titlepage"></div><div class="refnamediv"><table width="100%"><tr><td valign="top"><h2><span class="refentrytitle">Text</span></h2><p>Text &#8212; </p></td><td valign="top" align="right"></td></tr></table></div><div class="refsynopsisdiv"><h2>Synopsis</h2><a name="GsfInputTextline"></a><pre class="synopsis">



            <a href="gsf-Text.html#GsfInputTextline-struct">GsfInputTextline</a>;
<a href="gsf-Input-from-unstructured-files.html#GsfInput">GsfInput</a>*   <a href="gsf-Text.html#gsf-input-textline-new">gsf_input_textline_new</a>          (<a href="gsf-Input-from-unstructured-files.html#GsfInput">GsfInput</a> *source);
unsigned char* <a href="gsf-Text.html#gsf-input-textline-ascii-gets">gsf_input_textline_ascii_gets</a>
                                            (<a href="gsf-Text.html#GsfInputTextline">GsfInputTextline</a> *input);
guint8*     <a href="gsf-Text.html#gsf-input-textline-utf8-gets">gsf_input_textline_utf8_gets</a>    (<a href="gsf-Text.html#GsfInputTextline">GsfInputTextline</a> *input);

</pre></div><div class="refsect1" lang="en"><a name="id2543547"></a><h2>Object Hierarchy</h2><pre class="synopsis">

  GObject
   +----<a href="gsf-Input-from-unstructured-files.html#GsfInput">GsfInput</a>
         +----GsfInputTextline
</pre></div><div class="refsect1" lang="en"><a name="id2543574"></a><h2>Description</h2><p>

</p></div><div class="refsect1" lang="en"><a name="id2543583"></a><h2>Details</h2><div class="refsect2" lang="en"><a name="id2543589"></a><h3><a name="GsfInputTextline-struct"></a>GsfInputTextline</h3><a class="indexterm" name="id2543601"></a><pre class="programlisting">typedef struct _GsfInputTextline GsfInputTextline;</pre><p>

</p></div><hr><div class="refsect2" lang="en"><a name="id2543617"></a><h3><a name="gsf-input-textline-new"></a>gsf_input_textline_new ()</h3><a class="indexterm" name="id2543627"></a><pre class="programlisting"><a href="gsf-Input-from-unstructured-files.html#GsfInput">GsfInput</a>*   gsf_input_textline_new          (<a href="gsf-Input-from-unstructured-files.html#GsfInput">GsfInput</a> *source);</pre><p>
NOTE : adds a reference to <i class="parameter"><tt>source</tt></i></p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>source</tt></i>:</span></td><td> in some combination of ascii and utf8
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>a new file or NULL.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2543693"></a><h3><a name="gsf-input-textline-ascii-gets"></a>gsf_input_textline_ascii_gets ()</h3><a class="indexterm" name="id2543705"></a><pre class="programlisting">unsigned char* gsf_input_textline_ascii_gets
                                            (<a href="gsf-Text.html#GsfInputTextline">GsfInputTextline</a> *input);</pre><p>
A utility routine to read things line by line from the underlying source.
Trailing newlines and carriage returns are stripped, and the resultant buffer
can be edited.</p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>input</tt></i>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the string read, or NULL on eof.
</td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><a name="id2543770"></a><h3><a name="gsf-input-textline-utf8-gets"></a>gsf_input_textline_utf8_gets ()</h3><a class="indexterm" name="id2543782"></a><pre class="programlisting">guint8*     gsf_input_textline_utf8_gets    (<a href="gsf-Text.html#GsfInputTextline">GsfInputTextline</a> *input);</pre><p>
A utility routine to read things line by line from the underlying source.
Trailing newlines and carriage returns are stripped, and the resultant buffer
can be edited.</p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>input</tt></i>:</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span>:</span></td><td>the string read, or NULL on eof.
</td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="parsers.html"><b>&lt;&lt;Stream Parsers</b></a></td><td align="right"><a accesskey="n" href="gsf-XML-and-libxml.html"><b>XML and libxml&gt;&gt;</b></a></td></tr></table></body></html>