--- parser3/src/main/pa_string.C 2003/09/24 07:13:52 1.175.2.3 +++ parser3/src/main/pa_string.C 2003/09/25 09:15:03 1.176 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_STRING_C="$Date: 2003/09/24 07:13:52 $"; +static const char* IDENT_STRING_C="$Date: 2003/09/25 09:15:03 $"; #include "pcre.h" @@ -32,12 +32,12 @@ static int CORD_range_contains_chr_great if (c > d -> target) return(1); return(0); } -int CORD_range_contains_chr_greater_then(CORD x, size_t i, size_t n, int not_c) +int CORD_range_contains_chr_greater_then(CORD x, size_t i, size_t n, int c) { chr_data d; - d.countdown = i+n; - d.target = not_c; + d.countdown = n; + d.target = c; return(CORD_block_iter(x, i, CORD_range_contains_chr_greater_then_proc, &d) == 1/*alternatives: 0 normally ended, 2=struck 'n'*/); } @@ -54,19 +54,19 @@ public: *this+=new String("match"); *this+=new String("postmatch"); for(int i=0; iLIMIT_VIEW?"...":"", + strlen(body_view), body_view + ); + + return buf; +#undef LIMIT_VIEW +}