Boost C++ Libraries

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

PrevUpHomeNext
Regular Expression Creation From an MFC String

The following helper function is available to assist in the creation of a regular expression from an MFC/ATL string type:

template <class charT>
basic_regex<charT>
   make_regex(const ATL::CSimpleStringT<charT>& s,
            ::boost::regex_constants::syntax_option_type f = boost::regex_constants::normal);

Effects: returns basic_regex<charT>(s.GetString(), s.GetString() + s.GetLength(), f);


PrevUpHomeNext