--- parser3/src/main/pa_table.C 2001/10/19 12:43:30 1.39 +++ parser3/src/main/pa_table.C 2001/11/22 15:47:12 1.41 @@ -2,9 +2,9 @@ Parser: table class. Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://design.ru/paf) + Author: Alexander Petrosyan (http://paf.design.ru) - $Id: pa_table.C,v 1.39 2001/10/19 12:43:30 parser 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(); }