Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:53:49

0001 ///////////////////////////////////////////////////////////////////////////////
0002 // icase.hpp
0003 //
0004 //  Copyright 2008 Eric Niebler. Distributed under the Boost
0005 //  Software License, Version 1.0. (See accompanying file
0006 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0007 
0008 #ifndef BOOST_XPRESSIVE_DETAIL_CORE_ICASE_HPP_EAN_10_04_2005
0009 #define BOOST_XPRESSIVE_DETAIL_CORE_ICASE_HPP_EAN_10_04_2005
0010 
0011 #include <boost/xpressive/detail/detail_fwd.hpp>
0012 #include <boost/xpressive/regex_constants.hpp>
0013 #include <boost/xpressive/detail/static/modifier.hpp>
0014 #include <boost/xpressive/detail/core/linker.hpp>
0015 #include <boost/xpressive/detail/utility/ignore_unused.hpp>
0016 
0017 namespace boost { namespace xpressive { namespace regex_constants
0018 {
0019 
0020 ///////////////////////////////////////////////////////////////////////////////
0021 /// \brief Makes a sub-expression case-insensitive.
0022 ///
0023 /// Use icase() to make a sub-expression case-insensitive. For instance,
0024 /// "foo" >> icase(set['b'] >> "ar") will match "foo" exactly followed by
0025 /// "bar" irrespective of case.
0026 detail::modifier_op<detail::icase_modifier> const icase = {{}, regex_constants::icase_};
0027 
0028 } // namespace regex_constants
0029 
0030 using regex_constants::icase;
0031 
0032 namespace detail
0033 {
0034     inline void ignore_unused_icase()
0035     {
0036         detail::ignore_unused(icase);
0037     }
0038 }
0039 
0040 }} // namespace boost::xpressive
0041 
0042 #endif