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; }