1
.\" Hey, EMACS: -*- nroff -*-
2
.TH RULEXDB_SEQ 3 "February 20, 2012"
4
rulexdb_seq \- sequential retrieving dictionary items from the rulex database
9
.BI "int rulexdb_search(RULEXDB *" rulexdb ", char *" key \
10
", char *" value ", int " item_type ", int " mode );
15
function sequentially fetches lexical records one by one. It's
16
operations are not disturbed by the key-based search.
20
references the rulex database.
26
must point to the buffers with enough space for retrieved data.
30
specifies the dictionary dataset from which data will be retrieved. It
31
may accept one of the following values:
34
Extract data from the \fBImplicit\fP dictionary.
37
Extract data from the \fBExplicit\fP dictionary.
39
Note that the data type must be specified explicitly. The value
43
When fetching data from the \fBExplicit\fP dictionary the correction
44
rules will be applied. To prevent this feature you can specify
45
.B RULEXDB_EXCEPTION_RAW
47
.BR RULEXDB_EXCEPTION .
51
argument specifies direction of the dictionary scanning. Allowed
53
.BR DB_FIRST ", " DB_NEXT ", " DB_PREV ", or " DB_LAST
54
as defined for the underlying database library.
60
which is zero upon success, positive value
62
when no more records can be fetched, or negative error code if
67
Referenced database has not been opened, internal data structures are
68
corrupted or some other general failure has occurred.
71
Internal memory allocation error.
74
Invalid parameters are specified.
76
.BR rulexdb_classify (3),
78
.BR rulexdb_dataset_name (3),
79
.BR rulexdb_discard_dictionary (3),
80
.BR rulexdb_discard_ruleset (3),
81
.BR rulexdb_fetch_rule (3),
82
.BR rulexdb_lexbase (3),
83
.BR rulexdb_load_ruleset (3),
85
.BR rulexdb_remove_item (3),
86
.BR rulexdb_remove_rule (3),
87
.BR rulexdb_remove_this_item (3),
88
.BR rulexdb_retrieve_item (3),
89
.BR rulexdb_search (3),
90
.BR rulexdb_subscribe_item (3),
91
.BR rulexdb_subscribe_rule (3)
93
Igor B. Poretsky <poretsky@mlbox.ru>.