blob: 040289e6f83ef6179e6bb88806664bf34aacdaf4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef rematchstr_h
#define rematchstr_h
#include "config.h"
#include <sys/types.h>
#include "rematch.h"
////////////////////////////////////////////////////////////////////////////
//
// ReMatchStr - derive from ReMatch when text matched against a regular
// expression comes from the message body itself.
//
////////////////////////////////////////////////////////////////////////////
class ReMatchStr : public ReMatch {
const char *str;
const char *pos;
public:
ReMatchStr(const char *p) : str(p), pos(p) {}
~ReMatchStr();
int NextChar();
int CurrentChar();
off_t GetCurrentPos();
void SetCurrentPos(off_t);
} ;
#endif
|