2019-09-24 11:59:52 +00:00
|
|
|
#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);
|
2019-10-08 01:05:52 +00:00
|
|
|
int pcre_match_str(const char* pRegex, const char *pStr);
|
2019-09-24 11:59:52 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|