--- parser3/src/main/pa_string.C 2005/12/09 07:39:19 1.205 +++ parser3/src/main/pa_string.C 2007/01/18 17:47:44 1.208 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_STRING_C="$Date: 2005/12/09 07:39:19 $"; +static const char * const IDENT_STRING_C="$Date: 2007/01/18 17:47:44 $"; #include "pcre.h" @@ -451,11 +451,13 @@ Table* String::match(Charset& source_cha if(exec_substrings==PCRE_ERROR_NOMATCH) { pcre_free(code); row_action(table, 0/*last time, no raw*/, 0, 0, poststart, postfinish, info); - if(global || subpatterns) - return &table; // global or with subpatterns=true+result - else { - just_matched=false; return 0; // not global=no result - } + // if(global || subpatterns) + // return &table; // global or with subpatterns=true+result + // else { + // just_matched=false; return 0; // not global=no result + // } + just_matched=false; + return &table; } if(exec_substrings<0) { @@ -644,7 +646,7 @@ bool String::deserialize(size_t prolog_s // 1: prolog const char* cur=(const char* )buf+prolog_size; - // 2: langs.count + // 2: chars.count size_t body_length; if(in_bufbody_length) + return false; // file curruption // uchar needed to prevent propagating 0x80 bit to upper bytes langs.append(total_length, (String::Language)(uchar)lang, fragment_length); - total_length+=fragment_length; + total_length=combined_length; in_buf-=piece_length; }