home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / MSGDP206.SZH / BMG.H < prev    next >
C/C++ Source or Header  |  1990-07-05  |  510b  |  26 lines

  1. /*
  2.  *    bmg.h ->    Boyer-Moore-Gosper search definitions
  3.  *
  4.  *    see bmg.c for documentation
  5.  */
  6.  
  7. #include "pascal.h"
  8.  
  9. #define    bmgMAXPAT    64        /*  max pattern length    */
  10. typedef struct
  11.     {
  12.     char    delta[256];        /*  ASCII only deltas    */
  13.     char    pat[bmgMAXPAT + 1];    /*  the pattern        */
  14.     char    ignore;            /*  ignore case flag    */
  15.     }
  16.     bmgARG;
  17.  
  18. void _pascal bmgCompile(char *s, bmgARG *pattern, int ignore_case);
  19. char * _pascal bmgSearch(char *buffer, int buflen, bmgARG *pattern);
  20.  
  21.  
  22. /*
  23.  *    END of bmg.h
  24.  */
  25.  
  26.