From 6382470ac1098acbd3492c8cd1889654ed01f077 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Wed, 12 May 2004 11:39:28 +0000 Subject: [PATCH] Fixed \l and \u so that they work correctly in case insensitive mode. [SVN r22804] --- include/boost/regex/v4/regex_compile.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/boost/regex/v4/regex_compile.hpp b/include/boost/regex/v4/regex_compile.hpp index d6e88029..03e72372 100644 --- a/include/boost/regex/v4/regex_compile.hpp +++ b/include/boost/regex/v4/regex_compile.hpp @@ -721,6 +721,13 @@ re_detail::re_syntax_base* BOOST_REGEX_CALL reg_expression ranges(64, data.allocator()); re_detail::jstack classes(64, data.allocator()); re_detail::jstack equivalents(64, data.allocator()); + if(_flags & regbase::icase) + { + if((cls == traits_type::char_class_upper) || (cls == traits_type::char_class_lower)) + { + cls = traits_type::char_class_alpha; + } + } classes.push(cls); if(dat) {