|
RESTinio
|
Classes | |
| class | parameter_token_t |
| Token for paramater (named/indexed). More... | |
| class | plain_string_token_t |
| Plain str token. More... | |
| struct | route_regex_matcher_data_t |
| Resulting regex and param extraction for a specific route. More... | |
| class | string_view_buffer_storage_appender_t |
| Appender for names to a given buffered string. More... | |
| class | token_t |
| Base class for token variants. More... | |
Typedefs | |
| using | names_buffer_appender_t = string_view_buffer_storage_appender_t< std::string > |
| template<typename Route_Param_Appender > | |
| using | token_unique_ptr_t = std::unique_ptr< token_t< Route_Param_Appender > > |
| template<typename Route_Param_Appender > | |
| using | token_list_t = std::vector< token_unique_ptr_t< Route_Param_Appender > > |
Enumerations | |
| enum class | token_type_t : std::uint8_t { plain_string , capturing_token } |
Variables | |
| constexpr auto | path_regex_str |
| The main path matching expression. | |
| constexpr std::size_t | group_escaped_idx = 1 |
| Indexes for different groups in matched result (used when extracting tokens from initial route). | |
| constexpr std::size_t | group_name_idx = 2 |
| constexpr std::size_t | group_capture_idx = 3 |
| constexpr std::size_t | group_group_idx = 4 |
| constexpr std::size_t | group_modifier_idx = 5 |
|
private |
Definition at line 353 of file path2regex.hpp.
|
private |
Definition at line 396 of file path2regex.hpp.
|
private |
Definition at line 393 of file path2regex.hpp.
|
strongprivate |
| Enumerator | |
|---|---|
| plain_string | |
| capturing_token | |
Definition at line 359 of file path2regex.hpp.
|
inlineprivate |
Checks that string doesn't contain non-excaped brackets.
Definition at line 562 of file path2regex.hpp.
|
inlineprivate |
Creates tokent for specific parameter.
Definition at line 531 of file path2regex.hpp.
|
private |
Definition at line 437 of file path2regex.hpp.
Escapes not allowed symbols in a sub-match group assigned to a parameter.
Definition at line 40 of file path2regex.hpp.
Excape regex control chars.
Definition at line 63 of file path2regex.hpp.
|
inlineprivate |
Handling of a parameterized token.
Definition at line 592 of file path2regex.hpp.
|
private |
Parse a string for the raw tokens.
Definition at line 676 of file path2regex.hpp.
|
private |
Makes route regex matcher out of path tokens.
Definition at line 780 of file path2regex.hpp.
|
constexprprivate |
Definition at line 555 of file path2regex.hpp.
|
constexprprivate |
Indexes for different groups in matched result (used when extracting tokens from initial route).
Definition at line 553 of file path2regex.hpp.
|
constexprprivate |
Definition at line 556 of file path2regex.hpp.
|
constexprprivate |
Definition at line 557 of file path2regex.hpp.
|
constexprprivate |
Definition at line 554 of file path2regex.hpp.
The main path matching expression.
Definition at line 356 of file path2regex.hpp.