home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / unix / dgrep.arc / DFAREGEX.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-01-14  |  789 b   |  23 lines

  1. /**********************************************************************\
  2.  *
  3.  *    DFAREGEX.H
  4.  *
  5.  * Definitions for deterministic finite automata regular expression
  6.  * matcher.
  7.  *
  8.  * Author: Jarmo Ruuth 15-Mar-1988
  9.  *
  10.  * Copyright (C) 1988-90 by Jarmo Ruuth
  11.  * May be freely copied for any non-commercial usage.
  12. \**********************************************************************/
  13.  
  14. /* Type bit definitions */
  15.  
  16. #define RE_SEARCH    0x1    /* builds substring searcher */
  17. #define RE_IGNORECASE    0x2    /* case insensitive match */
  18. #define RE_FULL        0x4    /* tries to get longest possible match */
  19.  
  20. char* reg_comp(char* regexp, int type_bits);
  21. char* reg_comp_eol(char* regexp, char eol1, char eol2, int type_bits);
  22. char* reg_exec(char* strbeg, char* strend, unsigned long* linecnt);
  23.