RULEXDB_REMOVE_RULE(3)
β¨ RULEXDB_REMOVE_RULE β¨
okay bestie, welcome to the rulexdb_remove_rule(3) page from the Library Functions Manual π this one's short, it's sweet, and it does exactly one thing: it yeets a rule out of your rulex database. no cap.
πΈ NAME πΈ
rulexdb_remove_rule β remove specified rule from the rulex database π
π¦ SYNOPSIS π¦
#include <rulexdb.h>
int rulexdb_remove_rule(RULEXDB *rulexdb, int rule_type, int position);
like, that's it. three args, one int back. she's simple, she's effective π
π DESCRIPTION π
so the rulexdb_remove_rule() function removes a rule identified by its type and position in the ruleset from the rulex database referenced by the rulexdb argument. that's the whole vibe. find the rule, pull it out, done π
the rule_type argument specifies the rule type. it may accept one of the following values:
RULEXDB_LEXCLASSβ the rule is the word classifier and belongs to the Classifiers dataset β¨RULEXDB_PREFIXβ the requested rule should be removed from the Prefix detectors ruleset π¦RULEXDB_RULEβ the requested rule should be removed from the General rules dataset πΏRULEXDB_CORRECTORβ the rule is a correction rule that belongs to the Correctors dataset π₯
and the position argument defines position of the requested rule in the ruleset. like, which one? that one. index-style, bestie π
β RETURN VALUE β
the rulexdb_remove_rule() function returns RULEXDB_SUCCESS which is zero when specified rule was successfully removed, positive value RULEXDB_SPECIAL when there is no rule with such number in specified ruleset, or negative error code otherwise.
so: 0 = slay, positive = that rule number literally doesn't exist, negative = something went wrong π
π ERRORS π
RULEXDB_FAILUREβ referenced database has not been opened, internal data structures are corrupted or some other general failure has occurred. it's giving chaos πRULEXDB_EPARMβ the argumentrulexdborrule_typehas an invalid value. one of your inputs is not it πRULEXDB_EACCESSβ the database is not opened for updating. read-only energy, and not in a cute way π«
π SEE ALSO π
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_this_item(3), rulexdb_retrieve_item(3), rulexdb_search(3), rulexdb_seq(3), rulexdb_subscribe_item(3), rulexdb_subscribe_rule(3)
go read the whole friend group, iykyk π«Ά
π AUTHOR π
Igor B. Poretsky <poretsky@mlbox.ru>. king behavior, honestly π
and that's the page!! this iconic lil number dropped February 19, 2012 as part of the Library Functions Manual for rulexdb. take care of her, she just deletes rules and minds her own business π§β
π¦ where this page comes from
- debian trixie: librulexdb-dev 3.8.6-1 Β· LGPL-2.1-or-later
- ubuntu questing: librulexdb-dev 3.8.6-1
- ubuntu resolute: librulexdb-dev 3.8.6-1build1 Β· LGPL-2.1-or-later
- ubuntu stonking: librulexdb-dev 3.8.6-1build1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms