mirror of
https://github.com/boostorg/regex.git
synced 2025-07-18 23:02:09 +02:00
Fixed VC7.1-STLport config setup so it works with /Zc:wchar_t
Re-ordered code in static_mutex.hpp to satisfy SGI IRIX. Added some additional #includes to satisfy SGI Irix. Fixed strange bug where some non-greedy repeats could repeat more times than permitted. Fixed return value from basic_regex<>::empty(). Fixed return value from basic_regex<>::expression() and basic_regex<>::size() when the expression is invalid. [SVN r30604]
This commit is contained in:
@ -517,8 +517,11 @@ bool perl_matcher<BidiIterator, Allocator, traits>::match_rep()
|
||||
// try and skip the repeat if we can:
|
||||
if(take_second)
|
||||
{
|
||||
// store position in case we fail:
|
||||
push_non_greedy_repeat(rep->next.p);
|
||||
if((next_count->get_count() < rep->max) && take_first)
|
||||
{
|
||||
// store position in case we fail:
|
||||
push_non_greedy_repeat(rep->next.p);
|
||||
}
|
||||
pstate = rep->alt.p;
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user