Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
592 B

  1. #ifndef _INC_BOYER
  2. #define _INC_BOYER
  3. /* store the pattern, pattern length and skip table for 256 alphabets */
  4. /* maximum pattern length (MAXPAT) cannot be larger than 65535 */
  5. #define MAXPAT 256
  6. typedef struct {
  7. unsigned int plen;
  8. CHAR p[MAXPAT + 1];
  9. unsigned int skip[256];
  10. } FINDSTRUCT;
  11. typedef FINDSTRUCT FAR * LPFIND;
  12. typedef LPFIND HFIND;
  13. /* boyer.c prototypes */
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. HFIND SetFindPattern( LPSTR lpszPattern );
  18. void FreeFindPattern( HFIND hfind );
  19. LPSTR Find( HFIND hfind, LPSTR s, long slen );
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif