Loading...
Searching...
No Matches
url_components.h
Go to the documentation of this file.
#ifndef ADA_URL_COMPONENTS_H
#define ADA_URL_COMPONENTS_H
namespace ada {
struct url_components {
constexpr static uint32_t omitted = uint32_t(-1);
url_components() = default;
url_components(const url_components &u) = default;
url_components(url_components &&u) noexcept = default;
url_components &operator=(url_components &&u) noexcept = default;
url_components &operator=(const url_components &u) = default;
~url_components() = default;
uint32_t protocol_end{0};
uint32_t username_end{0};
uint32_t host_start{0};
uint32_t host_end{0};
uint32_t port{omitted};
uint32_t pathname_start{0};
uint32_t search_start{omitted};
uint32_t hash_start{omitted};
[[nodiscard]] constexpr bool check_offset_consistency() const noexcept;
[[nodiscard]] std::string to_string() const;
}; // struct url_components
} // namespace ada
#endif
ada
Definition ada_idna.h:13
ada::to_string
ada_warn_unused std::string_view to_string(encoding_type type)
Definition implementation.cpp:70
ada::url_components::pathname_start
uint32_t pathname_start
Definition url_components.h:69
ada::url_components::hash_start
uint32_t hash_start
Definition url_components.h:75
ada::url_components::port
uint32_t port
Definition url_components.h:66
ada::url_components::omitted
static constexpr uint32_t omitted
Definition url_components.h:41
ada::url_components::check_offset_consistency
constexpr bool check_offset_consistency() const noexcept
Definition url_components-inl.h:12
ada::url_components::operator=
url_components & operator=(url_components &&u) noexcept=default
ada::url_components::protocol_end
uint32_t protocol_end
Definition url_components.h:51
ada::url_components::~url_components
~url_components()=default
ada::url_components::search_start
uint32_t search_start
Definition url_components.h:72
ada::url_components::url_components
url_components()=default
ada::url_components::host_end
uint32_t host_end
Definition url_components.h:63
ada::url_components::url_components
url_components(url_components &&u) noexcept=default
ada::url_components::username_end
uint32_t username_end
Definition url_components.h:57
ada::url_components::url_components
url_components(const url_components &u)=default
ada::url_components::operator=
url_components & operator=(const url_components &u)=default
ada::url_components::host_start
uint32_t host_start
Definition url_components.h:60