1 #include "rematchstr.h" 2 3 static const char rcsid[]="$Id: rematchstr.C,v 1.1 1998/04/16 23:53:22 mrsam Exp $"; 4 5 ~ReMatchStr()6ReMatchStr::~ReMatchStr() 7 { 8 } 9 NextChar()10int ReMatchStr::NextChar() 11 { 12 return (*pos == 0 ? -1: (int)(unsigned char)*pos++); 13 } 14 CurrentChar()15int ReMatchStr::CurrentChar() 16 { 17 return (*pos == 0 ? -1: (int)(unsigned char)*pos); 18 } 19 GetCurrentPos()20off_t ReMatchStr::GetCurrentPos() 21 { 22 return (pos-str); 23 } 24 SetCurrentPos(off_t p)25void ReMatchStr::SetCurrentPos(off_t p) 26 { 27 pos=str+p; 28 } 29