Ada 4.1.1
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
url_base-inl.h
Go to the documentation of this file.
1
5#ifndef ADA_URL_BASE_INL_H
6#define ADA_URL_BASE_INL_H
7
8#include "ada/scheme.h"
9#include "ada/checkers.h"
10#include "ada/url.h"
11
12#include <cstdint>
13#include <string>
14#if ADA_REGULAR_VISUAL_STUDIO
15#include <intrin.h>
16#endif // ADA_REGULAR_VISUAL_STUDIO
17
18namespace ada {
19
20[[nodiscard]] ada_really_inline constexpr bool url_base::is_special()
21 const noexcept {
22 return type != ada::scheme::NOT_SPECIAL;
23}
24
25[[nodiscard]] inline uint16_t url_base::get_special_port() const noexcept {
27}
28
29[[nodiscard]] ada_really_inline uint16_t
30url_base::scheme_default_port() const noexcept {
31 return scheme::get_special_port(type);
32}
33
34} // namespace ada
35
36#endif // ADA_URL_BASE_INL_H
Declarations for URL specific checkers used within Ada.
#define ada_really_inline
Definition common_defs.h:85
@ NOT_SPECIAL
Definition scheme.h:45
constexpr uint16_t get_special_port(std::string_view scheme) noexcept
Definition scheme-inl.h:94
URL scheme type definitions and utilities.
ada_really_inline constexpr bool is_special() const noexcept
Declaration for the ada::url class.