mirror of
https://github.com/boostorg/regex.git
synced 2025-07-17 14:22:08 +02:00
Patch for nosubs flag bug.
[SVN r22821]
This commit is contained in:
@ -1435,6 +1435,7 @@ unsigned int BOOST_REGEX_CALL reg_expression<charT, traits, Allocator>::set_expr
|
|||||||
{
|
{
|
||||||
case traits_type::syntax_colon:
|
case traits_type::syntax_colon:
|
||||||
static_cast<re_detail::re_brace*>(dat)->index = 0;
|
static_cast<re_detail::re_brace*>(dat)->index = 0;
|
||||||
|
if((_flags & nosubs) == 0)
|
||||||
--marks;
|
--marks;
|
||||||
markid.pop();
|
markid.pop();
|
||||||
markid.push(0);
|
markid.push(0);
|
||||||
@ -1445,6 +1446,7 @@ unsigned int BOOST_REGEX_CALL reg_expression<charT, traits, Allocator>::set_expr
|
|||||||
markid.pop();
|
markid.pop();
|
||||||
markid.push(-1);
|
markid.push(-1);
|
||||||
common_forward_assert:
|
common_forward_assert:
|
||||||
|
if((_flags & nosubs) == 0)
|
||||||
--marks;
|
--marks;
|
||||||
++ptr;
|
++ptr;
|
||||||
// extend:
|
// extend:
|
||||||
@ -1470,6 +1472,7 @@ unsigned int BOOST_REGEX_CALL reg_expression<charT, traits, Allocator>::set_expr
|
|||||||
case traits_type::syntax_hash:
|
case traits_type::syntax_hash:
|
||||||
// comment just skip it:
|
// comment just skip it:
|
||||||
static_cast<re_detail::re_brace*>(dat)->index = 0;
|
static_cast<re_detail::re_brace*>(dat)->index = 0;
|
||||||
|
if((_flags & nosubs) == 0)
|
||||||
--marks;
|
--marks;
|
||||||
markid.pop();
|
markid.pop();
|
||||||
mark.pop();
|
mark.pop();
|
||||||
|
Reference in New Issue
Block a user