5#ifndef ADA_SCHEME_INL_H
6#define ADA_SCHEME_INL_H
20 "ftp",
"wss",
"file",
" "};
28 for (
size_t i = 0;
i <
sv.size();
i++)
88 return (
target[0] == scheme[0]) && (
target.substr(1) == scheme.substr(1));
96 if (scheme.size() ==
target.size() &&
108 if (scheme.empty()) {
113 if (scheme.size() ==
target.size() &&
#define ada_really_inline
constexpr std::string_view is_special_list[]
constexpr uint64_t scheme_keys[]
constexpr uint16_t special_ports[]
uint64_t branchless_load5(const char *p, size_t n)
constexpr uint64_t make_key(std::string_view sv)
URL scheme utilities and constants.
constexpr ada::scheme::type get_scheme_type(std::string_view scheme) noexcept
type
Enumeration of URL scheme types.
constexpr uint16_t get_special_port(std::string_view scheme) noexcept
ada_warn_unused ada::result< result_type > parse(std::string_view input, const result_type *base_url=nullptr)
URL scheme type definitions and utilities.