11template <
class result_type>
24 std::string_view
input,
const url_aggregator*
base_url =
nullptr);
30 if (unicode::has_tabs_or_newline(
input)) {
32 helpers::remove_ascii_tab_or_newline(
tmp_buffer);
46 return "file://" + path;
Includes all definitions for Ada.
Common definitions for cross-platform compiler support.
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)
ada_warn_unused std::string to_string(encoding_type type)
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)
Definitions for the parser.
Declaration for the basic URL definitions.