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