Ada 3.0.1
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
url_pattern_helpers.cpp File Reference
#include "ada/url_pattern_helpers-inl.h"
#include <algorithm>
#include <optional>
#include <string>

Go to the source code of this file.

Namespaces

namespace  ada
 
namespace  ada::url_pattern_helpers
 
namespace  ada::url_pattern_helpers::anonymous_namespace{url_pattern_helpers.cpp}
 

Functions

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
 
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)
 
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::escape_pattern_string (std::string_view input)
 
constexpr bool ada::url_pattern_helpers::anonymous_namespace{url_pattern_helpers.cpp}::should_escape_regexp_char (char c)
 
std::string ada::url_pattern_helpers::escape_regexp_string (std::string_view input)
 
std::string ada::url_pattern_helpers::process_base_url_string (std::string_view input, std::string_view type)
 
constexpr bool ada::url_pattern_helpers::is_absolute_pathname (std::string_view input, std::string_view type) noexcept
 
std::string ada::url_pattern_helpers::generate_pattern_string (std::vector< url_pattern_part > &part_list, url_pattern_compile_component_options &options)
 

Variables

constexpr std::array< uint8_t, 256 > ada::url_pattern_helpers::anonymous_namespace{url_pattern_helpers.cpp}::escape_regexp_table