This file is indexed.

/usr/share/gtk-doc/html/libinftext-0.5/libinftext-0.5-inf-text-chunk.html is in libinfinity-0.5-doc 0.5.5-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
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>inf-text-chunk</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="libinftext-0.5 Reference Manual">
<link rel="up" href="ch01.html" title="libinftext API reference">
<link rel="prev" href="InfTextUser.html" title="InfTextUser">
<link rel="next" href="InfTextDefaultBuffer.html" title="InfTextDefaultBuffer">
<meta name="generator" content="GTK-Doc V1.19 (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="InfTextUser.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch01.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">libinftext-0.5 Reference Manual</th>
<td><a accesskey="n" href="InfTextDefaultBuffer.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libinftext-0.5-inf-text-chunk.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#libinftext-0.5-inf-text-chunk.description" class="shortcut">Description</a>
                   | 
                  <a href="#libinftext-0.5-inf-text-chunk.object-hierarchy" class="shortcut">Object Hierarchy</a>
</td></tr>
</table>
<div class="refentry">
<a name="libinftext-0.5-inf-text-chunk"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libinftext-0.5-inf-text-chunk.top_of_page"></a>inf-text-chunk</span></h2>
<p>inf-text-chunk</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libinftext-0.5-inf-text-chunk.synopsis"></a><h2>Synopsis</h2>
<a name="InfTextChunk"></a><pre class="synopsis">                    <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk-struct" title="InfTextChunk">InfTextChunk</a>;
struct              <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter">InfTextChunkIter</a>;
<a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="returnvalue">InfTextChunk</span></a> *      <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-new" title="inf_text_chunk_new ()">inf_text_chunk_new</a>                  (<em class="parameter"><code>const <span class="type">gchar</span> *encoding</code></em>);
<a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="returnvalue">InfTextChunk</span></a> *      <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-copy" title="inf_text_chunk_copy ()">inf_text_chunk_copy</a>                 (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-free" title="inf_text_chunk_free ()">inf_text_chunk_free</a>                 (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>);
const <span class="returnvalue">gchar</span> *       <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-get-encoding" title="inf_text_chunk_get_encoding ()">inf_text_chunk_get_encoding</a>         (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>);
<span class="returnvalue">guint</span>               <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-get-length" title="inf_text_chunk_get_length ()">inf_text_chunk_get_length</a>           (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>);
<a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="returnvalue">InfTextChunk</span></a> *      <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-substring" title="inf_text_chunk_substring ()">inf_text_chunk_substring</a>            (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> begin</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> length</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-insert-text" title="inf_text_chunk_insert_text ()">inf_text_chunk_insert_text</a>          (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> offset</code></em>,
                                                         <em class="parameter"><code><span class="type">gconstpointer</span> text</code></em>,
                                                         <em class="parameter"><code><span class="type">gsize</span> bytes</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> length</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> author</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-insert-chunk" title="inf_text_chunk_insert_chunk ()">inf_text_chunk_insert_chunk</a>         (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> offset</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *text</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-erase" title="inf_text_chunk_erase ()">inf_text_chunk_erase</a>                (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> begin</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> length</code></em>);
<span class="returnvalue">gpointer</span>            <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-get-text" title="inf_text_chunk_get_text ()">inf_text_chunk_get_text</a>             (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>,
                                                         <em class="parameter"><code><span class="type">gsize</span> *length</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-equal" title="inf_text_chunk_equal ()">inf_text_chunk_equal</a>                (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *other</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-iter-init" title="inf_text_chunk_iter_init ()">inf_text_chunk_iter_init</a>            (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a> *iter</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-iter-next" title="inf_text_chunk_iter_next ()">inf_text_chunk_iter_next</a>            (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a> *iter</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-iter-prev" title="inf_text_chunk_iter_prev ()">inf_text_chunk_iter_prev</a>            (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a> *iter</code></em>);
<span class="returnvalue">gconstpointer</span>       <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-iter-get-text" title="inf_text_chunk_iter_get_text ()">inf_text_chunk_iter_get_text</a>        (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a> *iter</code></em>);
<span class="returnvalue">guint</span>               <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-iter-get-length" title="inf_text_chunk_iter_get_length ()">inf_text_chunk_iter_get_length</a>      (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a> *iter</code></em>);
<span class="returnvalue">gsize</span>               <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-iter-get-bytes" title="inf_text_chunk_iter_get_bytes ()">inf_text_chunk_iter_get_bytes</a>       (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a> *iter</code></em>);
<span class="returnvalue">guint</span>               <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-iter-get-author" title="inf_text_chunk_iter_get_author ()">inf_text_chunk_iter_get_author</a>      (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a> *iter</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="libinftext-0.5-inf-text-chunk.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  GBoxed
   +----InfTextChunk
</pre>
</div>
<div class="refsect1">
<a name="libinftext-0.5-inf-text-chunk.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1">
<a name="libinftext-0.5-inf-text-chunk.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="InfTextChunk-struct"></a><h3>InfTextChunk</h3>
<pre class="programlisting">typedef struct _InfTextChunk InfTextChunk;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="InfTextChunkIter"></a><h3>struct InfTextChunkIter</h3>
<pre class="programlisting">struct InfTextChunkIter {
  InfTextChunk* chunk;
  GSequenceIter* first;
  GSequenceIter* second;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-chunk-new"></a><h3>inf_text_chunk_new ()</h3>
<pre class="programlisting"><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="returnvalue">InfTextChunk</span></a> *      inf_text_chunk_new                  (<em class="parameter"><code>const <span class="type">gchar</span> *encoding</code></em>);</pre>
<p>
Creates a new <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> with no initial content that holds text
in the given encoding. TODO: Allow binary data with <code class="literal">NULL</code> encoding.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>encoding</code></em> :</span></p></td>
<td>A content encoding, such as "UTF-8" or "LATIN1".</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A new <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-chunk-copy"></a><h3>inf_text_chunk_copy ()</h3>
<pre class="programlisting"><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="returnvalue">InfTextChunk</span></a> *      inf_text_chunk_copy                 (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>);</pre>
<p>
Returns a copy of <em class="parameter"><code>self</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A new <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-chunk-free"></a><h3>inf_text_chunk_free ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                inf_text_chunk_free                 (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>);</pre>
<p>
Frees a <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> allocated with <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-new" title="inf_text_chunk_new ()"><code class="function">inf_text_chunk_new()</code></a>,
<a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-copy" title="inf_text_chunk_copy ()"><code class="function">inf_text_chunk_copy()</code></a> or <a class="link" href="libinftext-0.5-inf-text-chunk.html#inf-text-chunk-substring" title="inf_text_chunk_substring ()"><code class="function">inf_text_chunk_substring()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-chunk-get-encoding"></a><h3>inf_text_chunk_get_encoding ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> *       inf_text_chunk_get_encoding         (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>);</pre>
<p>
Returns the character encoding in which the content of <em class="parameter"><code>self</code></em> is encoded.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The encoding of <em class="parameter"><code>self</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-chunk-get-length"></a><h3>inf_text_chunk_get_length ()</h3>
<pre class="programlisting"><span class="returnvalue">guint</span>               inf_text_chunk_get_length           (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>);</pre>
<p>
Returns the number of characters contained in <em class="parameter"><code>self</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The number of characters of <em class="parameter"><code>self</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-chunk-substring"></a><h3>inf_text_chunk_substring ()</h3>
<pre class="programlisting"><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="returnvalue">InfTextChunk</span></a> *      inf_text_chunk_substring            (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> begin</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> length</code></em>);</pre>
<p>
Returns a new <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> containing a substring of <em class="parameter"><code>self</code></em>, beginning
at character offset <em class="parameter"><code>begin</code></em> and <em class="parameter"><code>length</code></em> characters long.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>begin</code></em> :</span></p></td>
<td>A character offset into <em class="parameter"><code>self</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td>The length of the text to extract.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A new <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-chunk-insert-text"></a><h3>inf_text_chunk_insert_text ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                inf_text_chunk_insert_text          (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> offset</code></em>,
                                                         <em class="parameter"><code><span class="type">gconstpointer</span> text</code></em>,
                                                         <em class="parameter"><code><span class="type">gsize</span> bytes</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> length</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> author</code></em>);</pre>
<p>
Inserts text written by <em class="parameter"><code>author</code></em> into <em class="parameter"><code>self</code></em>. <em class="parameter"><code>text</code></em> is expected to be in
the chunk's encoding.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
<td>Character offset at which to insert text</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td>Text to insert.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>bytes</code></em> :</span></p></td>
<td>Number of bytes of <em class="parameter"><code>text</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td>Number of characters contained in <em class="parameter"><code>text</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>author</code></em> :</span></p></td>
<td>User that wrote <em class="parameter"><code>text</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-chunk-insert-chunk"></a><h3>inf_text_chunk_insert_chunk ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                inf_text_chunk_insert_chunk         (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> offset</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *text</code></em>);</pre>
<p>
Inserts <em class="parameter"><code>text</code></em> into <em class="parameter"><code>self</code></em> at position <em class="parameter"><code>offset</code></em>. <em class="parameter"><code>text</code></em> and <em class="parameter"><code>self</code></em> must
have the same encoding.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
<td>Character offset at which to insert text.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>text</code></em> :</span></p></td>
<td>Chunk to insert into <em class="parameter"><code>self</code></em>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-chunk-erase"></a><h3>inf_text_chunk_erase ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                inf_text_chunk_erase                (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> begin</code></em>,
                                                         <em class="parameter"><code><span class="type">guint</span> length</code></em>);</pre>
<p>
Removes <em class="parameter"><code>length</code></em> characters of <em class="parameter"><code>self</code></em>, starting from character offset <em class="parameter"><code>begin</code></em>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>begin</code></em> :</span></p></td>
<td>A character offset into <em class="parameter"><code>self</code></em>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td>Number of characters to erase.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-chunk-get-text"></a><h3>inf_text_chunk_get_text ()</h3>
<pre class="programlisting"><span class="returnvalue">gpointer</span>            inf_text_chunk_get_text             (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>,
                                                         <em class="parameter"><code><span class="type">gsize</span> *length</code></em>);</pre>
<p>
Returns the content of <em class="parameter"><code>self</code></em> as an array. The text is encoded in
<em class="parameter"><code>self</code></em>'s encoding. <em class="parameter"><code>length</code></em> is set to the number of bytes in the returned
buffer, if non-<code class="literal">NULL</code>. The result is _not_ zero-terminated.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
<td>Location to write the number of bytes to, or <code class="literal">NULL</code>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Content of <em class="parameter"><code>self</code></em>. Free with <code class="function">g_free()</code> if no longer in use.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-chunk-equal"></a><h3>inf_text_chunk_equal ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            inf_text_chunk_equal                (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *other</code></em>);</pre>
<p>
Returns whether the two text chunks contain the same text and the same
segments were written by the same authors.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>other</code></em> :</span></p></td>
<td>Another <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Whether the two chunks are equal.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-chunk-iter-init"></a><h3>inf_text_chunk_iter_init ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            inf_text_chunk_iter_init            (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a> *self</code></em>,
                                                         <em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a> *iter</code></em>);</pre>
