mirror of
https://github.com/boostorg/regex.git
synced 2025-07-16 13:52:17 +02:00
regex fixes for updated Dinkum library
[SVN r8161]
This commit is contained in:
@ -1240,7 +1240,8 @@ unsigned int BOOST_RE_CALL reg_expression<charT, traits, Allocator>::set_express
|
|||||||
register traits_size_type c;
|
register traits_size_type c;
|
||||||
register re_detail::re_syntax_base* dat;
|
register re_detail::re_syntax_base* dat;
|
||||||
|
|
||||||
unsigned rep_min, rep_max;
|
unsigned rep_min = 0;
|
||||||
|
unsigned rep_max = 0;
|
||||||
|
|
||||||
//
|
//
|
||||||
// set up header:
|
// set up header:
|
||||||
|
@ -618,10 +618,13 @@ typedef unsigned long jm_uintfast32_t;
|
|||||||
#define BOOST_RE_NEED_ALLOC
|
#define BOOST_RE_NEED_ALLOC
|
||||||
|
|
||||||
#define BOOST_RE_STL_DONE
|
#define BOOST_RE_STL_DONE
|
||||||
|
#ifndef _CPPLIB_VER
|
||||||
#define BOOST_RE_USE_FACET(l, type) std::use_facet(l, (type*)0, true)
|
#define BOOST_RE_USE_FACET(l, type) std::use_facet(l, (type*)0, true)
|
||||||
#define BOOST_RE_HAS_FACET(l, type) std::has_facet(l, (type*)0)
|
#define BOOST_RE_HAS_FACET(l, type) std::has_facet(l, (type*)0)
|
||||||
|
#else
|
||||||
|
#define BOOST_RE_USE_FACET(l, type) std::use_facet(l, (type*)0)
|
||||||
|
#define BOOST_RE_HAS_FACET(l, type) std::has_facet(l, (type*)0)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
@ -118,6 +118,7 @@ std::size_t regex_split(OutputIterator out,
|
|||||||
*out = std::basic_string<charT, Traits1, Alloc1>((ci_t)last, (ci_t)s.end());
|
*out = std::basic_string<charT, Traits1, Alloc1>((ci_t)last, (ci_t)s.end());
|
||||||
++out;
|
++out;
|
||||||
last = s.end();
|
last = s.end();
|
||||||
|
--max_split;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
// delete from the string everything that has been processed so far:
|
// delete from the string everything that has been processed so far:
|
||||||
|
Reference in New Issue
Block a user