home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
MSGDP206.SZH
/
BMG.H
< prev
next >
Wrap
C/C++ Source or Header
|
1990-07-05
|
510b
|
26 lines
/*
* bmg.h -> Boyer-Moore-Gosper search definitions
*
* see bmg.c for documentation
*/
#include "pascal.h"
#define bmgMAXPAT 64 /* max pattern length */
typedef struct
{
char delta[256]; /* ASCII only deltas */
char pat[bmgMAXPAT + 1]; /* the pattern */
char ignore; /* ignore case flag */
}
bmgARG;
void _pascal bmgCompile(char *s, bmgARG *pattern, int ignore_case);
char * _pascal bmgSearch(char *buffer, int buflen, bmgARG *pattern);
/*
* END of bmg.h
*/