Ada 3.0.1
Fast spec-compliant URL parser
|
#include <url_pattern.h>
Public Member Functions | |
url_pattern_component ()=default | |
url_pattern_component (std::string &&new_pattern, typename regex_provider::regex_type &&new_regexp, std::vector< std::string > &&new_group_name_list, bool new_has_regexp_groups) | |
url_pattern_component_result | create_component_match_result (std::string_view input, std::vector< std::optional< std::string > > &&exec_result) |
template<url_pattern_encoding_callback F> | |
tl::expected< url_pattern_component< regex_provider >, errors > | compile (std::string_view input, F &encoding_callback, url_pattern_compile_component_options &options) |
Static Public Member Functions | |
template<url_pattern_encoding_callback F> | |
static tl::expected< url_pattern_component, errors > | compile (std::string_view input, F &encoding_callback, url_pattern_compile_component_options &options) |
Public Attributes | |
regex_provider::regex_type | regexp {} |
std::string | pattern {} |
std::vector< std::string > | group_name_list {} |
bool | has_regexp_groups = false |
Definition at line 148 of file url_pattern.h.
|
default |
Referenced by compile().
|
inline |
Definition at line 154 of file url_pattern.h.
References group_name_list, has_regexp_groups, pattern, and regexp.
tl::expected< url_pattern_component< regex_provider >, errors > ada::url_pattern_component< regex_provider >::compile | ( | std::string_view | input, |
F & | encoding_callback, | ||
url_pattern_compile_component_options & | options ) |
Definition at line 141 of file url_pattern-inl.h.
References ada::url_pattern_helpers::generate_pattern_string(), ada::url_pattern_helpers::generate_regular_expression_and_name_list(), has_regexp_groups, ada::url_pattern_compile_component_options::ignore_case, ada::url_pattern_helpers::parse_pattern_string(), ada::type_error, and url_pattern_component().
|
static |
url_pattern_component_result ada::url_pattern_component< regex_provider >::create_component_match_result | ( | std::string_view | input, |
std::vector< std::optional< std::string > > && | exec_result ) |
Definition at line 30 of file url_pattern-inl.h.
References group_name_list.
Referenced by compile().
std::vector<std::string> ada::url_pattern_component< regex_provider >::group_name_list {} |
Definition at line 188 of file url_pattern.h.
Referenced by create_component_match_result(), and url_pattern_component().
bool ada::url_pattern_component< regex_provider >::has_regexp_groups = false |
Definition at line 189 of file url_pattern.h.
Referenced by compile(), and url_pattern_component().
std::string ada::url_pattern_component< regex_provider >::pattern {} |
Definition at line 187 of file url_pattern.h.
Referenced by url_pattern_component().
regex_provider::regex_type ada::url_pattern_component< regex_provider >::regexp {} |
Definition at line 186 of file url_pattern.h.
Referenced by ada::url_pattern_helpers::protocol_component_matches_special_scheme(), and url_pattern_component().