--- parser3/src/main/pa_table.C 2001/11/05 11:46:29 1.40 +++ parser3/src/main/pa_table.C 2001/11/22 15:47:12 1.41 @@ -4,7 +4,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://paf.design.ru) - $Id: pa_table.C,v 1.40 2001/11/05 11:46:29 paf Exp $ + $Id: pa_table.C,v 1.41 2001/11/22 15:47:12 paf Exp $ */ #include @@ -79,7 +79,7 @@ bool Table::locate(const String& column, return locate(column_name2index(column, true), value); } -void Table::shift(int offset) { +void Table::offset(bool absolute, int offset) { if(size()) - fcurrent=(fcurrent+offset+size())%size(); + fcurrent=((absolute?0:fcurrent)+offset+size())%size(); }