/*++ /* NAME /* been_here 3 /* SUMMARY /* detect repeated occurrence of string /* SYNOPSIS /* #include <been_here.h> /* /* BH_TABLE *been_here_init(size, flags) /* int size; /* int flags; /* /* int been_here_fixed(dup_filter, string) /* BH_TABLE *dup_filter; /* char *string; /* /* int been_here(dup_filter, format, ...) /* BH_TABLE *dup_filter; /* char *format; /* /* int been_here_check_fixed(dup_filter, string) /* BH_TABLE *dup_filter; /* char *string; /* /* int been_here_check(dup_filter, format, ...) /* BH_TABLE *dup_filter; /* char *format; /* /* int been_here_drop_fixed(dup_filter, string) /* BH_TABLE *dup_filter; /* char *string; /* /* int been_here_drop(dup_filter, format, ...) /* BH_TABLE *dup_filter; /* char *format; /* /* void been_here_free(dup_filter) /* BH_TABLE *dup_filter; /* DESCRIPTION /* This module implements a simple filter to detect repeated /* occurrences of character strings. /* /* been_here_init() creates an empty duplicate filter. /* /* been_here_fixed() looks up a fixed string in the given table, and /* makes an entry in the table if the string was not found. The result /* is non-zero (true) if the string was found, zero (false) otherwise. /* /* been_here() formats its arguments, looks up the result in the /* given table, and makes an entry in the table if the string was /* not found. The result is non-zero (true) if the formatted result was /* found, zero (false) otherwise. /* /* been_here_check_fixed() and been_here_check() are similar /* but do not update the duplicate filter. /* /* been_here_drop_fixed() looks up a fixed string in the given /* table, and deletes the entry if the string was found. The /* result is non-zero (true) if the string was found, zero /* (false) otherwise. /* /* been_here_drop() formats its arguments, looks up the result /* in the given table, and removes the entry if the formatted /* result was found. The result is non-zero (true) if the /* formatted result was found, zero (false) otherwise. /* /* been_here_free() releases storage for a duplicate filter. /* /* Arguments: /* .IP size /* Upper bound on the table size; at most \fIsize\fR strings will /* be remembered. Specify BH_BOUND_NONE to disable the upper bound. /* .IP flags /* Requests for special processing. Specify the bitwise OR of zero /* or more flags: /* .RS /* .IP BH_FLAG_FOLD /* Enable case-insensitive lookup. /* .IP BH_FLAG_NONE /* A manifest constant that requests no special processing. /* .RE /* .IP dup_filter /* The table with remembered names /* .IP string /* Fixed search string. /* .IP format /* Format for building the search string. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* IBM T.J. Watson Research /* P.O. Box 704 /* Yorktown Heights, NY 10598, USA /* /* Wietse Venema /* Google, Inc. /* 111 8th Avenue /* New York, NY 10011, USA
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.