diff options
Diffstat (limited to 'maildrop/rematchstr.C')
| -rw-r--r-- | maildrop/rematchstr.C | 28 | 
1 files changed, 28 insertions, 0 deletions
| diff --git a/maildrop/rematchstr.C b/maildrop/rematchstr.C new file mode 100644 index 0000000..211c525 --- /dev/null +++ b/maildrop/rematchstr.C @@ -0,0 +1,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; +} | 
