rulexdb_dataset_name(3)

rulexdb_dataset_name3

Get pointer to the dataset name string

Usage

#include <rulexdb.h>

const char *rulexdb_dataset_name(int item_type);

Overview

The rulexdb_dataset_name() function gets pointer to the constant string containing internal name of the dataset identified by item_type argument that may accept one of the following 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.

Note that the dataset must be specified explicitly. The value RULEXDB_DEFAULT is not allowed here.

Return value

The rulexdb_dataset_name() function returns pointer to the dataset name string or NULL for unknown dataset.

Author

Igor B. Poretsky <[email protected]>.

From librulexdb-dev 3.8.6-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.