RULEXDB_DATASET_NAME(3)

πŸ’– RULEXDB_DATASET_NAME πŸ’–

okay bestie, welcome to the Library Functions Manual entry for rulexdb_dataset_name(3) β€” yes that's the section 3 one, the C library one, not some random shell command, iykyk πŸ¦‹


✨ NAME ✨

rulexdb_dataset_name β€” get a pointer to the dataset name string πŸŽ€


🌸 SYNOPSIS 🌸

#include <rulexdb.h>

const char *rulexdb_dataset_name(int item_type);

πŸ’… DESCRIPTION πŸ’…

so like, rulexdb_dataset_name() gets you a pointer to the constant string that holds the internal name of the dataset identified by the item_type argument. and item_type can be one of these iconic values:

  • RULEXDB_LEXBASE β€” the Implicit dictionary.
  • RULEXDB_EXCEPTION β€” the Explicit dictionary.
  • RULEXDB_LEXCLASS β€” the Classifiers ruleset.
  • RULEXDB_PREFIX β€” the Prefix detectors ruleset.
  • RULEXDB_RULE β€” the General ruleset.
  • RULEXDB_CORRECTOR β€” the Correctors ruleset.
⚠️ not me having to say this but: the dataset must be specified explicitly. RULEXDB_DEFAULT is not allowed here. nope. not a vibe. 🚫

🌈 RETURN VALUE 🌈

rulexdb_dataset_name() returns a pointer to the dataset name string, or NULL for an unknown dataset. that's it, that's the tea πŸ“


🫢 SEE ALSO 🫢

rulexdb_classify(3), rulexdb_close(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_item(3), rulexdb_subscribe_rule(3)

like, go read those too, they're all part of the same friend group πŸ’œ


πŸ‘‘ AUTHOR πŸ‘‘

Igor B. Poretsky <poretsky@mlbox.ru> β€” absolute legend, periodt. πŸ’…


okay that's the whole page!! this beauty is dated February 22, 2012 and it comes to you from the Library Functions Manual, same as the RULEXDB_DATASET_NAME(3) title up top. mwah, go forth and name your datasets bestie πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from