1
.\" Hey, EMACS: -*- nroff -*-
2
.TH RULEXDB_RETRIEVE_ITEM 3 "June 22, 2023"
4
rulexdb_retrieve_item \- retrieve an item from the rulex database
9
.BI "int rulexdb_retrieve_item(RULEXDB *" rulexdb \
10
", const char *" key ", char *" value ", int " item_type );
14
.BR rulexdb_retrieve_item ()
15
function retrieves an item from one of the dictionary datasets in the
22
points to a text string containing the word to be fetched.
26
points to the memory area where corresponding pronunciation string
31
specifies target dataset. It may accept one of the following values:
34
The item should be fetched from the \fBImplicit\fP dictionary and,
35
therefore, it represents a lexical base.
38
The item representing an exception should be fetched from the
39
\fBExplicit\fP dictionary.
42
Target dictionary should be guessed according to the key specified: if
43
it represents any lexical base, then \fBImplicit\fP dictionary will be
44
chosen, otherwise the \fBExplicit\fP dictionary will be used.
47
.BR rulexdb_retrieve_item ()
50
which is zero when specified item was successfully retrieved, positive
53
when specified key does not exist in the dictionary, or
54
negative error code otherwise.
58
Referenced database has not been opened, internal data structures are
59
corrupted or some other general failure has occurred.
71
.BR rulexdb_classify (3),
73
.BR rulexdb_dataset_name (3),
74
.BR rulexdb_discard_dictionary (3),
75
.BR rulexdb_discard_ruleset (3),
76
.BR rulexdb_fetch_rule (3),
77
.BR rulexdb_lexbase (3),
78
.BR rulexdb_load_ruleset (3),
80
.BR rulexdb_remove_item (3),
81
.BR rulexdb_remove_rule (3),
82
.BR rulexdb_remove_this_item (3),
83
.BR rulexdb_search (3),
85
.BR rulexdb_subscribe_item (3),
86
.BR rulexdb_subscribe_rule (3)
88
Igor B. Poretsky <poretsky@mlbox.ru>.