11#ifndef ADA_IMPLEMENTATION_H
12#define ADA_IMPLEMENTATION_H
43template <
class result_type = ada::url_aggregator>
44using result = tl::expected<result_type, ada::errors>;
90template <
class result_type = ada::url_aggregator>
92 std::string_view input,
const result_type* base_url =
nullptr);
128 const std::string_view* base_input =
nullptr);
130#if ADA_INCLUDE_URL_PATTERN
151template <url_pattern_regex::regex_concept regex_prov
ider>
153parse_url_pattern(std::variant<std::string_view, url_pattern_init>&& input,
154 const std::string_view* base_url =
nullptr,
155 const url_pattern_options* options =
nullptr);
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)
tl::expected< result_type, ada::errors > result
ada_warn_unused ada::result< result_type > parse(std::string_view input, const result_type *base_url=nullptr)
Memory-efficient URL representation using a single buffer.
Represents a parsed URL with individual string components.
Declaration for the ada::url class.
Declaration for the url_pattern_init implementation.