File: tre-filter.h

package info (click to toggle)
tre 0.7.2-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,144 kB
  • ctags: 806
  • sloc: ansic: 9,636; sh: 8,959; makefile: 207; python: 36; sed: 16
file content (19 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19




typedef struct {
  unsigned char ch;
  unsigned char count;
} tre_filter_profile_t;

typedef struct {
  /* Length of the window where the character counts are kept. */
  int window_len;
  /* Required character counts table. */
  tre_filter_profile_t *profile;
} tre_filter_t;


int
tre_filter_find(const unsigned char *str, size_t len, tre_filter_t *filter);