32 const char *t,
size_t len)
43 memcpy(csi->
term, t, len);
44 csi->
term[len] =
'\0';
48 csip = &(*csip)->
next;
106 char *cp =
p->
u.
t.term;
121 size_t len = cp - cp0;
129 memmove(cp0, cp, strlen(cp)+1);
141 char *cp =
p->
u.
t.term + strlen(
p->
u.
t.term);
144 if (cp ==
p->
u.
t.term)
179 const char **qualname,
const char **
term)
183 while (csi && i < idx)
Header with public definitions for CCL.
struct ccl_stop_words * ccl_stop_words_t
stop words handle (pimpl)
int ccl_stop_words_tree(ccl_stop_words_t csw, CCL_bibset bibset, struct ccl_rpn_node **t)
removes stop words from RPN tree
void ccl_stop_words_destroy(ccl_stop_words_t csw)
destroys stop words handle
ccl_stop_words_t ccl_stop_words_create(void)
creates stop words handle
static void append_removed_item(ccl_stop_words_t csw, const char *qname, const char *t, size_t len)
int ccl_stop_words_info(ccl_stop_words_t csw, int idx, const char **qualname, const char **term)
returns information about removed "stop" words
struct ccl_rpn_node * ccl_remove_stop_r(ccl_stop_words_t csw, CCL_bibset bibset, struct ccl_rpn_node *p)
void ccl_rpn_delete(struct ccl_rpn_node *rpn)
int ccl_search_stop(CCL_bibset bibset, const char *qname, const char *src_str, size_t src_len)
void nmem_reset(NMEM n)
releases memory associaged with an NMEM handle
NMEM nmem_create(void)
returns new NMEM handle
void * nmem_malloc(NMEM n, size_t size)
allocates memory block on NMEM handle
void nmem_destroy(NMEM n)
destroys NMEM handle and memory associated with it
Header for Nibble Memory functions.
char * nmem_strdup(NMEM mem, const char *src)
allocates string on NMEM handle (similar strdup)
struct ccl_rpn_node * p[3]
Boolean including proximity 0=left, 1=right, 2=prox parms.
struct ccl_rpn_node::@8::@9 t
Attributes + Term.
enum ccl_rpn_kind kind
node type, one of CCL_RPN_AND, CCL_RPN_OR, etc
struct ccl_stop_info * next
struct ccl_stop_info * removed_items
#define xstrdup(s)
utility macro which calls xstrdup_f
#define xfree(x)
utility macro which calls xfree_f
#define xmalloc(x)
utility macro which calls malloc_f