#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_STRUCT * | acsmNew () |
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 () |
|
Definition at line 46 of file acsmx.h. Referenced by acsmCompile(), AddPatternStates(), Build_NFA(), and Convert_NFA_To_DFA(). |
|
|
|
|
|
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(). |
|
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(). |
|
Definition at line 617 of file acsmx.c. References _acsm_pattern::next, and NULL. Referenced by mpseFree(). |
|
Definition at line 454 of file acsmx.c. References init_xlatcase(), MEMASSERT, and memset. Referenced by mpseNew(). |
|
Definition at line 671 of file acsmx.c. Referenced by mpsePrintDetail(). |
|
|
|
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(). |