<p>
Sets <em class="parameter"><code>iter</code></em> to point to the first segment of <em class="parameter"><code>self</code></em>. If there are no
segments (i.e. <em class="parameter"><code>self</code></em> is empty), <em class="parameter"><code>iter</code></em> is left untouched and the function
returns <code class="literal">FALSE</code>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>self</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>A <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Whether <em class="parameter"><code>iter</code></em> was set.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-chunk-iter-next"></a><h3>inf_text_chunk_iter_next ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            inf_text_chunk_iter_next            (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a> *iter</code></em>);</pre>
<p>
Sets <em class="parameter"><code>iter</code></em> to point to the next segment. If <em class="parameter"><code>iter</code></em> already points to the
last segment, the function returns <code class="literal">FALSE</code>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>An initialized <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Whether <em class="parameter"><code>iter</code></em> was set.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-chunk-iter-prev"></a><h3>inf_text_chunk_iter_prev ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            inf_text_chunk_iter_prev            (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a> *iter</code></em>);</pre>
<p>
Sets <em class="parameter"><code>iter</code></em> to point to the previous segment. If <em class="parameter"><code>iter</code></em> already points to
the first segment, the function returns <code class="literal">FALSE</code>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>An initialized <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>Whether <em class="parameter"><code>iter</code></em> has changed.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-chunk-iter-get-text"></a><h3>inf_text_chunk_iter_get_text ()</h3>
<pre class="programlisting"><span class="returnvalue">gconstpointer</span>       inf_text_chunk_iter_get_text        (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a> *iter</code></em>);</pre>
<p>
Returns the text of the segment <em class="parameter"><code>iter</code></em> points to. The text is in the
underlaying <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunk"><span class="type">InfTextChunk</span></a>'s encoding.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>An initialized <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The text of the segment <em class="parameter"><code>iter</code></em> points to.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-chunk-iter-get-length"></a><h3>inf_text_chunk_iter_get_length ()</h3>
<pre class="programlisting"><span class="returnvalue">guint</span>               inf_text_chunk_iter_get_length      (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a> *iter</code></em>);</pre>
<p>
Returns the number of characters in the segment <em class="parameter"><code>iter</code></em> points to.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>An initialized <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The number of characters in the segment <em class="parameter"><code>iter</code></em> points to.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-chunk-iter-get-bytes"></a><h3>inf_text_chunk_iter_get_bytes ()</h3>
<pre class="programlisting"><span class="returnvalue">gsize</span>               inf_text_chunk_iter_get_bytes       (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a> *iter</code></em>);</pre>
<p>
Returns the number of bytes in the segment <em class="parameter"><code>iter</code></em> points to.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>An initialized <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The number of bytes in the segment <em class="parameter"><code>iter</code></em> points to.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="inf-text-chunk-iter-get-author"></a><h3>inf_text_chunk_iter_get_author ()</h3>
<pre class="programlisting"><span class="returnvalue">guint</span>               inf_text_chunk_iter_get_author      (<em class="parameter"><code><a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a> *iter</code></em>);</pre>
<p>
Returns the user ID of the author of the segment <em class="parameter"><code>iter</code></em> points to.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>An initialized <a class="link" href="libinftext-0.5-inf-text-chunk.html#InfTextChunkIter" title="struct InfTextChunkIter"><span class="type">InfTextChunkIter</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The user ID of the author of the segment <em class="parameter"><code>iter</code></em> points to.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.19</div>
</body>
</html>