Subject: [Boost-bugs] [Boost C++ Libraries] #12130: utf8 and utf16 implementations of do_regex_match() do not favour captures
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-04-15 20:40:43
#12130: utf8 and utf16 implementations of do_regex_match() do not favour captures
------------------------------------+-------------------------
Reporter: Dmitri Silaev <info@â¦> | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: regex
Version: Boost 1.60.0 | Severity: Problem
Keywords: ICU, captures |
------------------------------------+-------------------------
In "icu.hpp", the utf8 and utf16 implementations of do_regex_match() use
the copy_results() function which barely assigns "first" and "second"
members for each "sub_match". But when BOOST_REGEX_MATCH_EXTRA is defined,
sub_match'es contain alos "m_captures" whose content does not get copied
inside copy_results(). This leads to empty captures() for all
sub_match'es.
the utf32 version uses "match_results" directly, so the problem does not
take place.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12130> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC