--- parser3/src/main/pa_string.C 2002/02/21 14:36:54 1.143 +++ parser3/src/main/pa_string.C 2002/02/22 12:25:45 1.146 @@ -4,7 +4,7 @@ Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - $Id: pa_string.C,v 1.143 2002/02/21 14:36:54 paf Exp $ + $Id: pa_string.C,v 1.146 2002/02/22 12:25:45 paf Exp $ */ #include "pcre.h" @@ -645,13 +645,13 @@ void String::join_chain(Pool& pool, if(row->item.lang==joined_lang) { memcpy(ptr, row->item.ptr, row->item.size); ptr+=row->item.size; } else - break; + break; // before non-ours ); - // return joined rows - achunk=chunk; - arow=row-1; // -1 to step back from last row|row with wrong lang, see String::reconstruct - acountdown=countdown; + // set pointers after joined piece + achunk=chunk; arow=row; acountdown=countdown; + // & one step back, see String::reconstruct + --arow; ++acountdown; } }