Ada 3.0.1
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
url_pattern_helpers.h File Reference

Declaration for the URLPattern helpers. More...

#include "ada/expected.h"
#include "ada/common_defs.h"
#include "ada/url_pattern.h"
#include <string>
#include <tuple>
#include <vector>

Go to the source code of this file.

Classes

class  ada::url_pattern_helpers::token
 
class  ada::url_pattern_helpers::url_pattern_parser< F >
 
class  ada::url_pattern_helpers::Tokenizer
 
struct  ada::url_pattern_helpers::constructor_string_parser< regex_provider >
 

Namespaces

namespace  ada
 
namespace  ada::url_pattern_helpers
 

Enumerations

enum class  ada::url_pattern_helpers::token_type : uint8_t {
  ada::url_pattern_helpers::INVALID_CHAR , ada::url_pattern_helpers::OPEN , ada::url_pattern_helpers::CLOSE , ada::url_pattern_helpers::REGEXP ,
  ada::url_pattern_helpers::NAME , ada::url_pattern_helpers::CHAR , ada::url_pattern_helpers::ESCAPED_CHAR , ada::url_pattern_helpers::OTHER_MODIFIER ,
  ada::url_pattern_helpers::ASTERISK , ada::url_pattern_helpers::END
}
 
enum class  ada::url_pattern_helpers::token_policy { ada::url_pattern_helpers::strict , ada::url_pattern_helpers::lenient }
 

Functions

std::string ada::url_pattern_helpers::to_string (token_type type)
 
tl::expected< std::string, errorsada::url_pattern_helpers::canonicalize_protocol (std::string_view input)
 
tl::expected< std::string, errorsada::url_pattern_helpers::canonicalize_username (std::string_view input)
 
tl::expected< std::string, errorsada::url_pattern_helpers::canonicalize_password (std::string_view input)
 
tl::expected< std::string, errorsada::url_pattern_helpers::canonicalize_hostname (std::string_view input)
 
tl::expected< std::string, errorsada::url_pattern_helpers::canonicalize_ipv6_hostname (std::string_view input)
 
tl::expected< std::string, errorsada::url_pattern_helpers::canonicalize_port (std::string_view input)
 
tl::expected< std::string, errorsada::url_pattern_helpers::canonicalize_port_with_protocol (std::string_view input, std::string_view protocol)
 
tl::expected< std::string, errorsada::url_pattern_helpers::canonicalize_pathname (std::string_view input)
 
tl::expected< std::string, errorsada::url_pattern_helpers::canonicalize_opaque_pathname (std::string_view input)
 
tl::expected< std::string, errorsada::url_pattern_helpers::canonicalize_search (std::string_view input)
 
tl::expected< std::string, errorsada::url_pattern_helpers::canonicalize_hash (std::string_view input)
 
tl::expected< std::vector< token >, errorsada::url_pattern_helpers::tokenize (std::string_view input, token_policy policy)
 
std::string ada::url_pattern_helpers::process_base_url_string (std::string_view input, std::string_view type)
 
std::string ada::url_pattern_helpers::escape_pattern_string (std::string_view input)
 
std::string ada::url_pattern_helpers::escape_regexp_string (std::string_view input)
 
constexpr bool ada::url_pattern_helpers::is_absolute_pathname (std::string_view input, std::string_view type) noexcept
 
template<url_pattern_encoding_callback F>
tl::expected< std::vector< url_pattern_part >, errorsada::url_pattern_helpers::parse_pattern_string (std::string_view input, url_pattern_compile_component_options &options, F &encoding_callback)
 
std::string ada::url_pattern_helpers::generate_pattern_string (std::vector< url_pattern_part > &part_list, url_pattern_compile_component_options &options)
 
std::tuple< std::string, std::vector< std::string > > ada::url_pattern_helpers::generate_regular_expression_and_name_list (const std::vector< url_pattern_part > &part_list, url_pattern_compile_component_options options)
 
bool ada::url_pattern_helpers::is_ipv6_address (std::string_view input) noexcept
 
template<url_pattern_regex::regex_concept regex_provider>
bool ada::url_pattern_helpers::protocol_component_matches_special_scheme (url_pattern_component< regex_provider > &component)
 
std::string ada::url_pattern_helpers::convert_modifier_to_string (url_pattern_part_modifier modifier)
 
std::string ada::url_pattern_helpers::generate_segment_wildcard_regexp (url_pattern_compile_component_options options)
 

Detailed Description

Declaration for the URLPattern helpers.

Definition in file url_pattern_helpers.h.