RESTinio
|
Regex engine implementation for PCRE. More...
#include <pcre_regex_engine.hpp>
Public Types | |
using | compiled_regex_t = pcre_details::regex_t |
using | match_results_t = pcre_details::match_results_t< Traits > |
using | matched_item_descriptor_t = typename match_results_t::matched_item_descriptor_t |
Static Public Member Functions | |
static constexpr std::size_t | max_capture_groups () |
static auto | compile_regex (string_view_t r, bool is_case_sensative) |
Create compiled regex object for a given route. More... | |
static auto | try_match (string_view_t target_path, const compiled_regex_t &r, match_results_t &match_results) |
Wrapper function for matching logic invokation. More... | |
static auto | submatch_begin_pos (const matched_item_descriptor_t &m) |
Get the beginning of a submatch. More... | |
static auto | submatch_end_pos (const matched_item_descriptor_t &m) |
Get the end of a submatch. More... | |
Regex engine implementation for PCRE.
Definition at line 163 of file pcre_regex_engine.hpp.
using restinio::router::pcre_regex_engine_t< Traits >::compiled_regex_t = pcre_details::regex_t |
Definition at line 165 of file pcre_regex_engine.hpp.
using restinio::router::pcre_regex_engine_t< Traits >::match_results_t = pcre_details::match_results_t< Traits > |
Definition at line 166 of file pcre_regex_engine.hpp.
using restinio::router::pcre_regex_engine_t< Traits >::matched_item_descriptor_t = typename match_results_t::matched_item_descriptor_t |
Definition at line 167 of file pcre_regex_engine.hpp.
|
inlinestatic |
Create compiled regex object for a given route.
r | Regular expression (the pattern). |
is_case_sensative | Option for case sensativity. |
Definition at line 178 of file pcre_regex_engine.hpp.
|
inlinestaticconstexpr |
Definition at line 171 of file pcre_regex_engine.hpp.
|
inlinestatic |
Get the beginning of a submatch.
Definition at line 234 of file pcre_regex_engine.hpp.
|
inlinestatic |
Get the end of a submatch.
Definition at line 241 of file pcre_regex_engine.hpp.
|
inlinestatic |
Wrapper function for matching logic invokation.
Definition at line 196 of file pcre_regex_engine.hpp.