[Boost-bugs] [Boost C++ Libraries] #8304: Regex not matching case in character ranges if collate flag specified

Subject: [Boost-bugs] [Boost C++ Libraries] #8304: Regex not matching case in character ranges if collate flag specified
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-03-18 11:50:57


#8304: Regex not matching case in character ranges if collate flag specified
---------------------------------+------------------------------------------
 Reporter: dave@… | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.51.0
 Severity: Problem | Keywords:
---------------------------------+------------------------------------------
 If the regex::collate option is specified regular expressions do not seem
 to be matching case with character ranges, e.g.

 {{{
 boost::wregex test( L"res[A-Z]+", boost::regex::collate );
 bool bMatch = boost::regex_search( L"resource", test );
 }}}

 I would not expect the collate flag to change the result of the code
 above. However, if the collate flag is specified bMatch is set to true and
 without it the result is false.

 Similar code using Visual Studio 2010 and the MS regex implementation
 works as I expect, ie the collate flag does not effect the result, e.g.

 {{{
 std::tr1::wregex test( L"res[A-Z]+", std::tr1::regex_constants::collate );
 bool bMatch = std::tr1::regex_search( L"resource", test );
 }}}

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