Boost C++ Libraries: Ticket #10114: Incorrect position of partial match when using u32regexes https://svn.boost.org/trac10/ticket/10114 <p> Hi, </p> <p> I got a problem with results of partial matches when using ICU Unicode strings and u32regex_iterator. The regular expression is created with default flags and search is done using match_perl | match_partial. Tested on 64bit Linux, boost compiled against ICU 53 with gcc 4.9. </p> <p> When searched for regular experession: "summary" in string "in summary in math we are using sum", and for regular expressions based on std::string got the following results: </p> <p> match length: 7 match position: 3 matched: summary match length: 0 match position: 32 matched: sum </p> <p> when doing search using icu::<a class="missing wiki">UnicodeString</a> and u32regex_iterator got the following result: </p> <p> match length: 7 match position: 3 matched: summary match length: 0 match position: 35 matched: </p> <p> So in both cases the partial match is found but in the latter the returned position is incorrect. </p> <p> I attached a simple application I used for testing. </p> <p> Regards, marcin </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10114 Trac 1.4.3 mkrasowski@… Wed, 11 Jun 2014 14:19:47 GMT attachment set https://svn.boost.org/trac10/ticket/10114 https://svn.boost.org/trac10/ticket/10114 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">regex_iter.cc</span> </li> </ul> <p> simple program used for testing </p> Ticket John Maddock Tue, 02 Dec 2014 09:32:55 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/10114#comment:1 https://svn.boost.org/trac10/ticket/10114#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> With apologies for the delay, fixed in <a class="ext-link" href="https://github.com/boostorg/regex/commit/f6a9bce728c8451d212836460aece6dfb7aa0896"><span class="icon">​</span>https://github.com/boostorg/regex/commit/f6a9bce728c8451d212836460aece6dfb7aa0896</a> </p> Ticket