support expr offset match

This commit is contained in:
liuwentan
2023-02-09 22:13:15 +08:00
parent c1902f8deb
commit d5e6808e1f
41 changed files with 3046 additions and 711 deletions

View File

@@ -47,6 +47,16 @@ typedef struct {
/* pattern type */
int type;
/* default 0(sensitive) 1(insensitive) */
int case_sensitive;
/* (0)sub string match (1)complete match */
int match_mode;
/* just match in scan_data's range of [l_offset, r_offset] */
int l_offset;
int r_offset;
/* start pointer of pattern */
char *pat;
/* pattern length */