Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

sfksearch.h File Reference

Go to the source code of this file.

Defines

#define ALPHABET_SIZE   256

Typedefs

typedef _ktriepattern KTRIEPATTERN
typedef _ktrienode KTRIENODE

Functions

KTRIE_STRUCTKTrieNew ()
int KTrieAddPattern (KTRIE_STRUCT *ts, unsigned char *P, int n, int nocase, void *id)
int KTrieCompile (KTRIE_STRUCT *ts)
int KTrieSearch (KTRIE_STRUCT *ts, unsigned char *T, int n, int(*match)(void *id, int index, void *data), void *data)


Define Documentation

#define ALPHABET_SIZE   256
 

Definition at line 28 of file sfksearch.h.


Typedef Documentation

typedef struct _ktrienode KTRIENODE
 

typedef struct _ktriepattern KTRIEPATTERN
 


Function Documentation

int KTrieAddPattern KTRIE_STRUCT ts,
unsigned char *  P,
int  n,
int  nocase,
void *  id
 

Definition at line 156 of file sfksearch.c.

References KTrieNewPattern(), KTRIE_STRUCT::memory, _ktriepattern::nocase, KTRIE_STRUCT::npats, NULL, and KTRIE_STRUCT::patrn.

Referenced by mpseAddPattern().

int KTrieCompile KTRIE_STRUCT ts  ) 
 

Definition at line 377 of file sfksearch.c.

References Build_Bad_Character_Shifts(), KTrieInsert(), _ktriepattern::next, and KTRIE_STRUCT::patrn.

Referenced by mpsePrepPatterns().

KTRIE_STRUCT* KTrieNew  ) 
 

Definition at line 108 of file sfksearch.c.

References init_xlatcase(), KTRIE_MALLOC(), KTRIE_STRUCT::memory, memset, KTRIE_STRUCT::nchars, and KTRIE_STRUCT::npats.

Referenced by mpseNew().

int KTrieSearch KTRIE_STRUCT ts,
unsigned char *  T,
int  n,
int(*)(void *id, int index, void *data)  match,
void *  data
 

Definition at line 554 of file sfksearch.c.

References KTRIE_STRUCT::bcSize, KTrieSearchBC(), and KTrieSearchNoBC().

Referenced by mpseSearch().


Generated on Sun May 14 14:51:26 2006 by  doxygen 1.4.2