Ada 3.0.1
Fast spec-compliant URL parser
|
#include <url_pattern.h>
Public Member Functions | |
url_pattern ()=default | |
result< std::optional< url_pattern_result > > | exec (const url_pattern_input &input, const std::string_view *base_url=nullptr) |
result< bool > | test (const url_pattern_input &input, const std::string_view *base_url=nullptr) |
result< std::optional< url_pattern_result > > | match (const url_pattern_input &input, const std::string_view *base_url_string=nullptr) |
std::string_view | get_protocol () const ada_lifetime_bound |
std::string_view | get_username () const ada_lifetime_bound |
std::string_view | get_password () const ada_lifetime_bound |
std::string_view | get_hostname () const ada_lifetime_bound |
std::string_view | get_port () const ada_lifetime_bound |
std::string_view | get_pathname () const ada_lifetime_bound |
std::string_view | get_search () const ada_lifetime_bound |
std::string_view | get_hash () const ada_lifetime_bound |
bool | ignore_case () const |
bool | has_regexp_groups () const |
Friends | |
template<url_pattern_regex::regex_concept P> | |
tl::expected< url_pattern< P >, errors > | parser::parse_url_pattern_impl (std::variant< std::string_view, url_pattern_init > input, const std::string_view *base_url, const url_pattern_options *options) |
Definition at line 225 of file url_pattern.h.
|
default |
References ada_lifetime_bound, exec(), get_hash(), get_hostname(), get_password(), get_pathname(), get_port(), get_protocol(), get_search(), get_username(), has_regexp_groups(), ignore_case(), match(), test(), and url_pattern().
Referenced by url_pattern().
result< std::optional< url_pattern_result > > ada::url_pattern< regex_provider >::exec | ( | const url_pattern_input & | input, |
const std::string_view * | base_url = nullptr ) |
|
nodiscard |
Definition at line 97 of file url_pattern-inl.h.
References ada_lifetime_bound.
Referenced by url_pattern().
|
nodiscard |
Definition at line 73 of file url_pattern-inl.h.
References ada_lifetime_bound.
Referenced by url_pattern().
|
nodiscard |
Definition at line 67 of file url_pattern-inl.h.
References ada_lifetime_bound.
Referenced by url_pattern().
|
nodiscard |
Definition at line 85 of file url_pattern-inl.h.
References ada_lifetime_bound.
Referenced by url_pattern().
|
nodiscard |
Definition at line 79 of file url_pattern-inl.h.
References ada_lifetime_bound.
Referenced by url_pattern().
|
nodiscard |
Definition at line 55 of file url_pattern-inl.h.
References ada_lifetime_bound.
Referenced by url_pattern().
|
nodiscard |
Definition at line 91 of file url_pattern-inl.h.
References ada_lifetime_bound.
Referenced by url_pattern().
|
nodiscard |
Definition at line 61 of file url_pattern-inl.h.
References ada_lifetime_bound.
Referenced by url_pattern().
|
nodiscard |
Definition at line 107 of file url_pattern-inl.h.
Referenced by url_pattern().
|
nodiscard |
Definition at line 103 of file url_pattern-inl.h.
Referenced by url_pattern().
result< std::optional< url_pattern_result > > ada::url_pattern< regex_provider >::match | ( | const url_pattern_input & | input, |
const std::string_view * | base_url_string = nullptr ) |
Definition at line 217 of file url_pattern-inl.h.
References ADA_ASSERT_TRUE, ada::url::get_hash(), ada::url::get_hostname(), ada::url::get_password(), ada::url::get_pathname(), ada::url::get_port(), ada::url::get_protocol(), ada::url::get_search(), ada::url::get_username(), ada::url::has_hash(), ada::url::has_search(), ada::parse< url_aggregator >(), ada::url_pattern_init::process(), and ada::type_error.
Referenced by exec(), test(), and url_pattern().
result< bool > ada::url_pattern< regex_provider >::test | ( | const url_pattern_input & | input, |
const std::string_view * | base_url = nullptr ) |
Definition at line 203 of file url_pattern-inl.h.
References match(), and ada::type_error.
Referenced by url_pattern().
|
friend |
References ada::parser::parse_url_pattern_impl().