| 39 #include <regex.h> |
39 #include <regex.h> |
| 40 #endif |
40 #endif |
| 41 |
41 |
| 42 typedef struct { |
42 typedef struct { |
| 43 string_list_t* pattern_list; /* even entries: start ; odd entries: end */ |
43 string_list_t* pattern_list; /* even entries: start ; odd entries: end */ |
| 44 regex_t** compiled_patterns; |
44 regex_t* compiled_patterns; |
| 45 size_t compiled_pattern_count; |
45 size_t compiled_pattern_count; |
| 46 unsigned int pattern_match; /* save position of end pattern to match - |
46 unsigned int pattern_match; /* save position of end pattern to match - |
| 47 NULL when a start pattern shall match first */ |
47 NULL when a start pattern shall match first */ |
| 48 unsigned int matched_counted; |
48 unsigned int matched_counted; |
| 49 bool count_chars; |
49 bool count_chars; |