23 lines
415 B
C
23 lines
415 B
C
#ifndef _REGEX_TABLE_H
|
|
#define _REGEX_TABLE_H
|
|
|
|
typedef enum {
|
|
REGEX_SVR_PORT = 0,
|
|
REGEX_IP_ADDR = 1,
|
|
REGEX_DT = 2,
|
|
REGEX_TIME = 3,
|
|
|
|
// add before this line
|
|
REGEX_MAX
|
|
} REGEX_TBL_ID;
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
int pcre_match(int regId, const char *pStr);
|
|
int pcre_match_str(const char* pRegex, const char *pStr);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif |