Result type for URL parsing operations.
#ifndef ADA_IMPLEMENTATION_H
#define ADA_IMPLEMENTATION_H
#include <string>
#include <string_view>
#include <optional>
template <class result_type = ada::url_aggregator>
using result = tl::expected<result_type, ada::errors>;
template <class result_type = ada::url_aggregator>
std::string_view input, const result_type* base_url = nullptr);
const url* base_url);
std::string_view input, const url_aggregator* base_url);
const std::string_view* base_input = nullptr);
#if ADA_INCLUDE_URL_PATTERN
template <url_pattern_regex::regex_concept regex_provider>
parse_url_pattern(std::variant<std::string_view, url_pattern_init>&& input,
const std::string_view* base_url = nullptr,
const url_pattern_options* options = nullptr);
#endif
}
#endif
Cross-platform compiler macros and common definitions.
Error type definitions for URL parsing.
bool can_parse(std::string_view input, const std::string_view *base_input=nullptr)
template ada::result< url > parse< url >(std::string_view input, const url *base_url)
std::string href_from_file(std::string_view path)
errors
Error codes for URL parsing operations.
template ada::result< url_aggregator > parse< url_aggregator >(std::string_view input, const url_aggregator *base_url)
Declaration for the ada::url class.
Declaration for the url_pattern_init implementation.