Ada 2.9.2
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
10#include "ada/scheme.h"
11#include "ada/scheme-inl.h"
12#include "ada/log.h"
13#include "ada/checkers.h"
14#include "ada/url.h"
15
16#include <optional>
17#include <string>
18#if ADA_REGULAR_VISUAL_STUDIO
19#include <intrin.h>
20#endif // ADA_REGULAR_VISUAL_STUDIO
21
22namespace ada {
23
24[[nodiscard]] ada_really_inline constexpr bool url_base::is_special()
25 const noexcept {
26 return type != ada::scheme::NOT_SPECIAL;
27}
28
29[[nodiscard]] inline uint16_t url_base::get_special_port() const noexcept {
31}
32
33[[nodiscard]] ada_really_inline uint16_t
34url_base::scheme_default_port() const noexcept {
35 return scheme::get_special_port(type);
36}
37
38} // namespace ada
39
40#endif // ADA_URL_BASE_INL_H
Declarations for URL specific checkers used within Ada.
#define ada_really_inline
Definition common_defs.h:84
@ NOT_SPECIAL
Definition scheme.h:31
constexpr uint16_t get_special_port(std::string_view scheme) noexcept
Definition scheme-inl.h:57
Definition ada_idna.h:13
Definitions for the URL scheme.
Declarations for the URL scheme.
ada_really_inline constexpr bool is_special() const noexcept
Declaration for the URL.
Declaration for the basic URL definitions.
Declaration for the URL Components.