00001 #line 4191 "./lpsrc/tre.pak" 00002 00003 00004 00005 00006 typedef struct { 00007 unsigned char ch; 00008 unsigned char count; 00009 } tre_filter_profile_t; 00010 00011 typedef struct { 00012 /* Length of the window where the character counts are kept. */ 00013 int window_len; 00014 /* Required character counts table. */ 00015 tre_filter_profile_t *profile; 00016 } tre_filter_t; 00017 00018 00019 int 00020 tre_filter_find(const unsigned char *str, size_t len, tre_filter_t *filter);