Ada
3.4.3
Fast spec-compliant URL parser
Toggle main menu visibility
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
17
namespace
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 {
25
return
ada::scheme::get_special_port
(type);
26
}
27
28
[[nodiscard]]
ada_really_inline
uint16_t
29
url_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
checkers.h
Declarations for URL specific checkers used within Ada.
ada_really_inline
#define ada_really_inline
Definition
common_defs.h:85
ada::scheme::NOT_SPECIAL
@ NOT_SPECIAL
Definition
scheme.h:43
ada::scheme::get_special_port
constexpr uint16_t get_special_port(std::string_view scheme) noexcept
Definition
scheme-inl.h:57
ada
Definition
ada_idna.h:13
scheme.h
URL scheme type definitions and utilities.
ada::url_base::is_special
ada_really_inline constexpr bool is_special() const noexcept
Definition
url_base-inl.h:19
url.h
Declaration for the ada::url class.