This file is indexed.

/usr/share/gtk-doc/html/librdf/redland-unicode.html is in librdf0-dev 1.0.17-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Unicode</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="Redland RDF Library Manual">
<link rel="up" href="reference-manual.html" title="Part II. Reference Manual">
<link rel="prev" href="redland-stream.html" title="Stream of triples (#librdf_statement).">
<link rel="next" href="redland-uri.html" title="URI">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="redland-stream.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="reference-manual.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">Redland RDF Library Manual</th>
<td><a accesskey="n" href="redland-uri.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#redland-unicode.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#redland-unicode.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="redland-unicode"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="redland-unicode.top_of_page"></a>Unicode</span></h2>
<p>Unicode — Unicode utility functions.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="redland-unicode.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">typedef             <a class="link" href="redland-unicode.html#librdf-unichar" title="librdf_unichar">librdf_unichar</a>;
<span class="returnvalue">int</span>                 <a class="link" href="redland-unicode.html#librdf-unicode-char-to-utf8" title="librdf_unicode_char_to_utf8 ()">librdf_unicode_char_to_utf8</a>         (<em class="parameter"><code><a class="link" href="redland-unicode.html#librdf-unichar" title="librdf_unichar"><span class="type">librdf_unichar</span></a> c</code></em>,
                                                         <em class="parameter"><code>unsigned <span class="type">char</span> *output</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> length</code></em>);
<span class="returnvalue">int</span>                 <a class="link" href="redland-unicode.html#librdf-utf8-to-unicode-char" title="librdf_utf8_to_unicode_char ()">librdf_utf8_to_unicode_char</a>         (<em class="parameter"><code><a class="link" href="redland-unicode.html#librdf-unichar" title="librdf_unichar"><span class="type">librdf_unichar</span></a> *output</code></em>,
                                                         <em class="parameter"><code>const unsigned <span class="type">char</span> *input</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> length</code></em>);
unsigned <span class="returnvalue">char</span> *     <a class="link" href="redland-unicode.html#librdf-utf8-to-latin1" title="librdf_utf8_to_latin1 ()">librdf_utf8_to_latin1</a>               (<em class="parameter"><code>const unsigned <span class="type">char</span> *input</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> length</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *output_length</code></em>);
unsigned <span class="returnvalue">char</span> *     <a class="link" href="redland-unicode.html#librdf-utf8-to-latin1-2" title="librdf_utf8_to_latin1_2 ()">librdf_utf8_to_latin1_2</a>             (<em class="parameter"><code>const unsigned <span class="type">char</span> *input</code></em>,
                                                         <em class="parameter"><code><span class="type">size_t</span> length</code></em>,
                                                         <em class="parameter"><code>unsigned <span class="type">char</span> discard</code></em>,
                                                         <em class="parameter"><code><span class="type">size_t</span> *output_length</code></em>);
