summaryrefslogtreecommitdiffstats
path: root/maildrop/rematchstr.C
blob: 211c525eb6c7f84284b9f8c66be9bba3730c1370 (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
#include "config.h"
#include	"rematchstr.h"



ReMatchStr::~ReMatchStr()
{
}

int ReMatchStr::NextChar()
{
	return (*pos == 0 ? -1: (int)(unsigned char)*pos++);
}

int ReMatchStr::CurrentChar()
{
	return (*pos == 0 ? -1: (int)(unsigned char)*pos);
}

off_t ReMatchStr::GetCurrentPos()
{
	return (pos-str);
}

void	ReMatchStr::SetCurrentPos(off_t p)
{
	pos=str+p;
}