Class template basic_regex<> is a class for holding a compiled regular expression. More...
#include <xpressive_fwd.hpp>
Public Types | |
typedef BidiIter | iterator_type |
typedef iterator_value < BidiIter >::type | char_type |
typedef iterator_value < BidiIter >::type | value_type |
typedef detail::string_type < char_type >::type | string_type |
typedef regex_constants::syntax_option_type | flag_type |
Static Public Member Functions | |
template<typename InputIter > | |
static basic_regex< BidiIter > | compile (InputIter begin, InputIter end, flag_type flags=regex_constants::ECMAScript) |
Factory method for building a regex object from a range of characters. More... | |
template<typename InputRange > | |
static basic_regex< BidiIter > | compile (InputRange const &pat, flag_type flags=regex_constants::ECMAScript) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
static basic_regex< BidiIter > | compile (char_type const *begin, flag_type flags=regex_constants::ECMAScript) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
static basic_regex< BidiIter > | compile (char_type const *begin, std::size_t len, flag_type flags) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More... | |
Friends | |
struct | detail::core_access< BidiIter > |
Class template basic_regex<> is a class for holding a compiled regular expression.
typedef iterator_value<BidiIter>::type boost::xpressive::basic_regex< BidiIter >::char_type |
typedef regex_constants::syntax_option_type boost::xpressive::basic_regex< BidiIter >::flag_type |
typedef BidiIter boost::xpressive::basic_regex< BidiIter >::iterator_type |
typedef detail::string_type<char_type>::type boost::xpressive::basic_regex< BidiIter >::string_type |
typedef iterator_value<BidiIter>::type boost::xpressive::basic_regex< BidiIter >::value_type |
|
inline |
|
inline |
that | The basic_regex object to copy. |
|
inline |
Construct from a static regular expression.
expr | The static regular expression |
boost::xpressive::basic_regex< BidiIter >::BOOST_STATIC_CONSTANT | ( | regex_constants::syntax_option_type | , |
ECMAScript | = regex_constants::ECMAScript |
||
) |
boost::xpressive::basic_regex< BidiIter >::BOOST_STATIC_CONSTANT | ( | regex_constants::syntax_option_type | , |
icase | = regex_constants::icase_ |
||
) |
boost::xpressive::basic_regex< BidiIter >::BOOST_STATIC_CONSTANT | ( | regex_constants::syntax_option_type | , |
nosubs | = regex_constants::nosubs |
||
) |
boost::xpressive::basic_regex< BidiIter >::BOOST_STATIC_CONSTANT | ( | regex_constants::syntax_option_type | , |
optimize | = regex_constants::optimize |
||
) |
boost::xpressive::basic_regex< BidiIter >::BOOST_STATIC_CONSTANT | ( | regex_constants::syntax_option_type | , |
collate | = regex_constants::collate |
||
) |
boost::xpressive::basic_regex< BidiIter >::BOOST_STATIC_CONSTANT | ( | regex_constants::syntax_option_type | , |
single_line | = regex_constants::single_line |
||
) |
boost::xpressive::basic_regex< BidiIter >::BOOST_STATIC_CONSTANT | ( | regex_constants::syntax_option_type | , |
not_dot_null | = regex_constants::not_dot_null |
||
) |
boost::xpressive::basic_regex< BidiIter >::BOOST_STATIC_CONSTANT | ( | regex_constants::syntax_option_type | , |
not_dot_newline | = regex_constants::not_dot_newline |
||
) |
boost::xpressive::basic_regex< BidiIter >::BOOST_STATIC_CONSTANT | ( | regex_constants::syntax_option_type | , |
ignore_white_space | = regex_constants::ignore_white_space |
||
) |
|
inlinestatic |
Factory method for building a regex object from a range of characters.
Equivalent to regex_compiler< BidiIter >().compile(begin, end, flags);
begin | The beginning of a range of characters representing the regular expression to compile. |
end | The end of a range of characters representing the regular expression to compile. |
flags | Optional bitmask that determines how the pat string is interpreted. (See syntax_option_type.) |
regex_error | when the range of characters has invalid regular expression syntax. |
Referenced by boost::xpressive::basic_regex< BidiIter >::compile().
|
inlinestatic |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
References boost::xpressive::basic_regex< BidiIter >::compile().
|
inlinestatic |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
References boost::xpressive::basic_regex< BidiIter >::compile().
|
inlinestatic |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
References boost::xpressive::basic_regex< BidiIter >::compile().
|
inline |
Returns the count of capturing sub-expressions in this regular expression.
References boost::proto::value().
|
inline |
that | The basic_regex object to copy. |
References boost::proto::value().
|
inline |
Construct from a static regular expression.
expr | The static regular expression. |
std::bad_alloc | on out of memory |
|
inline |
Returns a token which uniquely identifies this regular expression.
References boost::proto::value().
Referenced by boost::xpressive::match_results< BidiIter >::operator()(), boost::xpressive::regex_iterator< BidiIter >::regex_iterator(), boost::xpressive::regex_match(), boost::xpressive::detail::regex_match_impl(), boost::xpressive::regex_replace(), boost::xpressive::detail::regex_replace_impl(), boost::xpressive::regex_search(), boost::xpressive::detail::regex_search_impl(), and boost::xpressive::regex_token_iterator< BidiIter >::regex_token_iterator().
|
inline |
Swaps the contents of this basic_regex object with another.
that | The other basic_regex object. |
nothrow |
References boost::proto::value().
Referenced by boost::xpressive::swap().
|
friend |