Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Function template icase

boost::xpressive::icase — Makes a sub-expression case-insensitive.


// In header: <boost/xpressive/regex_primitives.hpp>

template<typename Expr> unspecified icase(Expr const & expr);


Use icase() to make a sub-expression case-insensitive. For instance, "foo" >> icase(set['b'] >> "ar") will match "foo" exactly followed by "bar" irrespective of case.