forked from boostorg/regex
minor regex fixes
[SVN r7878]
This commit is contained in:
@ -1959,12 +1959,12 @@ unsigned int BOOST_RE_CALL reg_expression<charT, traits, Allocator>::fixup_leadi
|
|||||||
leading_lit = false;
|
leading_lit = false;
|
||||||
break;
|
break;
|
||||||
case re_detail::syntax_element_rep:
|
case re_detail::syntax_element_rep:
|
||||||
if(1 == fixup_leading_rep(dat->next.p, ((re_detail::re_repeat*)dat)->alt.p) )
|
if((len == 0) && (1 == fixup_leading_rep(dat->next.p, ((re_detail::re_repeat*)dat)->alt.p) ))
|
||||||
{
|
{
|
||||||
((re_detail::re_repeat*)dat)->leading = true;
|
((re_detail::re_repeat*)dat)->leading = true;
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
return 0;
|
return len;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -24,13 +24,13 @@
|
|||||||
#include <boost/re_detail/regex_config.hpp>
|
#include <boost/re_detail/regex_config.hpp>
|
||||||
#include <boost/re_detail/regex_raw_buffer.hpp>
|
#include <boost/re_detail/regex_raw_buffer.hpp>
|
||||||
#include <boost/regex.hpp>
|
#include <boost/regex.hpp>
|
||||||
#include <ostream>
|
|
||||||
|
|
||||||
#ifdef BOOST_MSVC
|
#ifdef BOOST_MSVC
|
||||||
#include <crtdbg.h>
|
#include <crtdbg.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef BOOST_RE_DEBUG
|
#ifdef BOOST_RE_DEBUG
|
||||||
|
#include <ostream>
|
||||||
|
|
||||||
namespace boost { namespace re_detail {
|
namespace boost { namespace re_detail {
|
||||||
std::ostream& operator<<(std::ostream& s, syntax_element_type x)
|
std::ostream& operator<<(std::ostream& s, syntax_element_type x)
|
||||||
@ -206,3 +206,4 @@ debug_guard::~debug_guard()
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user