forked from PolMine/RcppCWB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcdaccess_8c.html
More file actions
2420 lines (2183 loc) · 197 KB
/
Copy pathcdaccess_8c.html
File metadata and controls
2420 lines (2183 loc) · 197 KB
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
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>CWB: cl/cdaccess.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">CWB
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('cdaccess_8c.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#nested-classes">Data Structures</a> |
<a href="#define-members">Macros</a> |
<a href="#typedef-members">Typedefs</a> |
<a href="#func-members">Functions</a> |
<a href="#var-members">Variables</a> </div>
<div class="headertitle">
<div class="title">cdaccess.c File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include <stdarg.h></code><br />
<code>#include <math.h></code><br />
<code>#include <ctype.h></code><br />
<code>#include <sys/types.h></code><br />
<code>#include <errno.h></code><br />
<code>#include "<a class="el" href="globals_8h.html">globals.h</a>"</code><br />
<code>#include "<a class="el" href="endian_8h.html">endian.h</a>"</code><br />
<code>#include "<a class="el" href="attributes_8h.html">attributes.h</a>"</code><br />
<code>#include "<a class="el" href="special-chars_8h.html">special-chars.h</a>"</code><br />
<code>#include "<a class="el" href="bitio_8h.html">bitio.h</a>"</code><br />
<code>#include "<a class="el" href="compression_8h.html">compression.h</a>"</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Data Structures</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="struct__position__stream__rec__.html">_position_stream_rec_</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">Underlying structure for the PositionStream object. <a href="struct__position__stream__rec__.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a64c71ee8ceeb924235006e59e9915fc4"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a64c71ee8ceeb924235006e59e9915fc4">COMPRESS_DEBUG</a>   0</td></tr>
<tr class="memdesc:a64c71ee8ceeb924235006e59e9915fc4"><td class="mdescLeft"> </td><td class="mdescRight">If COMPRESS_DEBUG is set to a positive integer, <a class="el" href="cdaccess_8c.html#a0a7fae031e5da3da00dad86317397657" title="Gets the integer ID of the item at the specified position on the given p-attribute.">cl_cpos2id()</a> will print debugging messages. <a href="cdaccess_8c.html#a64c71ee8ceeb924235006e59e9915fc4">More...</a><br /></td></tr>
<tr class="separator:a64c71ee8ceeb924235006e59e9915fc4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aedfe0346b5bd9a8816c4b26bc422d4af"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#aedfe0346b5bd9a8816c4b26bc422d4af">compstate_data_available</a>(st)   ((st)==<a class="el" href="attributes_8h.html#ac10aa9d039808185e4c1756539499c1ca1c6dff6971a4f581f4f6d9c1e1627ea7">ComponentLoaded</a>||(st)==<a class="el" href="attributes_8h.html#ac10aa9d039808185e4c1756539499c1cae8e627f408bd654c25f2814ac9ad4507">ComponentUnloaded</a>)</td></tr>
<tr class="memdesc:aedfe0346b5bd9a8816c4b26bc422d4af"><td class="mdescLeft"> </td><td class="mdescRight">Macro to test for one of the two component state values that boil down to "the data is avaiable". <a href="cdaccess_8c.html#aedfe0346b5bd9a8816c4b26bc422d4af">More...</a><br /></td></tr>
<tr class="separator:aedfe0346b5bd9a8816c4b26bc422d4af"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a764796354d59769c4402a8a37dac7e24"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a764796354d59769c4402a8a37dac7e24">check_arg</a>(arg, atyp, rval)</td></tr>
<tr class="memdesc:a764796354d59769c4402a8a37dac7e24"><td class="mdescLeft"> </td><td class="mdescRight">Checks an Attribute passed as a function argument for usability in that function. <a href="cdaccess_8c.html#a764796354d59769c4402a8a37dac7e24">More...</a><br /></td></tr>
<tr class="separator:a764796354d59769c4402a8a37dac7e24"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7b8ec00f9692d31a1079472257a20ef1"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a7b8ec00f9692d31a1079472257a20ef1">STATIC_BITMAP_IN_USE</a></td></tr>
<tr class="separator:a7b8ec00f9692d31a1079472257a20ef1"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a980f26f820f005b31bb305e96e7f0a71"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="struct__position__stream__rec__.html">_position_stream_rec_</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a980f26f820f005b31bb305e96e7f0a71">PositionStreamRecord</a></td></tr>
<tr class="memdesc:a980f26f820f005b31bb305e96e7f0a71"><td class="mdescLeft"> </td><td class="mdescRight">Underlying structure for the PositionStream object. <a href="cdaccess_8c.html#a980f26f820f005b31bb305e96e7f0a71">More...</a><br /></td></tr>
<tr class="separator:a980f26f820f005b31bb305e96e7f0a71"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:acfec76ce412d56dcee13f989c2d1e7f8"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#acfec76ce412d56dcee13f989c2d1e7f8">cl_strcmp</a> (const char *<a class="el" href="cwb-align_8c.html#aac99deaca25373d974a3efbdf554f837">s1</a>, const char *<a class="el" href="cwb-align_8c.html#a8ea4130966a8cc8c30768629f4c42084">s2</a>)</td></tr>
<tr class="memdesc:acfec76ce412d56dcee13f989c2d1e7f8"><td class="mdescLeft"> </td><td class="mdescRight">CL's string comparison function. <a href="cdaccess_8c.html#acfec76ce412d56dcee13f989c2d1e7f8">More...</a><br /></td></tr>
<tr class="separator:acfec76ce412d56dcee13f989c2d1e7f8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a873b42f2def97b97e4401184066e19fd"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a873b42f2def97b97e4401184066e19fd">cl_error_string</a> (int error_num)</td></tr>
<tr class="memdesc:a873b42f2def97b97e4401184066e19fd"><td class="mdescLeft"> </td><td class="mdescRight">Gets a string describing the error identified by an error number. <a href="cdaccess_8c.html#a873b42f2def97b97e4401184066e19fd">More...</a><br /></td></tr>
<tr class="separator:a873b42f2def97b97e4401184066e19fd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac0132825a090837c68bdfc59df00e0b8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#ac0132825a090837c68bdfc59df00e0b8">cl_error</a> (char *message)</td></tr>
<tr class="memdesc:ac0132825a090837c68bdfc59df00e0b8"><td class="mdescLeft"> </td><td class="mdescRight">Prints an error message, together with a string identifying the current error number. <a href="cdaccess_8c.html#ac0132825a090837c68bdfc59df00e0b8">More...</a><br /></td></tr>
<tr class="separator:ac0132825a090837c68bdfc59df00e0b8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aba8848d44ac4ea4d6ad600ac68cddf0e"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#aba8848d44ac4ea4d6ad600ac68cddf0e">cl_id2str</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int id)</td></tr>
<tr class="memdesc:aba8848d44ac4ea4d6ad600ac68cddf0e"><td class="mdescLeft"> </td><td class="mdescRight">Gets the string that corresponds to the specified item on the given P-attribute. <a href="cdaccess_8c.html#aba8848d44ac4ea4d6ad600ac68cddf0e">More...</a><br /></td></tr>
<tr class="separator:aba8848d44ac4ea4d6ad600ac68cddf0e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abed40ee846d5375f4f21d7ef2306fcc8"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#abed40ee846d5375f4f21d7ef2306fcc8">cl_str2id</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, char *id_string)</td></tr>
<tr class="memdesc:abed40ee846d5375f4f21d7ef2306fcc8"><td class="mdescLeft"> </td><td class="mdescRight">Gets the ID code that corresponds to the specified string on the given P-attribute. <a href="cdaccess_8c.html#abed40ee846d5375f4f21d7ef2306fcc8">More...</a><br /></td></tr>
<tr class="separator:abed40ee846d5375f4f21d7ef2306fcc8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2498199ad3c16152f91c83cd667f3eea"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a2498199ad3c16152f91c83cd667f3eea">cl_id2strlen</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int id)</td></tr>
<tr class="memdesc:a2498199ad3c16152f91c83cd667f3eea"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the length of the string that corresponds to the specified item on the given P-attribute. <a href="cdaccess_8c.html#a2498199ad3c16152f91c83cd667f3eea">More...</a><br /></td></tr>
<tr class="separator:a2498199ad3c16152f91c83cd667f3eea"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a98b635f088241d2bfd7dcc85de095ccd"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a98b635f088241d2bfd7dcc85de095ccd">cl_sort2id</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int sort_index_position)</td></tr>
<tr class="memdesc:a98b635f088241d2bfd7dcc85de095ccd"><td class="mdescLeft"> </td><td class="mdescRight">Gets the ID code of the item at the specified position in the Attribute's sorted wordlist index. <a href="cdaccess_8c.html#a98b635f088241d2bfd7dcc85de095ccd">More...</a><br /></td></tr>
<tr class="separator:a98b635f088241d2bfd7dcc85de095ccd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad1bd38999339cb7bd542ef8dcb80b087"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#ad1bd38999339cb7bd542ef8dcb80b087">cl_id2sort</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int id)</td></tr>
<tr class="memdesc:ad1bd38999339cb7bd542ef8dcb80b087"><td class="mdescLeft"> </td><td class="mdescRight">Gets the position in the Attribute's sorted wordlist index of the item with the specified ID code. <a href="cdaccess_8c.html#ad1bd38999339cb7bd542ef8dcb80b087">More...</a><br /></td></tr>
<tr class="separator:ad1bd38999339cb7bd542ef8dcb80b087"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab4a883abda81ebe955ba255d2fee3b43"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#ab4a883abda81ebe955ba255d2fee3b43">cl_sequence_compressed</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute)</td></tr>
<tr class="memdesc:ab4a883abda81ebe955ba255d2fee3b43"><td class="mdescLeft"> </td><td class="mdescRight">Checks whether the item sequence of the given P-attribute should be accessed via its compressed data. <a href="cdaccess_8c.html#ab4a883abda81ebe955ba255d2fee3b43">More...</a><br /></td></tr>
<tr class="separator:ab4a883abda81ebe955ba255d2fee3b43"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a34bd4565018dbd57fd392266b99155f4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a34bd4565018dbd57fd392266b99155f4">cl_index_compressed</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute)</td></tr>
<tr class="memdesc:a34bd4565018dbd57fd392266b99155f4"><td class="mdescLeft"> </td><td class="mdescRight">Check whether the reverse-corpus index (inverted file) of the given P-attribute should be accessed via its compressed data. <a href="cdaccess_8c.html#a34bd4565018dbd57fd392266b99155f4">More...</a><br /></td></tr>
<tr class="separator:a34bd4565018dbd57fd392266b99155f4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae9db76b80522e91e2735414a079e952b"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#ae9db76b80522e91e2735414a079e952b">cl_max_cpos</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute)</td></tr>
<tr class="memdesc:ae9db76b80522e91e2735414a079e952b"><td class="mdescLeft"> </td><td class="mdescRight">Gets the maximum position on this P-attribute (ie the size of the attribute). <a href="cdaccess_8c.html#ae9db76b80522e91e2735414a079e952b">More...</a><br /></td></tr>
<tr class="separator:ae9db76b80522e91e2735414a079e952b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a80f6431eb356913b2d3b84b9cbfaae37"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a80f6431eb356913b2d3b84b9cbfaae37">cl_max_id</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute)</td></tr>
<tr class="memdesc:a80f6431eb356913b2d3b84b9cbfaae37"><td class="mdescLeft"> </td><td class="mdescRight">Gets the maximum id on this P-attribute (ie the range of the attribute's ID codes). <a href="cdaccess_8c.html#a80f6431eb356913b2d3b84b9cbfaae37">More...</a><br /></td></tr>
<tr class="separator:a80f6431eb356913b2d3b84b9cbfaae37"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a96decca6cc290275c02aa48ebf943aa9"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a96decca6cc290275c02aa48ebf943aa9">cl_id2freq</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int id)</td></tr>
<tr class="memdesc:a96decca6cc290275c02aa48ebf943aa9"><td class="mdescLeft"> </td><td class="mdescRight">Gets the frequency of an item on this attribute. <a href="cdaccess_8c.html#a96decca6cc290275c02aa48ebf943aa9">More...</a><br /></td></tr>
<tr class="separator:a96decca6cc290275c02aa48ebf943aa9"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab2dbb15e578b9f1fdc1f2b7880a834b5"><td class="memItemLeft" align="right" valign="top">int * </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#ab2dbb15e578b9f1fdc1f2b7880a834b5">cl_id2cpos_oldstyle</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int id, int *freq, int *restrictor_list, int restrictor_list_size)</td></tr>
<tr class="memdesc:ab2dbb15e578b9f1fdc1f2b7880a834b5"><td class="mdescLeft"> </td><td class="mdescRight">Gets all the corpus positions where the specified item is found on the given P-attribute. <a href="cdaccess_8c.html#ab2dbb15e578b9f1fdc1f2b7880a834b5">More...</a><br /></td></tr>
<tr class="separator:ab2dbb15e578b9f1fdc1f2b7880a834b5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac00f99db989ee6dd4554e5fb3ef89359"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cl_8h.html#a78f63b388336fda6ef4ab4dc166be6ca">PositionStream</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#ac00f99db989ee6dd4554e5fb3ef89359">cl_new_stream</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int id)</td></tr>
<tr class="memdesc:ac00f99db989ee6dd4554e5fb3ef89359"><td class="mdescLeft"> </td><td class="mdescRight">Creates a new PositionStream object. <a href="cdaccess_8c.html#ac00f99db989ee6dd4554e5fb3ef89359">More...</a><br /></td></tr>
<tr class="separator:ac00f99db989ee6dd4554e5fb3ef89359"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af8c753234cd29f1b3c3fc705f023b9cc"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#af8c753234cd29f1b3c3fc705f023b9cc">cl_delete_stream</a> (<a class="el" href="cl_8h.html#a6cf0c14af3a84e25245c913864a3e69e">ClPositionStream</a> *ps)</td></tr>
<tr class="memdesc:af8c753234cd29f1b3c3fc705f023b9cc"><td class="mdescLeft"> </td><td class="mdescRight">Deletes a PositionStream object. <a href="cdaccess_8c.html#af8c753234cd29f1b3c3fc705f023b9cc">More...</a><br /></td></tr>
<tr class="separator:af8c753234cd29f1b3c3fc705f023b9cc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a429c82e314be4714ea85585d7cc88005"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a429c82e314be4714ea85585d7cc88005">cl_read_stream</a> (<a class="el" href="cl_8h.html#a78f63b388336fda6ef4ab4dc166be6ca">PositionStream</a> ps, int *buffer, int buffer_size)</td></tr>
<tr class="memdesc:a429c82e314be4714ea85585d7cc88005"><td class="mdescLeft"> </td><td class="mdescRight">Reads corpus positions from a position stream to a buffer. <a href="cdaccess_8c.html#a429c82e314be4714ea85585d7cc88005">More...</a><br /></td></tr>
<tr class="separator:a429c82e314be4714ea85585d7cc88005"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0a7fae031e5da3da00dad86317397657"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a0a7fae031e5da3da00dad86317397657">cl_cpos2id</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int position)</td></tr>
<tr class="memdesc:a0a7fae031e5da3da00dad86317397657"><td class="mdescLeft"> </td><td class="mdescRight">Gets the integer ID of the item at the specified position on the given p-attribute. <a href="cdaccess_8c.html#a0a7fae031e5da3da00dad86317397657">More...</a><br /></td></tr>
<tr class="separator:a0a7fae031e5da3da00dad86317397657"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1fc39a03758d250ec06499a0692da6ff"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a1fc39a03758d250ec06499a0692da6ff">cl_cpos2str</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int position)</td></tr>
<tr class="memdesc:a1fc39a03758d250ec06499a0692da6ff"><td class="mdescLeft"> </td><td class="mdescRight">Gets the string of the item at the specified position on the given p-attribute. <a href="cdaccess_8c.html#a1fc39a03758d250ec06499a0692da6ff">More...</a><br /></td></tr>
<tr class="separator:a1fc39a03758d250ec06499a0692da6ff"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa143a2d85f95855db2544a31c8a8d571"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#aa143a2d85f95855db2544a31c8a8d571">cl_id2all</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int index, int *freq, int *slen)</td></tr>
<tr class="memdesc:aa143a2d85f95855db2544a31c8a8d571"><td class="mdescLeft"> </td><td class="mdescRight">Gets the string of the item with the specified ID on the given p-attribute. <a href="cdaccess_8c.html#aa143a2d85f95855db2544a31c8a8d571">More...</a><br /></td></tr>
<tr class="separator:aa143a2d85f95855db2544a31c8a8d571"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6eb4641e0a1e14b63f2d5f2f5b6a8cea"><td class="memItemLeft" align="right" valign="top">int * </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a6eb4641e0a1e14b63f2d5f2f5b6a8cea">cl_regex2id</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, char *pattern, int flags, int *number_of_matches)</td></tr>
<tr class="memdesc:a6eb4641e0a1e14b63f2d5f2f5b6a8cea"><td class="mdescLeft"> </td><td class="mdescRight">Gets a list of the ids of those items on a given Attribute that match a particular regular-expression pattern. <a href="cdaccess_8c.html#a6eb4641e0a1e14b63f2d5f2f5b6a8cea">More...</a><br /></td></tr>
<tr class="separator:a6eb4641e0a1e14b63f2d5f2f5b6a8cea"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0934d57297fd50ad9016d45328cbe6ba"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a0934d57297fd50ad9016d45328cbe6ba">cl_idlist2freq</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int *word_ids, int number_of_words)</td></tr>
<tr class="memdesc:a0934d57297fd50ad9016d45328cbe6ba"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the total frequency of all items on a list of item IDs. <a href="cdaccess_8c.html#a0934d57297fd50ad9016d45328cbe6ba">More...</a><br /></td></tr>
<tr class="separator:a0934d57297fd50ad9016d45328cbe6ba"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae98330ef3e5bb8dc3b997f5b8c83415e"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#ae98330ef3e5bb8dc3b997f5b8c83415e">intcompare</a> (const void *i, const void *j)</td></tr>
<tr class="memdesc:ae98330ef3e5bb8dc3b997f5b8c83415e"><td class="mdescLeft"> </td><td class="mdescRight">internal function for use with qsort <a href="cdaccess_8c.html#ae98330ef3e5bb8dc3b997f5b8c83415e">More...</a><br /></td></tr>
<tr class="separator:ae98330ef3e5bb8dc3b997f5b8c83415e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a66aa25f9d89230551ee83f7fc76c1626"><td class="memItemLeft" align="right" valign="top">int * </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a66aa25f9d89230551ee83f7fc76c1626">cl_idlist2cpos_oldstyle</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int *type_ids, int n_of_types, int <a class="el" href="cwb-lexdecode_8c.html#ae6f74965045002e0bca5d50407561314">sort</a>, int *size_of_table, int *restrictor_list, int restrictor_list_size)</td></tr>
<tr class="memdesc:a66aa25f9d89230551ee83f7fc76c1626"><td class="mdescLeft"> </td><td class="mdescRight">Gets a list of corpus positions matching a list of ids. <a href="cdaccess_8c.html#a66aa25f9d89230551ee83f7fc76c1626">More...</a><br /></td></tr>
<tr class="separator:a66aa25f9d89230551ee83f7fc76c1626"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afd4c658f53997dcda5a265cbaf384808"><td class="memItemLeft" align="right" valign="top">static int * </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#afd4c658f53997dcda5a265cbaf384808">get_previous_mark</a> (int *data, int size, int position)</td></tr>
<tr class="memdesc:afd4c658f53997dcda5a265cbaf384808"><td class="mdescLeft"> </td><td class="mdescRight">Gets a pointer to the location where a structure is stored. <a href="cdaccess_8c.html#afd4c658f53997dcda5a265cbaf384808">More...</a><br /></td></tr>
<tr class="separator:afd4c658f53997dcda5a265cbaf384808"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab9dfb6cb8218e98068496f9dccd17243"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#ab9dfb6cb8218e98068496f9dccd17243">cl_cpos2struc</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *a, int cpos)</td></tr>
<tr class="memdesc:ab9dfb6cb8218e98068496f9dccd17243"><td class="mdescLeft"> </td><td class="mdescRight">Gets the ID number of a structure (instance of an s-attribute) that is found at the given corpus position. <a href="cdaccess_8c.html#ab9dfb6cb8218e98068496f9dccd17243">More...</a><br /></td></tr>
<tr class="separator:ab9dfb6cb8218e98068496f9dccd17243"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abe849dbff1f75208a19965f3f84d8347"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#abe849dbff1f75208a19965f3f84d8347">cl_cpos2boundary</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *a, int cpos)</td></tr>
<tr class="memdesc:abe849dbff1f75208a19965f3f84d8347"><td class="mdescLeft"> </td><td class="mdescRight">Compares the location of a corpus position to the regions of an s-attribute. <a href="cdaccess_8c.html#abe849dbff1f75208a19965f3f84d8347">More...</a><br /></td></tr>
<tr class="separator:abe849dbff1f75208a19965f3f84d8347"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a95ec41c7bd08fce95418a10c0d5c2da2"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a95ec41c7bd08fce95418a10c0d5c2da2">cl_max_struc</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *a)</td></tr>
<tr class="memdesc:a95ec41c7bd08fce95418a10c0d5c2da2"><td class="mdescLeft"> </td><td class="mdescRight">Gets the maximum for this S-attribute (ie the size of the S-attribute). <a href="cdaccess_8c.html#a95ec41c7bd08fce95418a10c0d5c2da2">More...</a><br /></td></tr>
<tr class="separator:a95ec41c7bd08fce95418a10c0d5c2da2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae8f5999fc90bbcd27d47126a48e83adb"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#ae8f5999fc90bbcd27d47126a48e83adb">cl_cpos2struc2cpos</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int position, int *struc_start, int *struc_end)</td></tr>
<tr class="memdesc:ae8f5999fc90bbcd27d47126a48e83adb"><td class="mdescLeft"> </td><td class="mdescRight">Gets the start and end positions of the instance of the given S-attribute found at the specified corpus position. <a href="cdaccess_8c.html#ae8f5999fc90bbcd27d47126a48e83adb">More...</a><br /></td></tr>
<tr class="separator:ae8f5999fc90bbcd27d47126a48e83adb"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa39544853c4903fcca586cb75accef80"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#aa39544853c4903fcca586cb75accef80">cl_cpos2struc_oldstyle</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int position, int *struc_num)</td></tr>
<tr class="memdesc:aa39544853c4903fcca586cb75accef80"><td class="mdescLeft"> </td><td class="mdescRight">Gets the ID number of a structure (instance of an s-attribute) that is found at the given corpus position. <a href="cdaccess_8c.html#aa39544853c4903fcca586cb75accef80">More...</a><br /></td></tr>
<tr class="separator:aa39544853c4903fcca586cb75accef80"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af0793556b93840555bca436b399a00bd"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#af0793556b93840555bca436b399a00bd">cl_struc2cpos</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int struc_num, int *struc_start, int *struc_end)</td></tr>
<tr class="memdesc:af0793556b93840555bca436b399a00bd"><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the start-and-end corpus positions of a specified structure of the given s-attribute type. <a href="cdaccess_8c.html#af0793556b93840555bca436b399a00bd">More...</a><br /></td></tr>
<tr class="separator:af0793556b93840555bca436b399a00bd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a207eee8f2281a9fde8f5f3e9f818ab24"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a207eee8f2281a9fde8f5f3e9f818ab24">cl_max_struc_oldstyle</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int *nr_strucs)</td></tr>
<tr class="memdesc:a207eee8f2281a9fde8f5f3e9f818ab24"><td class="mdescLeft"> </td><td class="mdescRight">Gets the number of instances of an s-attribute in the corpus. <a href="cdaccess_8c.html#a207eee8f2281a9fde8f5f3e9f818ab24">More...</a><br /></td></tr>
<tr class="separator:a207eee8f2281a9fde8f5f3e9f818ab24"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a43a3631745e05f8fafe5006141d57663"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a43a3631745e05f8fafe5006141d57663">cl_struc_values</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute)</td></tr>
<tr class="memdesc:a43a3631745e05f8fafe5006141d57663"><td class="mdescLeft"> </td><td class="mdescRight">Checks whether this s-attribute has attribute values. <a href="cdaccess_8c.html#a43a3631745e05f8fafe5006141d57663">More...</a><br /></td></tr>
<tr class="separator:a43a3631745e05f8fafe5006141d57663"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adaaf2c2c78deeb83fe75cd8f36c8c58d"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#adaaf2c2c78deeb83fe75cd8f36c8c58d">s_v_comp</a> (const void *v1, const void *v2)</td></tr>
<tr class="memdesc:adaaf2c2c78deeb83fe75cd8f36c8c58d"><td class="mdescLeft"> </td><td class="mdescRight">A non-exported function used by cl_struc2str. <a href="cdaccess_8c.html#adaaf2c2c78deeb83fe75cd8f36c8c58d">More...</a><br /></td></tr>
<tr class="separator:adaaf2c2c78deeb83fe75cd8f36c8c58d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a68c164c901d2ec3304e981bc85320bf5"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a68c164c901d2ec3304e981bc85320bf5">cl_struc2str</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int struc_num)</td></tr>
<tr class="memdesc:a68c164c901d2ec3304e981bc85320bf5"><td class="mdescLeft"> </td><td class="mdescRight">Gets the value that is associated with the specified instance of the given s-attribute. <a href="cdaccess_8c.html#a68c164c901d2ec3304e981bc85320bf5">More...</a><br /></td></tr>
<tr class="separator:a68c164c901d2ec3304e981bc85320bf5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a472f3d2301cc79e3c796c0b70bf24130"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a472f3d2301cc79e3c796c0b70bf24130">cl_cpos2struc2str</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *struc, int position)</td></tr>
<tr class="memdesc:a472f3d2301cc79e3c796c0b70bf24130"><td class="mdescLeft"> </td><td class="mdescRight">Gets the value associated with the instance of the given s-attribute that occurs at the specified corpus position. <a href="cdaccess_8c.html#a472f3d2301cc79e3c796c0b70bf24130">More...</a><br /></td></tr>
<tr class="separator:a472f3d2301cc79e3c796c0b70bf24130"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa4105b1b22bb654232c01df338fadd26"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#aa4105b1b22bb654232c01df338fadd26">get_alignment</a> (int *data, int size, int position)</td></tr>
<tr class="memdesc:aa4105b1b22bb654232c01df338fadd26"><td class="mdescLeft"> </td><td class="mdescRight">Gets the id number of the alignment at the specified corpus position. <a href="cdaccess_8c.html#aa4105b1b22bb654232c01df338fadd26">More...</a><br /></td></tr>
<tr class="separator:aa4105b1b22bb654232c01df338fadd26"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a88e4b39c845c0d657e51b2c2361c925b"><td class="memItemLeft" align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a88e4b39c845c0d657e51b2c2361c925b">get_extended_alignment</a> (int *data, int size, int position)</td></tr>
<tr class="memdesc:a88e4b39c845c0d657e51b2c2361c925b"><td class="mdescLeft"> </td><td class="mdescRight">Gets the id number of the alignment at the specified corpus position. <a href="cdaccess_8c.html#a88e4b39c845c0d657e51b2c2361c925b">More...</a><br /></td></tr>
<tr class="separator:a88e4b39c845c0d657e51b2c2361c925b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abf9990e903af6e0871861f2b14aadc9e"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#abf9990e903af6e0871861f2b14aadc9e">cl_cpos2alg2cpos_oldstyle</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int position, int *source_corpus_start, int *source_corpus_end, int *aligned_corpus_start, int *aligned_corpus_end)</td></tr>
<tr class="memdesc:abf9990e903af6e0871861f2b14aadc9e"><td class="mdescLeft"> </td><td class="mdescRight">Gets the corpus positions of an alignment on the given align-attribute. <a href="cdaccess_8c.html#abf9990e903af6e0871861f2b14aadc9e">More...</a><br /></td></tr>
<tr class="separator:abf9990e903af6e0871861f2b14aadc9e"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a08d8f0bacd829441074c569dc723d0f0"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a08d8f0bacd829441074c569dc723d0f0">cl_has_extended_alignment</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute)</td></tr>
<tr class="memdesc:a08d8f0bacd829441074c569dc723d0f0"><td class="mdescLeft"> </td><td class="mdescRight">Checks whether an attribute's XALIGN component exists, that is, whether or not it has extended alignment. <a href="cdaccess_8c.html#a08d8f0bacd829441074c569dc723d0f0">More...</a><br /></td></tr>
<tr class="separator:a08d8f0bacd829441074c569dc723d0f0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a87171a8a06237fe4024730d2363b9f8b"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a87171a8a06237fe4024730d2363b9f8b">cl_max_alg</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute)</td></tr>
<tr class="memdesc:a87171a8a06237fe4024730d2363b9f8b"><td class="mdescLeft"> </td><td class="mdescRight">Gets the number of alignments on this align-attribute. <a href="cdaccess_8c.html#a87171a8a06237fe4024730d2363b9f8b">More...</a><br /></td></tr>
<tr class="separator:a87171a8a06237fe4024730d2363b9f8b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:addbf0e574a3e8e68431b86ffd7cac8ad"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#addbf0e574a3e8e68431b86ffd7cac8ad">cl_cpos2alg</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int cpos)</td></tr>
<tr class="memdesc:addbf0e574a3e8e68431b86ffd7cac8ad"><td class="mdescLeft"> </td><td class="mdescRight">Gets the id number of the alignment at the specified corpus position. <a href="cdaccess_8c.html#addbf0e574a3e8e68431b86ffd7cac8ad">More...</a><br /></td></tr>
<tr class="separator:addbf0e574a3e8e68431b86ffd7cac8ad"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5e8f82bb50cbb95415de2af1e910e1ff"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#a5e8f82bb50cbb95415de2af1e910e1ff">cl_alg2cpos</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, int alg, int *source_region_start, int *source_region_end, int *target_region_start, int *target_region_end)</td></tr>
<tr class="memdesc:a5e8f82bb50cbb95415de2af1e910e1ff"><td class="mdescLeft"> </td><td class="mdescRight">Gets the corpus positions of an alignment on the given align-attribute. <a href="cdaccess_8c.html#a5e8f82bb50cbb95415de2af1e910e1ff">More...</a><br /></td></tr>
<tr class="separator:a5e8f82bb50cbb95415de2af1e910e1ff"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af0ebc19b9f903e9141e8e281d7e08890"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#af0ebc19b9f903e9141e8e281d7e08890">cl_dynamic_call</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute, <a class="el" href="cl_8h.html#a56fef2f69fc493f91026d7ee4ab65b17">DynCallResult</a> *dcr, <a class="el" href="cl_8h.html#a56fef2f69fc493f91026d7ee4ab65b17">DynCallResult</a> *args, int nr_args)</td></tr>
<tr class="memdesc:af0ebc19b9f903e9141e8e281d7e08890"><td class="mdescLeft"> </td><td class="mdescRight">Calls a dynamic attribute. <a href="cdaccess_8c.html#af0ebc19b9f903e9141e8e281d7e08890">More...</a><br /></td></tr>
<tr class="separator:af0ebc19b9f903e9141e8e281d7e08890"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab06baef993c0e0137005d1be6da08322"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#ab06baef993c0e0137005d1be6da08322">cl_dynamic_numargs</a> (<a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> *attribute)</td></tr>
<tr class="memdesc:ab06baef993c0e0137005d1be6da08322"><td class="mdescLeft"> </td><td class="mdescRight">Count the number of arguments on a dynamic attribute's argument list. <a href="cdaccess_8c.html#ab06baef993c0e0137005d1be6da08322">More...</a><br /></td></tr>
<tr class="separator:ab06baef993c0e0137005d1be6da08322"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:af97f2ad4a69c7d0105f9cee4a51b29b8"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="cdaccess_8c.html#af97f2ad4a69c7d0105f9cee4a51b29b8">cl_errno</a> = <a class="el" href="cl_8h.html#a1fa2e2ab47bd2c689b68a78bdac22028">CDA_OK</a></td></tr>
<tr class="memdesc:af97f2ad4a69c7d0105f9cee4a51b29b8"><td class="mdescLeft"> </td><td class="mdescRight">Error number for CL: is set after access to any of various corpus-data-access functions. <a href="cdaccess_8c.html#af97f2ad4a69c7d0105f9cee4a51b29b8">More...</a><br /></td></tr>
<tr class="separator:af97f2ad4a69c7d0105f9cee4a51b29b8"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a764796354d59769c4402a8a37dac7e24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a764796354d59769c4402a8a37dac7e24">◆ </a></span>check_arg</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define check_arg</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">arg, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname">atyp, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"> </td>
<td class="paramname">rval </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line"><span class="keywordflow">if</span> (arg == NULL) { \</div>
<div class="line"> cl_errno = <a class="code" href="cl_8h.html#a65b146b17c915a67ebc0199cc3b2242c">CDA_ENULLATT</a>; <span class="keywordflow">return</span> rval; \</div>
<div class="line">} \</div>
<div class="line">else <span class="keywordflow">if</span> (arg->type != atyp) { \</div>
<div class="line"> cl_errno = <a class="code" href="cl_8h.html#a45ec05d36167d9c6e5074febf7f0ffd4">CDA_EATTTYPE</a>; <span class="keywordflow">return</span> rval; \</div>
<div class="line">}</div>
<div class="ttc" id="acl_8h_html_a45ec05d36167d9c6e5074febf7f0ffd4"><div class="ttname"><a href="cl_8h.html#a45ec05d36167d9c6e5074febf7f0ffd4">CDA_EATTTYPE</a></div><div class="ttdeci">#define CDA_EATTTYPE</div><div class="ttdoc">Error code: function was called on illegal attribute.</div><div class="ttdef"><b>Definition:</b> cl.h:148</div></div>
<div class="ttc" id="acl_8h_html_a65b146b17c915a67ebc0199cc3b2242c"><div class="ttname"><a href="cl_8h.html#a65b146b17c915a67ebc0199cc3b2242c">CDA_ENULLATT</a></div><div class="ttdeci">#define CDA_ENULLATT</div><div class="ttdoc">Error code: NULL passed as attribute argument.</div><div class="ttdef"><b>Definition:</b> cl.h:147</div></div>
</div><!-- fragment -->
<p>Checks an Attribute passed as a function argument for usability in that function. </p>
<p>(a) arg must not be NULL. (b) arg type has to be the type specified in atyp.</p>
<p>If these conditions are not fulfilled, the current function returns rval, and cl_errno is set. </p>
</div>
</div>
<a id="a64c71ee8ceeb924235006e59e9915fc4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64c71ee8ceeb924235006e59e9915fc4">◆ </a></span>COMPRESS_DEBUG</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define COMPRESS_DEBUG   0</td>
</tr>
</table>
</div><div class="memdoc">
<p>If COMPRESS_DEBUG is set to a positive integer, <a class="el" href="cdaccess_8c.html#a0a7fae031e5da3da00dad86317397657" title="Gets the integer ID of the item at the specified position on the given p-attribute.">cl_cpos2id()</a> will print debugging messages. </p>
<p>(2 prints more than 1!) </p>
</div>
</div>
<a id="aedfe0346b5bd9a8816c4b26bc422d4af"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedfe0346b5bd9a8816c4b26bc422d4af">◆ </a></span>compstate_data_available</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define compstate_data_available</td>
<td>(</td>
<td class="paramtype"> </td>
<td class="paramname">st</td><td>)</td>
<td>   ((st)==<a class="el" href="attributes_8h.html#ac10aa9d039808185e4c1756539499c1ca1c6dff6971a4f581f4f6d9c1e1627ea7">ComponentLoaded</a>||(st)==<a class="el" href="attributes_8h.html#ac10aa9d039808185e4c1756539499c1cae8e627f408bd654c25f2814ac9ad4507">ComponentUnloaded</a>)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Macro to test for one of the two component state values that boil down to "the data is avaiable". </p>
</div>
</div>
<a id="a7b8ec00f9692d31a1079472257a20ef1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b8ec00f9692d31a1079472257a20ef1">◆ </a></span>STATIC_BITMAP_IN_USE</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define STATIC_BITMAP_IN_USE</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Typedef Documentation</h2>
<a id="a980f26f820f005b31bb305e96e7f0a71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a980f26f820f005b31bb305e96e7f0a71">◆ </a></span>PositionStreamRecord</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef struct <a class="el" href="struct__position__stream__rec__.html">_position_stream_rec_</a> <a class="el" href="cdaccess_8c.html#a980f26f820f005b31bb305e96e7f0a71">PositionStreamRecord</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>Underlying structure for the PositionStream object. </p>
<p>PositionStreams are used for accessing Attributes. Each one represents a stream of corpus positions, representing positions where a given item occurs. </p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a5e8f82bb50cbb95415de2af1e910e1ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e8f82bb50cbb95415de2af1e910e1ff">◆ </a></span>cl_alg2cpos()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int cl_alg2cpos </td>
<td>(</td>
<td class="paramtype"><a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> * </td>
<td class="paramname"><em>attribute</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>alg</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>source_region_start</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>source_region_end</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>target_region_start</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>target_region_end</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the corpus positions of an alignment on the given align-attribute. </p>
<p>Note that four corpus positions are retrieved, into the addresses given as parameters.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">attribute</td><td>The align-attribute to look on. </td></tr>
<tr><td class="paramname">alg</td><td>The ID of the alignment whose positions are wanted. </td></tr>
<tr><td class="paramname">source_region_start</td><td>Location to put source corpus start position. </td></tr>
<tr><td class="paramname">source_region_end</td><td>Location to put source corpus end position. </td></tr>
<tr><td class="paramname">target_region_start</td><td>Location to put target corpus start position. </td></tr>
<tr><td class="paramname">target_region_end</td><td>Location to put target corpus end position. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Boolean: true = all OK, false = problem. </dd></dl>
<p class="reference">References <a class="el" href="cl_8h.html#ad3310b2e10e15119787af15ce486dc32">CDA_EIDXORNG</a>, <a class="el" href="cl_8h.html#a94695de40ed57b9b359981bf6ff78aae">CDA_ENODATA</a>, <a class="el" href="cl_8h.html#a1fa2e2ab47bd2c689b68a78bdac22028">CDA_OK</a>, <a class="el" href="cdaccess_8c.html#af97f2ad4a69c7d0105f9cee4a51b29b8">cl_errno</a>, <a class="el" href="cdaccess_8c.html#a08d8f0bacd829441074c569dc723d0f0">cl_has_extended_alignment()</a>, <a class="el" href="attributes_8h.html#a990b084a9fbbdb7ea6b9defb1073706aa5dde374ce4fc7d54ba6dfeba1c32e26a">CompAlignData</a>, <a class="el" href="attributes_8h.html#a990b084a9fbbdb7ea6b9defb1073706aa7b2137936c613e72c7436ac17cd2736c">CompXAlignData</a>, <a class="el" href="struct_t_component.html#a77096a9034bc2a42ed99c36e2038c61e">TComponent::data</a>, <a class="el" href="struct_t_mblob.html#ac103627c1ad15cbec2f22d0abe6d54b6">TMblob::data</a>, <a class="el" href="attributes_8c.html#a4810d7a6ab0920ad1af05e2095cc1841">ensure_component()</a>, and <a class="el" href="struct_t_component.html#a439227feff9d7f55384e8780cfc2eb82">TComponent::size</a>.</p>
<p class="reference">Referenced by <a class="el" href="eval_8c.html#abceff38cbdce7027f1aea8ab3abca608">check_alignment_constraints()</a>, <a class="el" href="concordance_8c.html#aee98dce4ac84e5d75e0eb34070690b0c">compose_kwic_line()</a>, <a class="el" href="cwb-decode_8c.html#ac910b4c1652889d46d8daad87fab64a6">decode_print_token_sequence()</a>, <a class="el" href="cqpserver_8c.html#ad570d7f947ad120a8a453ecf527b2890">do_cqi_cl_alg2cpos()</a>, <a class="el" href="parse__actions_8c.html#ac290a092584d39338971dfff4a90c95a">do_translate()</a>, <a class="el" href="cwb-align-decode_8c.html#a3c04138a5bfe5d72780bb7e82a18e627">main()</a>, and <a class="el" href="print__align_8c.html#a33cf004304338743df469e7a43272a51">print_all_aligned_lines()</a>.</p>
</div>
</div>
<a id="addbf0e574a3e8e68431b86ffd7cac8ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#addbf0e574a3e8e68431b86ffd7cac8ad">◆ </a></span>cl_cpos2alg()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int cl_cpos2alg </td>
<td>(</td>
<td class="paramtype"><a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> * </td>
<td class="paramname"><em>attribute</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>cpos</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the id number of the alignment at the specified corpus position. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">attribute</td><td>The align-attribute to look on. </td></tr>
<tr><td class="paramname">cpos</td><td>The corpus position to look at. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The id number of the alignment at this position, or a negative int error code. </dd></dl>
<p class="reference">References <a class="el" href="cl_8h.html#aeaee18dc0eafc039c82041c6021de4ec">CDA_EALIGN</a>, <a class="el" href="cl_8h.html#a94695de40ed57b9b359981bf6ff78aae">CDA_ENODATA</a>, <a class="el" href="cl_8h.html#a81d0d94deccef135f4d9caaa6fc6b045">CDA_EPOSORNG</a>, <a class="el" href="cl_8h.html#a1fa2e2ab47bd2c689b68a78bdac22028">CDA_OK</a>, <a class="el" href="cdaccess_8c.html#af97f2ad4a69c7d0105f9cee4a51b29b8">cl_errno</a>, <a class="el" href="cdaccess_8c.html#a08d8f0bacd829441074c569dc723d0f0">cl_has_extended_alignment()</a>, <a class="el" href="attributes_8h.html#a990b084a9fbbdb7ea6b9defb1073706aa5dde374ce4fc7d54ba6dfeba1c32e26a">CompAlignData</a>, <a class="el" href="attributes_8h.html#a990b084a9fbbdb7ea6b9defb1073706aa7b2137936c613e72c7436ac17cd2736c">CompXAlignData</a>, <a class="el" href="struct_t_component.html#a77096a9034bc2a42ed99c36e2038c61e">TComponent::data</a>, <a class="el" href="struct_t_mblob.html#ac103627c1ad15cbec2f22d0abe6d54b6">TMblob::data</a>, <a class="el" href="attributes_8c.html#a4810d7a6ab0920ad1af05e2095cc1841">ensure_component()</a>, <a class="el" href="cdaccess_8c.html#aa4105b1b22bb654232c01df338fadd26">get_alignment()</a>, <a class="el" href="cdaccess_8c.html#a88e4b39c845c0d657e51b2c2361c925b">get_extended_alignment()</a>, and <a class="el" href="struct_t_component.html#a439227feff9d7f55384e8780cfc2eb82">TComponent::size</a>.</p>
<p class="reference">Referenced by <a class="el" href="eval_8c.html#abceff38cbdce7027f1aea8ab3abca608">check_alignment_constraints()</a>, <a class="el" href="concordance_8c.html#aee98dce4ac84e5d75e0eb34070690b0c">compose_kwic_line()</a>, <a class="el" href="cwb-decode_8c.html#ac910b4c1652889d46d8daad87fab64a6">decode_print_token_sequence()</a>, <a class="el" href="cqpserver_8c.html#a53a85e081d0019ef7992a6ba846cc233">do_cqi_cl_cpos2alg()</a>, <a class="el" href="parse__actions_8c.html#ac290a092584d39338971dfff4a90c95a">do_translate()</a>, and <a class="el" href="print__align_8c.html#a33cf004304338743df469e7a43272a51">print_all_aligned_lines()</a>.</p>
</div>
</div>
<a id="abf9990e903af6e0871861f2b14aadc9e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf9990e903af6e0871861f2b14aadc9e">◆ </a></span>cl_cpos2alg2cpos_oldstyle()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int cl_cpos2alg2cpos_oldstyle </td>
<td>(</td>
<td class="paramtype"><a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> * </td>
<td class="paramname"><em>attribute</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>position</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>source_corpus_start</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>source_corpus_end</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>aligned_corpus_start</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>aligned_corpus_end</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the corpus positions of an alignment on the given align-attribute. </p>
<p>This is for old-style alignments only: it doesn't (can't) deal with extended alignments. Depracated: use cl_alg2cpos instead (but note its parameters are not identical).</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="cdaccess_8c.html#a5e8f82bb50cbb95415de2af1e910e1ff" title="Gets the corpus positions of an alignment on the given align-attribute.">cl_alg2cpos</a>.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">attribute</td><td>The align-attribute to look on. </td></tr>
<tr><td class="paramname">position</td><td>The corpus position {??} of the alignment whose positions are wanted. </td></tr>
<tr><td class="paramname">source_corpus_start</td><td>Location to put source corpus start position. </td></tr>
<tr><td class="paramname">source_corpus_end</td><td>Location to put source corpus end position. </td></tr>
<tr><td class="paramname">aligned_corpus_start</td><td>Location to put target corpus start position. </td></tr>
<tr><td class="paramname">aligned_corpus_end</td><td>Location to put target corpus end position. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Boolean: true = all OK, false = problem. </dd></dl>
<p class="reference">References <a class="el" href="cl_8h.html#a52408881c837f635016f788716c715f8">ATT_ALIGN</a>, <a class="el" href="cl_8h.html#a94695de40ed57b9b359981bf6ff78aae">CDA_ENODATA</a>, <a class="el" href="cl_8h.html#a81d0d94deccef135f4d9caaa6fc6b045">CDA_EPOSORNG</a>, <a class="el" href="cl_8h.html#a1fa2e2ab47bd2c689b68a78bdac22028">CDA_OK</a>, <a class="el" href="cdaccess_8c.html#a764796354d59769c4402a8a37dac7e24">check_arg</a>, <a class="el" href="cdaccess_8c.html#af97f2ad4a69c7d0105f9cee4a51b29b8">cl_errno</a>, <a class="el" href="attributes_8h.html#a990b084a9fbbdb7ea6b9defb1073706aa5dde374ce4fc7d54ba6dfeba1c32e26a">CompAlignData</a>, <a class="el" href="struct_t_component.html#a77096a9034bc2a42ed99c36e2038c61e">TComponent::data</a>, <a class="el" href="struct_t_mblob.html#ac103627c1ad15cbec2f22d0abe6d54b6">TMblob::data</a>, <a class="el" href="attributes_8c.html#a4810d7a6ab0920ad1af05e2095cc1841">ensure_component()</a>, <a class="el" href="cdaccess_8c.html#aa4105b1b22bb654232c01df338fadd26">get_alignment()</a>, and <a class="el" href="struct_t_component.html#a439227feff9d7f55384e8780cfc2eb82">TComponent::size</a>.</p>
</div>
</div>
<a id="abe849dbff1f75208a19965f3f84d8347"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abe849dbff1f75208a19965f3f84d8347">◆ </a></span>cl_cpos2boundary()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int cl_cpos2boundary </td>
<td>(</td>
<td class="paramtype"><a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> * </td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>cpos</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Compares the location of a corpus position to the regions of an s-attribute. </p>
<p>This determines whether the specified corpus position is within a region (i.e. a structure, an instance of that s-attribute) on the given s-attribute; and/or on a boundary; or outside a region.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="cl_8h.html#aa5cad0885bdb0275e2746eb23acb3eee" title="cl_cpos2boundary() return flag: specified position is WITHIN a region of this s-attribute">STRUC_INSIDE</a> </dd>
<dd>
<a class="el" href="cl_8h.html#af2cba0898fce4ff1ba3eb2573be6e6c9" title="cl_cpos2boundary() return flag: specified position is AT THE START BOUNDARY OF a region of this s-att...">STRUC_LBOUND</a> </dd>
<dd>
<a class="el" href="cl_8h.html#ad34f5b626103fbe19af852059a2ceaab" title="cl_cpos2boundary() return flag: specified position is AT THE END BOUNDARY OF a region of this s-attri...">STRUC_RBOUND</a></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">a</td><td>The s-attribute on which to search. </td></tr>
<tr><td class="paramname">cpos</td><td>The corpus position to look for. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 if this position is outside a region; some combination of flags if it is within a region or on a bound; or a negative number (error code) in case of error. </dd></dl>
<p class="reference">References <a class="el" href="cl_8h.html#a354fb6ffecc7afc27e9b92164891b05f">CDA_ESTRUC</a>, <a class="el" href="cdaccess_8c.html#ae8f5999fc90bbcd27d47126a48e83adb">cl_cpos2struc2cpos()</a>, <a class="el" href="cdaccess_8c.html#af97f2ad4a69c7d0105f9cee4a51b29b8">cl_errno</a>, <a class="el" href="cl_8h.html#aa5cad0885bdb0275e2746eb23acb3eee">STRUC_INSIDE</a>, <a class="el" href="cl_8h.html#af2cba0898fce4ff1ba3eb2573be6e6c9">STRUC_LBOUND</a>, and <a class="el" href="cl_8h.html#ad34f5b626103fbe19af852059a2ceaab">STRUC_RBOUND</a>.</p>
<p class="reference">Referenced by <a class="el" href="cwb-decode_8c.html#ac910b4c1652889d46d8daad87fab64a6">decode_print_token_sequence()</a>.</p>
</div>
</div>
<a id="a0a7fae031e5da3da00dad86317397657"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a7fae031e5da3da00dad86317397657">◆ </a></span>cl_cpos2id()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int cl_cpos2id </td>
<td>(</td>
<td class="paramtype"><a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> * </td>
<td class="paramname"><em>attribute</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>position</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the integer ID of the item at the specified position on the given p-attribute. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">attribute</td><td>The P-attribute to look on. </td></tr>
<tr><td class="paramname">position</td><td>The corpus position to look at. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The id of the item at that position on this attribute, OR a negative value if there is an error. </dd></dl>
<p class="reference">References <a class="el" href="union___attribute.html#a92ee130caba4408ab4de51c602910107">_Attribute::any</a>, <a class="el" href="cl_8h.html#a3b60fdde6a7c8fbc535efaf526dbcb78">ATT_POS</a>, <a class="el" href="bitio_8c.html#a360188291b10b8dcd6a1807b832428ab">BSclose()</a>, <a class="el" href="bitio_8c.html#a5a9d5735b3848354391b29169d17cd63">BSopen()</a>, <a class="el" href="bitio_8c.html#a61f65178be14b01eb41e7521d078e58e">BSread()</a>, <a class="el" href="bitio_8c.html#a8f2235c665815e48bd973c87d3af8d5f">BSseek()</a>, <a class="el" href="cl_8h.html#a94695de40ed57b9b359981bf6ff78aae">CDA_ENODATA</a>, <a class="el" href="cl_8h.html#a81d0d94deccef135f4d9caaa6fc6b045">CDA_EPOSORNG</a>, <a class="el" href="cl_8h.html#a1fa2e2ab47bd2c689b68a78bdac22028">CDA_OK</a>, <a class="el" href="cdaccess_8c.html#a764796354d59769c4402a8a37dac7e24">check_arg</a>, <a class="el" href="cdaccess_8c.html#af97f2ad4a69c7d0105f9cee4a51b29b8">cl_errno</a>, <a class="el" href="cdaccess_8c.html#ab4a883abda81ebe955ba255d2fee3b43">cl_sequence_compressed()</a>, <a class="el" href="attributes_8h.html#a990b084a9fbbdb7ea6b9defb1073706aae677bd26f25dc9576f68a05761d28a97">CompCorpus</a>, <a class="el" href="attributes_8h.html#a990b084a9fbbdb7ea6b9defb1073706aa565fcc9fb22842508e150068cfb10959">CompHuffCodes</a>, <a class="el" href="attributes_8h.html#a990b084a9fbbdb7ea6b9defb1073706aae0962e9c40590a00e2ae0f07d16f8aa3">CompHuffSeq</a>, <a class="el" href="attributes_8h.html#a990b084a9fbbdb7ea6b9defb1073706aaf0da4a26a4454b6f8728aa27040ffde9">CompHuffSync</a>, <a class="el" href="cdaccess_8c.html#a64c71ee8ceeb924235006e59e9915fc4">COMPRESS_DEBUG</a>, <a class="el" href="cwb-compress-rdx_8c.html#aca3a1fb765418f9b9b1d74051aa88667">corpus</a>, <a class="el" href="struct_t_component.html#a77096a9034bc2a42ed99c36e2038c61e">TComponent::data</a>, <a class="el" href="struct_t_mblob.html#ac103627c1ad15cbec2f22d0abe6d54b6">TMblob::data</a>, <a class="el" href="attributes_8c.html#a4810d7a6ab0920ad1af05e2095cc1841">ensure_component()</a>, <a class="el" href="struct_p_o_s___attribute.html#a993514973b43412ed5067e6cadb313d3">POS_Attribute::hc</a>, <a class="el" href="struct__huffman__code__descriptor.html#a9f59b34b1f25fe00023291b678246bcc">_huffman_code_descriptor::length</a>, <a class="el" href="struct__huffman__code__descriptor.html#a0aef26df3d10f2af6b739a7f3510c288">_huffman_code_descriptor::min_code</a>, <a class="el" href="union___attribute.html#a0810c9dd46344cdbe5887f16094eb72e">_Attribute::pos</a>, <a class="el" href="struct__huffman__code__descriptor.html#abfc7d226cbd54bdfcd491757b23b2628">_huffman_code_descriptor::symbols</a>, <a class="el" href="struct__huffman__code__descriptor.html#a3acec7f2205a546175f9ef94a8d01108">_huffman_code_descriptor::symindex</a>, <a class="el" href="attributes_8h.html#a4846942ef236e17622c5a6ee3aab1abc">SYNCHRONIZATION</a>, <a class="el" href="struct_p_o_s___attribute.html#a9ee2fd952f2b82910c0816c5a11dd07a">POS_Attribute::this_block</a>, and <a class="el" href="struct_p_o_s___attribute.html#a0886b8efaa8025bb76df784be8173727">POS_Attribute::this_block_nr</a>.</p>
<p class="reference">Referenced by <a class="el" href="cdaccess_8c.html#a1fc39a03758d250ec06499a0692da6ff">cl_cpos2str()</a>, <a class="el" href="cwb-huffcode_8c.html#aca4e6f8d3d1cb8c7f9607e181b09c00c">compute_code_lengths()</a>, <a class="el" href="makecomps_8c.html#ab8efba4628c705eb80c1ced23f213293">creat_rev_corpus()</a>, <a class="el" href="cwb-huffcode_8c.html#aecf5eba196fe237f3b33804c8595aefb">decode_check_huff()</a>, <a class="el" href="cqpserver_8c.html#a42af46ccabad07757fffa4c6299d1da1">do_cqi_cl_cpos2id()</a>, <a class="el" href="eval_8c.html#ab122015e265c2b569307b6351be91baf">eval_bool()</a>, <a class="el" href="feature__maps_8c.html#a8bfe40928694bc7b327a106f8a0d4b97">feature_match()</a>, <a class="el" href="groups_8c.html#afa226154c457635c81d523059341bab3">get_group_id()</a>, <a class="el" href="eval_8c.html#a4860bf781d99238f58d189415f35bf15">get_leaf_value()</a>, <a class="el" href="ranges_8c.html#ab219ee0392ac5d55d43c014e9f42e044">i2compare()</a>, <a class="el" href="cwb-scan-corpus_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main()</a>, <a class="el" href="ranges_8c.html#aaf5f006cef0ac7c1fdb5c9d55558c11a">SortSubcorpus()</a>, and <a class="el" href="cwb-makeall_8c.html#a0e221f9ff29909cc9c828ae87ac5455b">validate_revcorp()</a>.</p>
</div>
</div>
<a id="a1fc39a03758d250ec06499a0692da6ff"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1fc39a03758d250ec06499a0692da6ff">◆ </a></span>cl_cpos2str()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char* cl_cpos2str </td>
<td>(</td>
<td class="paramtype"><a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> * </td>
<td class="paramname"><em>attribute</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>position</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the string of the item at the specified position on the given p-attribute. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">attribute</td><td>The P-attribute to look on. </td></tr>
<tr><td class="paramname">position</td><td>The corpus position to look at. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The string of the item at that position on this attribute (pointer to actual data within the attribute, DO NOT FREE!), or NULL if there is an error. </dd></dl>
<p class="reference">References <a class="el" href="cl_8h.html#a3b60fdde6a7c8fbc535efaf526dbcb78">ATT_POS</a>, <a class="el" href="cdaccess_8c.html#a764796354d59769c4402a8a37dac7e24">check_arg</a>, <a class="el" href="cl_8h.html#a1e8640a759409a7a73f2e3a2315106b8">cl_all_ok</a>, <a class="el" href="cdaccess_8c.html#a0a7fae031e5da3da00dad86317397657">cl_cpos2id()</a>, and <a class="el" href="cdaccess_8c.html#aba8848d44ac4ea4d6ad600ac68cddf0e">cl_id2str()</a>.</p>
<p class="reference">Referenced by <a class="el" href="cwb-align-show_8c.html#addcdfcc3ee6d0f36b391811bd2822831">alignshow_print_next_region()</a>, <a class="el" href="concordance_8c.html#a748afadca12eac0165f43ccecfd5dd6d">compose_kwic_token()</a>, <a class="el" href="cwb-decode_8c.html#ac910b4c1652889d46d8daad87fab64a6">decode_print_token_sequence()</a>, <a class="el" href="cqpserver_8c.html#a8f080cc531e3a99f413b025dc35418f0">do_cqi_cl_cpos2str()</a>, <a class="el" href="eval_8c.html#a4860bf781d99238f58d189415f35bf15">get_leaf_value()</a>, <a class="el" href="output_8c.html#ae4129b3d641ceabf75299531ede00317">print_tabulation()</a>, <a class="el" href="ranges_8c.html#a3b6733894b58dd33c5eb79bc58902ab6">SortExternally()</a>, and <a class="el" href="ranges_8c.html#aaf5f006cef0ac7c1fdb5c9d55558c11a">SortSubcorpus()</a>.</p>
</div>
</div>
<a id="ab9dfb6cb8218e98068496f9dccd17243"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9dfb6cb8218e98068496f9dccd17243">◆ </a></span>cl_cpos2struc()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int cl_cpos2struc </td>
<td>(</td>
<td class="paramtype"><a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> * </td>
<td class="paramname"><em>a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>cpos</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the ID number of a structure (instance of an s-attribute) that is found at the given corpus position. </p>
<p>This is a wrapper of the "old" function <a class="el" href="cdaccess_8c.html#aa39544853c4903fcca586cb75accef80" title="Gets the ID number of a structure (instance of an s-attribute) that is found at the given corpus posi...">cl_cpos2struc_oldstyle()</a> that normalises it to standard return value behaviour.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">a</td><td>The s-attribute on which to search. </td></tr>
<tr><td class="paramname">cpos</td><td>The corpus position to look for. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The number of the structure that is found. Or, a negative number for an error code. </dd></dl>
<p class="reference">References <a class="el" href="cdaccess_8c.html#aa39544853c4903fcca586cb75accef80">cl_cpos2struc_oldstyle()</a>, and <a class="el" href="cdaccess_8c.html#af97f2ad4a69c7d0105f9cee4a51b29b8">cl_errno</a>.</p>
<p class="reference">Referenced by <a class="el" href="ranges_8c.html#a84d66c9e816d5a41ad2a419915e422a2">calculate_ranges()</a>, <a class="el" href="cdaccess_8c.html#a472f3d2301cc79e3c796c0b70bf24130">cl_cpos2struc2str()</a>, <a class="el" href="concordance_8c.html#aee98dce4ac84e5d75e0eb34070690b0c">compose_kwic_line()</a>, <a class="el" href="concordance_8c.html#a748afadca12eac0165f43ccecfd5dd6d">compose_kwic_token()</a>, <a class="el" href="groups_8c.html#aa4ac22f6d0e15e45a931f7c796ce46a3">ComputeGroupInternally()</a>, <a class="el" href="cwb-decode_8c.html#a7b400a5aa49cdaa433a3c23422bd08ff">decode_print_surrounding_s_att_values()</a>, <a class="el" href="cwb-decode_8c.html#ac910b4c1652889d46d8daad87fab64a6">decode_print_token_sequence()</a>, <a class="el" href="cqpserver_8c.html#a74018eff16bcc1150a0e2a9049267fc9">do_cqi_cl_cpos2lbound()</a>, <a class="el" href="cqpserver_8c.html#ad1fb89937d6bf55cfc02c9b1e9241e7d">do_cqi_cl_cpos2rbound()</a>, <a class="el" href="cqpserver_8c.html#ad05f841b3c525a4c76ca9b4b88e29424">do_cqi_cl_cpos2struc()</a>, <a class="el" href="eval_8c.html#ad035c435adab9b59d5a6834793d16c30">eval_constraint()</a>, and <a class="el" href="cwb-align_8c.html#a0ddf1224851353fc92bfbff6f499fa97">main()</a>.</p>
</div>
</div>
<a id="ae8f5999fc90bbcd27d47126a48e83adb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8f5999fc90bbcd27d47126a48e83adb">◆ </a></span>cl_cpos2struc2cpos()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int cl_cpos2struc2cpos </td>
<td>(</td>
<td class="paramtype"><a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> * </td>
<td class="paramname"><em>attribute</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>position</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>struc_start</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>struc_end</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the start and end positions of the instance of the given S-attribute found at the specified corpus position. </p>
<p>This function finds one particular instance of the S-attribute, and assigns its start and end points to the locations given as arguments.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">attribute</td><td>The s-attribute to search. </td></tr>
<tr><td class="paramname">position</td><td>The corpus position to search for. </td></tr>
<tr><td class="paramname">struc_start</td><td>Location for the start position of the instance. </td></tr>
<tr><td class="paramname">struc_end</td><td>Location for the end position of the instance.</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Boolean: true for all OK, false for error. </dd></dl>
<p class="reference">References <a class="el" href="cl_8h.html#a81874b84793891ea3b8db58061820f1e">ATT_STRUC</a>, <a class="el" href="cl_8h.html#a94695de40ed57b9b359981bf6ff78aae">CDA_ENODATA</a>, <a class="el" href="cl_8h.html#a354fb6ffecc7afc27e9b92164891b05f">CDA_ESTRUC</a>, <a class="el" href="cl_8h.html#a1fa2e2ab47bd2c689b68a78bdac22028">CDA_OK</a>, <a class="el" href="cdaccess_8c.html#a764796354d59769c4402a8a37dac7e24">check_arg</a>, <a class="el" href="cdaccess_8c.html#af97f2ad4a69c7d0105f9cee4a51b29b8">cl_errno</a>, <a class="el" href="attributes_8h.html#a990b084a9fbbdb7ea6b9defb1073706aad337f7f3c34179c5df185181f18b9b80">CompStrucData</a>, <a class="el" href="struct_t_component.html#a77096a9034bc2a42ed99c36e2038c61e">TComponent::data</a>, <a class="el" href="struct_t_mblob.html#ac103627c1ad15cbec2f22d0abe6d54b6">TMblob::data</a>, <a class="el" href="attributes_8c.html#a4810d7a6ab0920ad1af05e2095cc1841">ensure_component()</a>, <a class="el" href="cdaccess_8c.html#afd4c658f53997dcda5a265cbaf384808">get_previous_mark()</a>, and <a class="el" href="struct_t_component.html#a439227feff9d7f55384e8780cfc2eb82">TComponent::size</a>.</p>
<p class="reference">Referenced by <a class="el" href="ranges_8c.html#a84d66c9e816d5a41ad2a419915e422a2">calculate_ranges()</a>, <a class="el" href="builtins_8c.html#a58b600ee9f8c217ac9a71d26ad0c59e1">call_predefined_function()</a>, <a class="el" href="cdaccess_8c.html#abe849dbff1f75208a19965f3f84d8347">cl_cpos2boundary()</a>, <a class="el" href="cwb-decode_8c.html#a758808c22cf68167d786e84967870b28">decode_expand_context()</a>, <a class="el" href="cwb-decode_8c.html#ac910b4c1652889d46d8daad87fab64a6">decode_print_token_sequence()</a>, <a class="el" href="eval_8c.html#ab122015e265c2b569307b6351be91baf">eval_bool()</a>, <a class="el" href="eval_8c.html#a4860bf781d99238f58d189415f35bf15">get_leaf_value()</a>, <a class="el" href="eval_8c.html#a04ce781dc1e06bdd72158d92df3be69a">meet_mu()</a>, and <a class="el" href="eval_8c.html#a1b631f78bc5c3d5e5f62f03002373fdb">simulate()</a>.</p>
</div>
</div>
<a id="a472f3d2301cc79e3c796c0b70bf24130"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a472f3d2301cc79e3c796c0b70bf24130">◆ </a></span>cl_cpos2struc2str()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char* cl_cpos2struc2str </td>
<td>(</td>
<td class="paramtype"><a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> * </td>
<td class="paramname"><em>struc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>position</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the value associated with the instance of the given s-attribute that occurs at the specified corpus position. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">struc</td><td>The s-attribute to search through. </td></tr>
<tr><td class="paramname">position</td><td>The corpus position being queried. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The value of the instance of the s-attribute, or NULL for error. </dd></dl>
<p class="reference">References <a class="el" href="cl_8h.html#a1fa2e2ab47bd2c689b68a78bdac22028">CDA_OK</a>, <a class="el" href="cdaccess_8c.html#ab9dfb6cb8218e98068496f9dccd17243">cl_cpos2struc()</a>, and <a class="el" href="cdaccess_8c.html#a68c164c901d2ec3304e981bc85320bf5">cl_struc2str()</a>.</p>
<p class="reference">Referenced by <a class="el" href="concordance_8c.html#a67d2fd072987c54cc312095f63c3fd25">compose_kwic_print_structures()</a>, <a class="el" href="cwb-decode_8c.html#ac910b4c1652889d46d8daad87fab64a6">decode_print_token_sequence()</a>, <a class="el" href="groups_8c.html#afa226154c457635c81d523059341bab3">get_group_id()</a>, <a class="el" href="eval_8c.html#a4860bf781d99238f58d189415f35bf15">get_leaf_value()</a>, and <a class="el" href="output_8c.html#ae4129b3d641ceabf75299531ede00317">print_tabulation()</a>.</p>
</div>
</div>
<a id="aa39544853c4903fcca586cb75accef80"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa39544853c4903fcca586cb75accef80">◆ </a></span>cl_cpos2struc_oldstyle()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int cl_cpos2struc_oldstyle </td>
<td>(</td>
<td class="paramtype"><a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> * </td>
<td class="paramname"><em>attribute</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>position</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int * </td>
<td class="paramname"><em>struc_num</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the ID number of a structure (instance of an s-attribute) that is found at the given corpus position. </p>
<p>Depracated function: use cl_cpos2struc.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="cdaccess_8c.html#ab9dfb6cb8218e98068496f9dccd17243" title="Gets the ID number of a structure (instance of an s-attribute) that is found at the given corpus posi...">cl_cpos2struc</a></dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">attribute</td><td>The s-attribute on which to search. </td></tr>
<tr><td class="paramname">position</td><td>The corpus position to look for. </td></tr>
<tr><td class="paramname">struc_num</td><td>Location where the number of the structure that is found will be put. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Boolean: true for all OK, false for error. </dd></dl>
<p class="reference">References <a class="el" href="cl_8h.html#a81874b84793891ea3b8db58061820f1e">ATT_STRUC</a>, <a class="el" href="cl_8h.html#a94695de40ed57b9b359981bf6ff78aae">CDA_ENODATA</a>, <a class="el" href="cl_8h.html#a354fb6ffecc7afc27e9b92164891b05f">CDA_ESTRUC</a>, <a class="el" href="cl_8h.html#a1fa2e2ab47bd2c689b68a78bdac22028">CDA_OK</a>, <a class="el" href="cdaccess_8c.html#a764796354d59769c4402a8a37dac7e24">check_arg</a>, <a class="el" href="cdaccess_8c.html#af97f2ad4a69c7d0105f9cee4a51b29b8">cl_errno</a>, <a class="el" href="attributes_8h.html#a990b084a9fbbdb7ea6b9defb1073706aad337f7f3c34179c5df185181f18b9b80">CompStrucData</a>, <a class="el" href="struct_t_component.html#a77096a9034bc2a42ed99c36e2038c61e">TComponent::data</a>, <a class="el" href="struct_t_mblob.html#ac103627c1ad15cbec2f22d0abe6d54b6">TMblob::data</a>, <a class="el" href="attributes_8c.html#a4810d7a6ab0920ad1af05e2095cc1841">ensure_component()</a>, <a class="el" href="cdaccess_8c.html#afd4c658f53997dcda5a265cbaf384808">get_previous_mark()</a>, and <a class="el" href="struct_t_component.html#a439227feff9d7f55384e8780cfc2eb82">TComponent::size</a>.</p>
<p class="reference">Referenced by <a class="el" href="cdaccess_8c.html#ab9dfb6cb8218e98068496f9dccd17243">cl_cpos2struc()</a>.</p>
</div>
</div>
<a id="af8c753234cd29f1b3c3fc705f023b9cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8c753234cd29f1b3c3fc705f023b9cc">◆ </a></span>cl_delete_stream()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int cl_delete_stream </td>
<td>(</td>
<td class="paramtype"><a class="el" href="cl_8h.html#a6cf0c14af3a84e25245c913864a3e69e">ClPositionStream</a> * </td>
<td class="paramname"><em>ps</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Deletes a PositionStream object. </p>
<p class="reference">References <a class="el" href="bitio_8c.html#a360188291b10b8dcd6a1807b832428ab">BSclose()</a>, and <a class="el" href="cl_8h.html#a9e15a3c725711d9effd623b2f3e225be">cl_free</a>.</p>
<p class="reference">Referenced by <a class="el" href="cwb-compress-rdx_8c.html#ada27dd0455655c13cd8dca8259eefbfb">compress_reversed_index()</a>, and <a class="el" href="cwb-compress-rdx_8c.html#a6e572abf235d74b194d259cb97476a28">decompress_check_reversed_index()</a>.</p>
</div>
</div>
<a id="af0ebc19b9f903e9141e8e281d7e08890"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af0ebc19b9f903e9141e8e281d7e08890">◆ </a></span>cl_dynamic_call()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int cl_dynamic_call </td>
<td>(</td>
<td class="paramtype"><a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> * </td>
<td class="paramname"><em>attribute</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="cl_8h.html#a56fef2f69fc493f91026d7ee4ab65b17">DynCallResult</a> * </td>
<td class="paramname"><em>dcr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="cl_8h.html#a56fef2f69fc493f91026d7ee4ab65b17">DynCallResult</a> * </td>
<td class="paramname"><em>args</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>nr_args</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Calls a dynamic attribute. </p>
<p>This is the attribute access function for dynamic attributes.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">attribute</td><td>The (dynamic) attribute in question. </td></tr>
<tr><td class="paramname">dcr</td><td>Location for the result (*int or *char). </td></tr>
<tr><td class="paramname">args</td><td>Location of the parameters (of *int or *char). </td></tr>
<tr><td class="paramname">nr_args</td><td>Number of parameters. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Boolean: True for all OK, false for error. </dd></dl>
<p class="reference">References <a class="el" href="struct_dynamic___attribute.html#a1f3e6ee316e4a0bda520b620b05194ec">Dynamic_Attribute::arglist</a>, <a class="el" href="cl_8h.html#a2c160b428bf385a597f51dcfaa38d9cc">ATT_DYN</a>, <a class="el" href="cl_8h.html#a43ba9604062648696f65d3227fee02a6">ATTAT_FLOAT</a>, <a class="el" href="cl_8h.html#a8afc9ead2ac64d5c1659c8eed41c0ec6">ATTAT_INT</a>, <a class="el" href="cl_8h.html#a0684eb3cf6877f3455cbc492624b2e7e">ATTAT_NONE</a>, <a class="el" href="cl_8h.html#a68e9660f2717ebe3586aeb3f4ee4cc15">ATTAT_PAREF</a>, <a class="el" href="cl_8h.html#abc045d0047308c6eb000a3ae68f018e2">ATTAT_POS</a>, <a class="el" href="cl_8h.html#aa709ce27c2fe20647bf8a47a808fba8f">ATTAT_STRING</a>, <a class="el" href="cl_8h.html#ace54d1851d841e59d40f887e6046e320">ATTAT_VAR</a>, <a class="el" href="struct_dynamic___attribute.html#adff903bb8c3d7f906a4d308594114a34">Dynamic_Attribute::call</a>, <a class="el" href="cl_8h.html#a21237261bf475ae59404729ec2562913">CDA_EARGS</a>, <a class="el" href="cl_8h.html#a1fa2e2ab47bd2c689b68a78bdac22028">CDA_OK</a>, <a class="el" href="struct___d_c_r.html#aed280317dcbdff54b4551a9d3f8143b8">_DCR::charres</a>, <a class="el" href="cdaccess_8c.html#a764796354d59769c4402a8a37dac7e24">check_arg</a>, <a class="el" href="globals_8c.html#a5c4290325b240eac5fe1542a8743286a">cl_debug</a>, <a class="el" href="cdaccess_8c.html#af97f2ad4a69c7d0105f9cee4a51b29b8">cl_errno</a>, <a class="el" href="cl_8h.html#ad68dfe0ca2fbad5052e8213a06f5b4ba">CL_MAX_LINE_LENGTH</a>, <a class="el" href="cl_8h.html#a1afd81ceb72fcd8e9e8e91983a0528a8">cl_strdup()</a>, <a class="el" href="union___attribute.html#a74f8d07f045cdfbd5e3bc4e732adb983">_Attribute::dyn</a>, <a class="el" href="struct___d_c_r.html#a81932566160a1d624e8d49bcc4702b56">_DCR::floatres</a>, <a class="el" href="struct___d_c_r.html#a301b87715f22d861c1729f6a14d5dbf3">_DCR::intres</a>, <a class="el" href="struct__dyn__arg.html#aa0fd113192b7b4b24d0cf320e9b273d0">_dyn_arg::next</a>, <a class="el" href="struct_dynamic___attribute.html#a4be699527cc53d602c9a568bf536dd04">Dynamic_Attribute::res_type</a>, <a class="el" href="struct__dyn__arg.html#ac765329451135abec74c45e1897abf26">_dyn_arg::type</a>, <a class="el" href="struct___d_c_r.html#ac765329451135abec74c45e1897abf26">_DCR::type</a>, and <a class="el" href="struct___d_c_r.html#a2c6f5abe3b3de913d87dd5ff0569a82b">_DCR::value</a>.</p>
<p class="reference">Referenced by <a class="el" href="eval_8c.html#a4860bf781d99238f58d189415f35bf15">get_leaf_value()</a>.</p>
</div>
</div>
<a id="ab06baef993c0e0137005d1be6da08322"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab06baef993c0e0137005d1be6da08322">◆ </a></span>cl_dynamic_numargs()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int cl_dynamic_numargs </td>
<td>(</td>
<td class="paramtype"><a class="el" href="cl_8h.html#a2208213b2f6ba9c8a702b3c592086496">Attribute</a> * </td>
<td class="paramname"><em>attribute</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Count the number of arguments on a dynamic attribute's argument list. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">