home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mavcl130.zip / MAVREGEX.HPP < prev    next >
C/C++ Source or Header  |  1995-08-15  |  753b  |  33 lines

  1. /*  File: MAVREGEX.HPP      Updated: Tue Aug 15 15:55:27 1995
  2. Copyright (c) Fabrizio Aversa
  3. ===========================================================*/
  4. #ifndef MAVREGEX_HPP
  5. #define MAVREGEX_HPP
  6.  
  7. #define REGEXLMAX 512
  8. #define REGEXPMAX 256
  9.  
  10. class _Export RegEx {
  11.    public:
  12.    RegEx(istream &, ostream &, IString&);
  13.    void process(IString &);
  14.    
  15.    private:
  16.    
  17.    int  cflag, nflag,vflag,iflag;
  18.    char *pp, lbuf[REGEXLMAX], pbuf[REGEXPMAX];
  19.    IString strPattern, strFlags;
  20.    istream & isAct;
  21.    ostream & osAct;
  22.    
  23.    void parseFlags();
  24.    int compile( char *);
  25.    int cclass(char *, char **);
  26.    int store(int);
  27.    void badpat(char *, char *, char *);
  28.    int match();
  29.    char *pmatch(char *, char *);
  30. };
  31.  
  32. #endif
  33.