Back to index

courier  0.68.2
rematchstr.h
Go to the documentation of this file.
00001 #ifndef       rematchstr_h
00002 #define       rematchstr_h
00003 
00004 
00005 #include      "config.h"
00006 #include      <sys/types.h>
00007 #include      "rematch.h"
00008 
00010 //
00011 // ReMatchStr - derive from ReMatch when text matched against a regular
00012 // expression comes from the message body itself.
00013 //
00015 
00016 class ReMatchStr : public ReMatch {
00017 
00018        const char *str;
00019        const char *pos;
00020 
00021 public:
00022        ReMatchStr(const char *p) : str(p), pos(p)       {}
00023        ~ReMatchStr();
00024 
00025        int    NextChar();
00026        int    CurrentChar();
00027        off_t GetCurrentPos();
00028        void   SetCurrentPos(off_t);
00029 } ;
00030 #endif