|
PCRE2 C++ Wrapper 1.3.0
pcre2cpp
|
Basic PCRE2 Regex container. More...
#include <regex.hpp>
Public Member Functions | |
| _PCRE2CPP_CONSTEXPR20 | basic_regex (const _string_view_type pattern, const compile_options opts=compile_options_bits::None) _PCRE2CPP_NOEXCEPT |
| basic regex container with pattern and compile options | |
| _PCRE2CPP_CONSTEXPR17 | basic_regex (const basic_regex &other) noexcept=default |
| default copy constructor | |
| _PCRE2CPP_CONSTEXPR17 | basic_regex (basic_regex &&other) noexcept=default |
| default move constructor | |
| _PCRE2CPP_CONSTEXPR20 | ~basic_regex () noexcept=default |
| default destructor | |
| _PCRE2CPP_CONSTEXPR17 basic_regex & | operator= (const basic_regex &other) noexcept=default |
| default copy assign operator | |
| _PCRE2CPP_CONSTEXPR17 basic_regex & | operator= (basic_regex &&other) noexcept=default |
| default move assign operator | |
| _PCRE2CPP_CONSTEXPR17 bool | match (const _string_view_type text, const size_t offset=0, const match_options opts=match_options_bits::None) const _PCRE2CPP_NOEXCEPT |
| returns true if match was found | |
| _PCRE2CPP_CONSTEXPR20 bool | match (const _string_view_type text, _match_result_type &result, const size_t offset=0, const match_options opts=match_options_bits::None) const noexcept |
| returns true if match was found and result is stored in result variable | |
| _PCRE2CPP_CONSTEXPR17 bool | match_at (const _string_view_type text, const size_t offset=0) const noexcept |
| returns true if match was found, and it has relative offset == 0 | |
| _PCRE2CPP_CONSTEXPR17 bool | match_at (const _string_view_type text, _match_result_type &result, const size_t offset=0) const noexcept |
| returns true if match was found, and it has relative offset == 0 and result is stored in result variable | |
| _PCRE2CPP_CONSTEXPR17 bool | match_all (const _string_view_type text, std::vector< _match_result_type > &results, size_t offset=0) const noexcept |
| returns true if any match was found and all results store in results array | |
Private Types | |
| using | _pcre2_data_t = utils::pcre2_data<utf> |
| using | _code_type = typename _pcre2_data_t::code_type |
| using | _code_ptr = std::shared_ptr<_code_type> |
| using | _match_data_type = typename _pcre2_data_t::match_data_type |
| using | _match_data_ptr = std::shared_ptr<_match_data_type> |
| using | _string_type = typename _pcre2_data_t::string_type |
| using | _string_view_type = typename _pcre2_data_t::string_view_type |
| using | _string_char_type = typename _pcre2_data_t::string_char_type |
| using | _match_value_type = basic_match_value<utf> |
| using | _match_result_type = basic_match_result<utf> |
| using | _sptr_type = typename _pcre2_data_t::sptr_type |
| using | _named_sub_values_table = typename _pcre2_data_t::named_sub_values_table |
| using | _named_sub_values_table_ptr = std::shared_ptr<_named_sub_values_table> |
| using | _uchar_type = typename _pcre2_data_t::uchar_type |
| using | _regex_exception = basic_regex_exception<utf> |
Private Attributes | |
| _code_ptr | _code = nullptr |
| pointer to compiled pcre2 code | |
| _match_data_ptr | _match_data = nullptr |
| pointer to match data of pcre2 code | |
| _named_sub_values_table_ptr | _named_sub_values = nullptr |
| pointer to conversion table of named groups to their index | |
Basic PCRE2 Regex container.
| utf | UTF type |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
inlineexplicit |
basic regex container with pattern and compile options
|
defaultnoexcept |
default copy constructor
|
defaultnoexcept |
default move constructor
|
defaultnoexcept |
default destructor
|
inlinenoexcept |
returns true if match was found and result is stored in result variable
|
inline |
returns true if match was found
|
inlinenoexcept |
returns true if any match was found and all results store in results array
|
inlinenoexcept |
returns true if match was found, and it has relative offset == 0 and result is stored in result variable
|
inlinenoexcept |
returns true if match was found, and it has relative offset == 0
|
defaultnoexcept |
default move assign operator
|
defaultnoexcept |
default copy assign operator
|
private |
pointer to compiled pcre2 code
|
private |
pointer to match data of pcre2 code
|
private |
pointer to conversion table of named groups to their index