unsigned <span class="returnvalue">char</span> *     <a class="link" href="redland-unicode.html#librdf-latin1-to-utf8" title="librdf_latin1_to_utf8 ()">librdf_latin1_to_utf8</a>               (<em class="parameter"><code>const unsigned <span class="type">char</span> *input</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> length</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *output_length</code></em>);
unsigned <span class="returnvalue">char</span> *     <a class="link" href="redland-unicode.html#librdf-latin1-to-utf8-2" title="librdf_latin1_to_utf8_2 ()">librdf_latin1_to_utf8_2</a>             (<em class="parameter"><code>const unsigned <span class="type">char</span> *input</code></em>,
                                                         <em class="parameter"><code><span class="type">size_t</span> length</code></em>,
                                                         <em class="parameter"><code><span class="type">size_t</span> *output_length</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="redland-unicode.html#librdf-utf8-print" title="librdf_utf8_print ()">librdf_utf8_print</a>                   (<em class="parameter"><code>const unsigned <span class="type">char</span> *input</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> length</code></em>,
                                                         <em class="parameter"><code><span class="type">FILE</span> *stream</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="redland-unicode.description"></a><h2>Description</h2>
<p>
Utility functions to convert between UTF-8, full Unicode and Latin-1.
Redland uses UTF-8 for all string formats (except where noted) but
these may need to be converted to other Unicode encodings or downgraded
with loss to Latin-1.
</p>
</div>
<div class="refsect1">
<a name="redland-unicode.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="librdf-unichar"></a><h3>librdf_unichar</h3>
<pre class="programlisting">typedef raptor_unichar librdf_unichar;
</pre>
<p>
Unicode codepoint.
</p>
</div>
<hr>
<div class="refsect2">
<a name="librdf-unicode-char-to-utf8"></a><h3>librdf_unicode_char_to_utf8 ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 librdf_unicode_char_to_utf8         (<em class="parameter"><code><a class="link" href="redland-unicode.html#librdf-unichar" title="librdf_unichar"><span class="type">librdf_unichar</span></a> c</code></em>,
                                                         <em class="parameter"><code>unsigned <span class="type">char</span> *output</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> length</code></em>);</pre>
<p>
Convert a Unicode character to UTF-8 encoding.
</p>
<p>
<em class="parameter"><code>deprecated</code></em>: Use <code class="function">raptor_unicode_utf8_string_put_char()</code> noting that
the length argument is a size_t.
</p>
<p>
If buffer is NULL, then will calculate the length rather than
perform it.  This can be used by the caller to allocate space
and then re-call this function with the new buffer.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>c</code></em> :</span></p></td>
<td>Unicode character</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>output</code></em> :</span></p></td>
<td>UTF-8 string buffer or NULL</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td>buffer size (will be truncated to size_t)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>bytes written to output buffer or &lt;0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-utf8-to-unicode-char"></a><h3>librdf_utf8_to_unicode_char ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>                 librdf_utf8_to_unicode_char         (<em class="parameter"><code><a class="link" href="redland-unicode.html#librdf-unichar" title="librdf_unichar"><span class="type">librdf_unichar</span></a> *output</code></em>,
                                                         <em class="parameter"><code>const unsigned <span class="type">char</span> *input</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> length</code></em>);</pre>
<p>
Convert an UTF-8 encoded buffer to a Unicode character.
</p>
<p>
<em class="parameter"><code>deprecated</code></em>: Use <code class="function">raptor_unicode_utf8_string_get_char()</code> noting that
the arg order has changed to input, length (a size_t), output.
</p>
<p>
If <em class="parameter"><code>output</code></em> is NULL, then will calculate the number of bytes that
will be used from the input buffer and not perform the conversion.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>output</code></em> :</span></p></td>
<td>Pointer to the Unicode character or NULL</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>input</code></em> :</span></p></td>
<td>UTF-8 string buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td>buffer size (will be truncated to size_t)</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>bytes used from input buffer or &lt;0 on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-utf8-to-latin1"></a><h3>librdf_utf8_to_latin1 ()</h3>
<pre class="programlisting">unsigned <span class="returnvalue">char</span> *     librdf_utf8_to_latin1               (<em class="parameter"><code>const unsigned <span class="type">char</span> *input</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> length</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *output_length</code></em>);</pre>
<p>
Convert a UTF-8 string to ISO Latin-1.
</p>
<p>
Converts the given UTF-8 string to the ISO Latin-1 subset of
Unicode (characters 0x00-0xff), discarding any out of range
characters.
</p>
<p>
<em class="parameter"><code>deprecated</code></em> for <a class="link" href="redland-unicode.html#librdf-utf8-to-latin1-2" title="librdf_utf8_to_latin1_2 ()"><code class="function">librdf_utf8_to_latin1_2()</code></a> that takes and returns
size_t sizes and allows replacing of out of range characters.
</p>
<p>
If <em class="parameter"><code>output_length</code></em> is not NULL, the returned string length
will be stored there.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>input</code></em> :</span></p></td>
<td>UTF-8 string buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td>buffer size (will be truncated to size_t)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>output_length</code></em> :</span></p></td>
<td>Pointer to variable to store resulting string length or NULL</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>pointer to new ISO Latin-1 string or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-utf8-to-latin1-2"></a><h3>librdf_utf8_to_latin1_2 ()</h3>
<pre class="programlisting">unsigned <span class="returnvalue">char</span> *     librdf_utf8_to_latin1_2             (<em class="parameter"><code>const unsigned <span class="type">char</span> *input</code></em>,
                                                         <em class="parameter"><code><span class="type">size_t</span> length</code></em>,
                                                         <em class="parameter"><code>unsigned <span class="type">char</span> discard</code></em>,
                                                         <em class="parameter"><code><span class="type">size_t</span> *output_length</code></em>);</pre>
<p>
Convert a UTF-8 string to ISO Latin-1.
</p>
<p>
Converts the given UTF-8 string to the ISO Latin-1 subset of
Unicode (characters 0x00-0xff).  Out of range characters are
replaced with <em class="parameter"><code>discard</code></em> unless it is NUL (\0).
</p>
<p>
If <em class="parameter"><code>output_length</code></em> is not NULL, the returned string length will be
stored there.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>input</code></em> :</span></p></td>
<td>UTF-8 string buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td>buffer size</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>discard</code></em> :</span></p></td>
<td>character to use to replace out of range characters or NUL (\0) to discard</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>output_length</code></em> :</span></p></td>
<td>Pointer to variable to store resulting string length or NULL</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>pointer to new ISO Latin-1 string or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-latin1-to-utf8"></a><h3>librdf_latin1_to_utf8 ()</h3>
<pre class="programlisting">unsigned <span class="returnvalue">char</span> *     librdf_latin1_to_utf8               (<em class="parameter"><code>const unsigned <span class="type">char</span> *input</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> length</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> *output_length</code></em>);</pre>
<p>
Convert an ISO Latin-1 encoded string to UTF-8.
</p>
<p>
Converts the given ISO Latin-1 string to an UTF-8 encoded string
representing the same content.  This is lossless.
</p>
<p>
<em class="parameter"><code>deprecated</code></em> for <a class="link" href="redland-unicode.html#librdf-latin1-to-utf8-2" title="librdf_latin1_to_utf8_2 ()"><code class="function">librdf_latin1_to_utf8_2()</code></a> that takes and returns
size_t sizes.
</p>
<p>
If <em class="parameter"><code>output_length</code></em> is not NULL, the returned string length will be
stored there.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>input</code></em> :</span></p></td>
<td>ISO Latin-1 string buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td>buffer size (will be truncated to size_t)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>output_length</code></em> :</span></p></td>
<td>Pointer to variable to store resulting string length or NULL</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>pointer to new UTF-8 string or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-latin1-to-utf8-2"></a><h3>librdf_latin1_to_utf8_2 ()</h3>
<pre class="programlisting">unsigned <span class="returnvalue">char</span> *     librdf_latin1_to_utf8_2             (<em class="parameter"><code>const unsigned <span class="type">char</span> *input</code></em>,
                                                         <em class="parameter"><code><span class="type">size_t</span> length</code></em>,
                                                         <em class="parameter"><code><span class="type">size_t</span> *output_length</code></em>);</pre>
<p>
Convert an ISO Latin-1 encoded string to UTF-8.
</p>
<p>
Converts the given ISO Latin-1 string to an UTF-8 encoded string
representing the same content.  This is lossless.
</p>
<p>
If <em class="parameter"><code>output_length</code></em> is not NULL, the returned string length will be
stored there.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>input</code></em> :</span></p></td>
<td>ISO Latin-1 string buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td>buffer size</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>output_length</code></em> :</span></p></td>
<td>Pointer to variable to store resulting string length or NULL</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>pointer to new UTF-8 string or NULL on failure</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="librdf-utf8-print"></a><h3>librdf_utf8_print ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                librdf_utf8_print                   (<em class="parameter"><code>const unsigned <span class="type">char</span> *input</code></em>,
                                                         <em class="parameter"><code><span class="type">int</span> length</code></em>,
                                                         <em class="parameter"><code><span class="type">FILE</span> *stream</code></em>);</pre>
<p>
Print a UTF-8 string to a stream.
</p>
<p>
Pretty prints the UTF-8 string in a pseudo-C character
format like \u<span class="emphasis"><em>hex digits</em></span> when the characters fail
the <code class="function">isprint()</code> test.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>input</code></em> :</span></p></td>
<td>UTF-8 string buffer</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td>buffer size (will be truncated to size_t)</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
<td>FILE* stream</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>