1
.\" Hey, EMACS: -*- nroff -*-
2
.TH RULEXDB_FETCH_RULE 3 "February 19, 2012"
4
rulexdb_fetch_rule \- extract specified rule from the rulex database
9
.BI "char *rulexdb_fetch_rule(RULEXDB *" rulexdb ", int " rule_type \
14
.BR rulexdb_fetch_rule ()
15
function retrieves a rule identified by its type and position in the
16
ruleset from the rulex database
23
specifies the rule type. It may accept one of the following values:
26
The rule is the word classifier and belongs to the \fBClassifiers\fP
30
The rule describes prefix detection and replacement and belongs to the
31
\fBPrefix detectors\fP ruleset.
34
The requested rule should be extracted from the \fBGeneral\fP rules
38
The rule is a correction rule that belongs to the \fBCorrectors\fP
43
defines position of the requested rule in the ruleset.
46
.BR rulexdb_fetch_rule ()
47
function returns pointer to the textual representation of the
48
extracted rule. This pointer remains valid until the next database
49
operation. Otherwise, NULL is returned.
51
.BR rulexdb_classify (3),
53
.BR rulexdb_dataset_name (3),
54
.BR rulexdb_discard_dictionary (3),
55
.BR rulexdb_discard_ruleset (3),
56
.BR rulexdb_lexbase (3),
57
.BR rulexdb_load_ruleset (3),
59
.BR rulexdb_remove_item (3),
60
.BR rulexdb_remove_rule (3),
61
.BR rulexdb_remove_this_item (3),
62
.BR rulexdb_retrieve_item (3),
63
.BR rulexdb_search (3),
65
.BR rulexdb_subscribe_item (3),
66
.BR rulexdb_subscribe_rule (3)
68
Igor B. Poretsky <poretsky@mlbox.ru>.