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

acsmx.h File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Defines

#define ALPHABET_SIZE   256
#define ACSM_FAIL_STATE   -1

Typedefs

typedef _acsm_pattern ACSM_PATTERN

Functions

ACSM_STRUCTacsmNew ()
int acsmAddPattern (ACSM_STRUCT *p, unsigned char *pat, int n, int nocase, int offset, int depth, void *id, int iid)
int acsmCompile (ACSM_STRUCT *acsm)
int acsmSearch (ACSM_STRUCT *acsm, unsigned char *T, int n, int(*Match)(void *id, int index, void *data), void *data)
void acsmFree (ACSM_STRUCT *acsm)
int acsmPrintDetailInfo (ACSM_STRUCT *)
int acsmPrintSummaryInfo ()


Define Documentation

#define ACSM_FAIL_STATE   -1
 

Definition at line 46 of file acsmx.h.

Referenced by acsmCompile(), AddPatternStates(), Build_NFA(), and Convert_NFA_To_DFA().

#define ALPHABET_SIZE   256
 

Definition at line 44 of file acsmx.h.


Typedef Documentation

typedef struct _acsm_pattern ACSM_PATTERN
 


Function Documentation

int acsmAddPattern ACSM_STRUCT p,
unsigned char *  pat,
int  n,
int  nocase,
int  offset,
int  depth,
void *  id,
int  iid
 

Definition at line 470 of file acsmx.c.

References ACSM_STRUCT::acsmPatterns, _acsm_pattern::casepatrn, ConvertCaseEx(), _acsm_pattern::depth, _acsm_pattern::id, _acsm_pattern::iid, MEMASSERT, memcpy, _acsm_pattern::n, _acsm_pattern::next, _acsm_pattern::nocase, _acsm_pattern::offset, and _acsm_pattern::patrn.

Referenced by mpseAddPattern().

int acsmCompile ACSM_STRUCT acsm  ) 
 

Definition at line 496 of file acsmx.c.

References ACSM_FAIL_STATE, ACSM_STRUCT::acsmMaxStates, ACSM_STRUCT::acsmNumStates, ACSM_STRUCT::acsmPatterns, ACSM_STRUCT::acsmStateTable, AddPatternStates(), ALPHABET_SIZE, Build_NFA(), Convert_NFA_To_DFA(), MEMASSERT, memset, _acsm_pattern::n, _acsm_pattern::next, ACSM_STATETABLE::NextState, and NULL.

Referenced by mpsePrepPatterns().

void acsmFree ACSM_STRUCT acsm  ) 
 

Definition at line 617 of file acsmx.c.

References _acsm_pattern::next, and NULL.

Referenced by mpseFree().

ACSM_STRUCT* acsmNew  ) 
 

Definition at line 454 of file acsmx.c.

References init_xlatcase(), MEMASSERT, and memset.

Referenced by mpseNew().

int acsmPrintDetailInfo ACSM_STRUCT  ) 
 

Definition at line 671 of file acsmx.c.

Referenced by mpsePrintDetail().

int acsmPrintSummaryInfo  ) 
 

int acsmSearch ACSM_STRUCT acsm,
unsigned char *  T,
int  n,
int(*)(void *id, int index, void *data)  Match,
void *  data
 

Definition at line 565 of file acsmx.c.

References ACSM_STRUCT::acsmStateTable, _acsm_pattern::casepatrn, ConvertCaseEx(), _acsm_pattern::id, ACSM_STATETABLE::MatchList, memcmp(), _acsm_pattern::n, _acsm_pattern::next, ACSM_STATETABLE::NextState, _acsm_pattern::nocase, and NULL.

Referenced by mpseSearch().


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