Ada
4.1.1
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 <cstdint>
13
#include <string>
14
#if ADA_REGULAR_VISUAL_STUDIO
15
#include <intrin.h>
16
#endif
// ADA_REGULAR_VISUAL_STUDIO
17
18
namespace
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 {
26
return
ada::scheme::get_special_port
(type);
27
}
28
29
[[nodiscard]]
ada_really_inline
uint16_t
30
url_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
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:45
ada::scheme::get_special_port
constexpr uint16_t get_special_port(std::string_view scheme) noexcept
Definition
scheme-inl.h:94
ada
Definition
identifier.h:7
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:20
url.h
Declaration for the ada::url class.