RULEXDB_SUBSCRIBE_ITEM(3) | Library Functions Manual | RULEXDB_SUBSCRIBE_ITEM(3) |
rulexdb_subscribe_item - put new dictionary item into the rulex database
#include <rulexdb.h> int rulexdb_subscribe_item(RULEXDB *rulexdb, const char *key, const char *value, int item_type, int overwrite);
The rulexdb_subscribe_item() function inserts new item into one of the dictionary datasets in the database referenced by rulexdb argument.
The argument key points to a text string containing the original word.
The argument value points to the corresponding pronunciation string.
The argument item_type specifies target dataset. It may accept one of the following values:
The argument overwrite If true (non-zero) the new item will replace already existing one with the same key if any. Otherwise the new item will not be stored.
The rulexdb_subscribe_item() function returns RULEXDB_SUCCESS which is zero when specified item was successfully subscribed, positive value RULEXDB_SPECIAL when specified key already exists in the dictionary, or negative error code otherwise.
rulexdb_classify(3), rulexdb_close(3), rulexdb_dataset_name(3), rulexdb_discard_dictionary(3), rulexdb_discard_ruleset(3), rulexdb_fetch_rule(3), rulexdb_lexbase(3), rulexdb_load_ruleset(3), rulexdb_open(3), rulexdb_remove_item(3), rulexdb_remove_rule(3), rulexdb_remove_this_item(3), rulexdb_retrieve_item(3), rulexdb_search(3), rulexdb_seq(3), rulexdb_subscribe_rule(3)
Igor B. Poretsky <poretsky@mlbox.ru>.
February 19, 2012 |