|
YAZ 5.35.1
|
Removes stop words from terms in RPN tree. More...
Go to the source code of this file.
Data Structures | |
| struct | ccl_stop_info |
| struct | ccl_stop_words |
Functions | |
| static void | append_removed_item (ccl_stop_words_t csw, const char *qname, const char *t, size_t len) |
| ccl_stop_words_t | ccl_stop_words_create (void) |
| creates stop words handle | |
| void | ccl_stop_words_destroy (ccl_stop_words_t csw) |
| destroys stop words handle | |
| struct ccl_rpn_node * | ccl_remove_stop_r (ccl_stop_words_t csw, CCL_bibset bibset, struct ccl_rpn_node *p) |
| int | ccl_stop_words_tree (ccl_stop_words_t csw, CCL_bibset bibset, struct ccl_rpn_node **t) |
| removes stop words from RPN tree | |
| int | ccl_stop_words_info (ccl_stop_words_t csw, int idx, const char **qualname, const char **term) |
| returns information about removed "stop" words | |
Removes stop words from terms in RPN tree.
Definition in file ccl_stop_words.c.
|
static |
Definition at line 30 of file ccl_stop_words.c.
References ccl_stop_info::next, ccl_stop_words::nmem, nmem_malloc(), nmem_strdup(), ccl_stop_info::qualname, ccl_stop_words::removed_items, and ccl_stop_info::term.
Referenced by ccl_remove_stop_r().
| struct ccl_rpn_node * ccl_remove_stop_r | ( | ccl_stop_words_t | csw, |
| CCL_bibset | bibset, | ||
| struct ccl_rpn_node * | p | ||
| ) |
Definition at line 73 of file ccl_stop_words.c.
References append_removed_item(), ccl_stop_words::blank_chars, ccl_remove_stop_r(), CCL_RPN_AND, ccl_rpn_delete(), CCL_RPN_NOT, CCL_RPN_OR, CCL_RPN_PROX, CCL_RPN_SET, CCL_RPN_TERM, ccl_search_stop(), ccl_rpn_node::kind, ccl_rpn_node::p, ccl_rpn_node::qual, ccl_stop_words::removed_items, ccl_rpn_node::t, ccl_rpn_node::term, and ccl_rpn_node::u.
Referenced by ccl_remove_stop_r(), and ccl_stop_words_tree().
| ccl_stop_words_t ccl_stop_words_create | ( | void | ) |
creates stop words handle
Definition at line 53 of file ccl_stop_words.c.
References ccl_stop_words::blank_chars, ccl_stop_words::nmem, nmem_create(), ccl_stop_words::removed_items, xmalloc, and xstrdup.
| void ccl_stop_words_destroy | ( | ccl_stop_words_t | csw | ) |
destroys stop words handle
Definition at line 63 of file ccl_stop_words.c.
References ccl_stop_words::blank_chars, ccl_stop_words::nmem, nmem_destroy(), and xfree.
| int ccl_stop_words_info | ( | ccl_stop_words_t | csw, |
| int | idx, | ||
| const char ** | qualname, | ||
| const char ** | term | ||
| ) |
returns information about removed "stop" words
Definition at line 178 of file ccl_stop_words.c.
References ccl_stop_info::next, ccl_stop_info::qualname, ccl_stop_words::removed_items, and ccl_stop_info::term.
| int ccl_stop_words_tree | ( | ccl_stop_words_t | csw, |
| CCL_bibset | bibset, | ||
| struct ccl_rpn_node ** | t | ||
| ) |
removes stop words from RPN tree
Definition at line 162 of file ccl_stop_words.c.
References ccl_remove_stop_r(), ccl_stop_words::nmem, nmem_reset(), ccl_stop_words::removed_items, and ccl_rpn_node::t.