[Boost-bugs] [Boost C++ Libraries] #10114: Incorrect position of partial match when using u32regexes

Subject: [Boost-bugs] [Boost C++ Libraries] #10114: Incorrect position of partial match when using u32regexes
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-06-11 14:17:58


#10114: Incorrect position of partial match when using u32regexes
------------------------------+-------------------------
 Reporter: mkrasowski@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: regex
  Version: Boost 1.55.0 | Severity: Problem
 Keywords: regex icu |
------------------------------+-------------------------
 Hi,

 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.

 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:

 match length: 7 match position: 3 matched: summary
 match length: 0 match position: 32 matched: sum

 when doing search using icu::UnicodeString and u32regex_iterator
 got the following result:

 match length: 7 match position: 3 matched: summary
 match length: 0 match position: 35 matched:

 So in both cases the partial match is found but in the latter the returned
 position is incorrect.

 I attached a simple application I used for testing.

 Regards,
 marcin

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10114>
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:16 UTC