home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / UUPC11XT.ZIP / RN / SEARCH.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-11-21  |  1.2 KB  |  44 lines

  1. /* $Header: E:\SRC\UUPC\RN\RCS/SEARCH.H 1.1 1992/11/21 06:14:58 ahd Exp $
  2.  *
  3.  * $Log: SEARCH.H $
  4.  * Revision 1.1  1992/11/21  06:14:58  ahd
  5.  * Initial
  6.  *
  7.  *
  8.  *    Rev 1.0   18 Nov 1990  0:22:40
  9.  * Initial revision.
  10.  * Revision 4.3  85/05/01  11:50:46  lwall
  11.  * Baseline for release with 4.3bsd.
  12.  *
  13.  */
  14.  
  15. #ifndef NBRA
  16. #define  NBRA  10    /* the maximum number of meta-brackets in an
  17.                RE -- \( \) */
  18. #define NALTS  10    /* the maximum number of \|'s */
  19.  
  20. typedef struct {
  21.     char *expbuf;    /* The compiled search string */
  22.     int eblen;       /* Length of above buffer */
  23.     char *alternatives[NALTS];   /* The list of \| seperated alternatives */
  24.     char *braslist[NBRA];  /* RE meta-bracket start list */
  25.     char *braelist[NBRA];  /* RE meta-bracket end list */
  26.     char *brastr;    /* saved match string after execute() */
  27.     char nbra;       /* The number of meta-brackets int the most
  28.                recenlty compiled RE */
  29.     bool do_folding;    /* fold upper and lower case? */
  30. } COMPEX;
  31.  
  32. void  search_init();
  33. void  init_compex();
  34. void  free_compex();
  35. char  *getbracket();
  36. void  case_fold();
  37. char  *compile();
  38. void  grow_eb();
  39. char  *execute();
  40. bool  advance();
  41. bool  backref();
  42. bool  cclass();
  43. #endif
  44.