Ada 2.8.0
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 bool url_base::is_special() const noexcept {
25 return type != ada::scheme::NOT_SPECIAL;
26}
27
28[[nodiscard]] inline uint16_t url_base::get_special_port() const noexcept {
30}
31
32[[nodiscard]] ada_really_inline uint16_t
33url_base::scheme_default_port() const noexcept {
34 return scheme::get_special_port(type);
35}
36
37} // namespace ada
38
39#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:32
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 bool is_special() const noexcept
Declaration for the URL.
Declaration for the basic URL definitions.
Declaration for the URL Components.