From 6cbda4715503ce3a49afd744cb992e1ebf12b867 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 7 Jan 2004 12:00:51 +0000 Subject: [PATCH] Added last minute patch for .*?$ failing in the non-recursive algorithm. [SVN r21525] --- include/boost/regex/v4/perl_matcher_non_recursive.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/regex/v4/perl_matcher_non_recursive.hpp b/include/boost/regex/v4/perl_matcher_non_recursive.hpp index d65ba102..0f231a27 100644 --- a/include/boost/regex/v4/perl_matcher_non_recursive.hpp +++ b/include/boost/regex/v4/perl_matcher_non_recursive.hpp @@ -1005,7 +1005,7 @@ bool perl_matcher::unwind_slow_dot_ { // can't repeat any more, remove the pushed state: destroy_single_repeat(); - if(rep->can_be_null & mask_skip) + if(0 == (rep->can_be_null & mask_skip)) return true; } else if(count == rep->max) @@ -1057,7 +1057,7 @@ bool perl_matcher::unwind_fast_dot_ { // can't repeat any more, remove the pushed state: destroy_single_repeat(); - if(rep->can_be_null & mask_skip) + if(0 == (rep->can_be_null & mask_skip)) return true; } else if(count == rep->max) @@ -1121,7 +1121,7 @@ bool perl_matcher::unwind_char_repe { // can't repeat any more, remove the pushed state: destroy_single_repeat(); - if(rep->can_be_null & mask_skip) + if(0 == (rep->can_be_null & mask_skip)) return true; } else if(count == rep->max) @@ -1185,7 +1185,7 @@ bool perl_matcher::unwind_short_set { // can't repeat any more, remove the pushed state: destroy_single_repeat(); - if(rep->can_be_null & mask_skip) + if(0 == (rep->can_be_null & mask_skip)) return true; } else if(count == rep->max) @@ -1250,7 +1250,7 @@ bool perl_matcher::unwind_long_set_ { // can't repeat any more, remove the pushed state: destroy_single_repeat(); - if(rep->can_be_null & mask_skip) + if(0 == (rep->can_be_null & mask_skip)) return true; } else if(count == rep->max)