IDZEBRA  2.1.2
Data Structures | Typedefs | Functions
snippet.h File Reference
#include <idzebra/util.h>

Go to the source code of this file.

Data Structures

struct  zebra_snippet_word
 

Typedefs

typedef struct zebra_snippets zebra_snippets
 
typedef struct zebra_snippet_word zebra_snippet_word
 

Functions

zebra_snippetszebra_snippets_create (void)
 
void zebra_snippets_destroy (zebra_snippets *l)
 
void zebra_snippets_append (zebra_snippets *l, zint seqno, int ws, int ord, const char *term)
 
void zebra_snippets_appendn (zebra_snippets *l, zint seqno, int ws, int ord, const char *term, size_t term_len)
 
void zebra_snippets_append_match (zebra_snippets *l, zint seqno, int ws, int ord, const char *term, size_t term_len, int match)
 
zebra_snippet_wordzebra_snippets_list (zebra_snippets *l)
 
const zebra_snippet_wordzebra_snippets_constlist (const zebra_snippets *l)
 
void zebra_snippets_log (const zebra_snippets *l, int log_level, int all)
 
zebra_snippetszebra_snippets_window (const zebra_snippets *doc, const zebra_snippets *hit, int window_size)
 
void zebra_snippets_ring (zebra_snippets *doc, const zebra_snippets *hit, int before, int after)
 
const struct zebra_snippet_wordzebra_snippets_lookup (const zebra_snippets *doc, const zebra_snippets *hit)
 

Typedef Documentation

Definition at line 39 of file snippet.h.

Definition at line 38 of file snippet.h.

Function Documentation

void zebra_snippets_append ( zebra_snippets l,
zint  seqno,
int  ws,
int  ord,
const char *  term 
)
void zebra_snippets_append_match ( zebra_snippets l,
zint  seqno,
int  ws,
int  ord,
const char *  term,
size_t  term_len,
int  match 
)
void zebra_snippets_appendn ( zebra_snippets l,
zint  seqno,
int  ws,
int  ord,
const char *  term,
size_t  term_len 
)
const zebra_snippet_word* zebra_snippets_constlist ( const zebra_snippets l)
zebra_snippets* zebra_snippets_create ( void  )
void zebra_snippets_destroy ( zebra_snippets l)

Definition at line 45 of file snippet.c.

References zebra_snippets::nmem.

Referenced by scan_save_set(), snippet_fetch(), and zebra_records_retrieve().

zebra_snippet_word* zebra_snippets_list ( zebra_snippets l)

Definition at line 94 of file snippet.c.

References zebra_snippets::front.

Referenced by zebra_snippets_clear(), and zebra_snippets_ring().

void zebra_snippets_log ( const zebra_snippets l,
int  log_level,
int  all 
)
const struct zebra_snippet_word* zebra_snippets_lookup ( const zebra_snippets doc,
const zebra_snippets hit 
)
void zebra_snippets_ring ( zebra_snippets doc,
const zebra_snippets hit,
int  before,
int  after 
)
zebra_snippets* zebra_snippets_window ( const zebra_snippets doc,
const zebra_snippets hit,
int  window_size 
)