--- parser3/src/main/pa_string.C 2002/09/17 14:22:29 1.170 +++ parser3/src/main/pa_string.C 2003/04/11 15:00:05 1.173 @@ -1,11 +1,11 @@ /** @file Parser: string class. @see untasize_t.C. - Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_STRING_C="$Date: 2002/09/17 14:22:29 $"; +static const char* IDENT_STRING_C="$Date: 2003/04/11 15:00:05 $"; #include "pcre.h" @@ -459,7 +459,7 @@ static void regex_options(const String * {"'", 0, 0, 0, 0, &need_pre_post_match}, {0} }; - result[0]=PCRE_EXTRA | PCRE_DOTALL; + result[0]=PCRE_EXTRA | PCRE_DOTALL | PCRE_DOLLAR_ENDONLY; result[1]=0; if(options) @@ -477,12 +477,12 @@ static void regex_options(const String * /// @todo make replacement Table stacked bool String::match( - const String *aorigin, - const String& regexp, - const String *options, - Table **table, - Row_action row_action, void *info, - bool *was_global) const { + const String *aorigin, + const String& regexp, + const String *options, + Table **table, + Row_action row_action, void *info, + bool *was_global) const { if(regexp.is_empty()) throw Exception(0, @@ -492,7 +492,7 @@ bool String::match( const char *pattern=regexp.cstr(); const char *errptr; int erroffset; - bool need_pre_post_match=false; + bool need_pre_post_match=false; int option_bits[2]; regex_options(options, option_bits, need_pre_post_match); if(was_global) *was_global=option_bits[1]!=0; @@ -520,7 +520,8 @@ bool String::match( int ovector[ovecsize]; // create table - *table=NEW Table(pool(), *string_match_table_template); + Table::Action_options table_options; + *table=NEW Table(pool(), *string_match_table_template, table_options); int exec_option_bits=0; int prestart=0;