home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / HyperCard / reg_exp.XFCN / regexp.h < prev    next >
Text File  |  1989-09-18  |  1KB  |  29 lines

  1. /*
  2. | |  Header file for Regular Expression Evaluator.
  3. | |
  4. | |  Greg Anderson
  5.  */
  6.  
  7. /*-----------------------------------------------------------------
  8. | Flags:
  9. -----------------------------------------------------------------*/
  10. #define IGNORE        0x001    /* -i : ignore case                    */
  11. #define NUMBER      0x002    /* -n : number each line            */
  12. #define COUNT        0x004    /* -c : display count, not output    */
  13. #define INVERT        0x008    /* -v : inverted search                */
  14. #define MULTILINE    0x010    /* -m : multi-line match (indented)    */
  15. #define FOLDEDLINE    0x020    /* -f : folded lines (with backslash)*/
  16. #define NOBREAKS    0x040    /* -b : no line breaks                */
  17. #define BEGINFLAG    0x080    /* '^': search from beginning of line*/
  18. #define ENDFLAG        0x100    /* '$': search to end of line        */
  19.  
  20. extern int regexp_flags;
  21.  
  22. extern int        end_of_line(char *);
  23. extern int        find_regexp(char *,char *,char **,char **);
  24. extern int        strgrep(char *,char *,char **);
  25. extern int        chargrep(char **,char **,char **);
  26. extern int        searchset(char **,char);
  27. extern int        wild_scan(char *,char **,char *);
  28. extern int        greplen(char **);
  29.