Ada
3.4.0
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
state.h
Go to the documentation of this file.
1
10
#ifndef ADA_STATE_H
11
#define ADA_STATE_H
12
13
#include "
ada/common_defs.h
"
14
15
#include <string>
16
17
namespace
ada
{
18
27
enum class
state
{
31
AUTHORITY
,
32
36
SCHEME_START
,
37
41
SCHEME
,
42
46
HOST
,
47
51
NO_SCHEME
,
52
56
FRAGMENT
,
57
61
RELATIVE_SCHEME
,
62
66
RELATIVE_SLASH
,
67
71
FILE
,
72
76
FILE_HOST
,
77
81
FILE_SLASH
,
82
86
PATH_OR_AUTHORITY
,
87
91
SPECIAL_AUTHORITY_IGNORE_SLASHES
,
92
96
SPECIAL_AUTHORITY_SLASHES
,
97
101
SPECIAL_RELATIVE_OR_AUTHORITY
,
102
106
QUERY
,
107
111
PATH
,
112
116
PATH_START
,
117
121
OPAQUE_PATH
,
122
126
PORT
,
127
};
128
134
ada_warn_unused
std::string
to_string
(
ada::state
s);
135
136
}
// namespace ada
137
138
#endif
// ADA_STATE_H
common_defs.h
Cross-platform compiler macros and common definitions.
ada_warn_unused
#define ada_warn_unused
Definition
common_defs.h:89
ada
Definition
ada_idna.h:13
ada::state
state
States in the URL parsing state machine.
Definition
state.h:27
ada::state::SPECIAL_RELATIVE_OR_AUTHORITY
@ SPECIAL_RELATIVE_OR_AUTHORITY
Definition
state.h:101
ada::state::FILE_SLASH
@ FILE_SLASH
Definition
state.h:81
ada::state::SCHEME
@ SCHEME
Definition
state.h:41
ada::state::PORT
@ PORT
Definition
state.h:126
ada::state::QUERY
@ QUERY
Definition
state.h:106
ada::state::SPECIAL_AUTHORITY_SLASHES
@ SPECIAL_AUTHORITY_SLASHES
Definition
state.h:96
ada::state::PATH
@ PATH
Definition
state.h:111
ada::state::FRAGMENT
@ FRAGMENT
Definition
state.h:56
ada::state::FILE_HOST
@ FILE_HOST
Definition
state.h:76
ada::state::OPAQUE_PATH
@ OPAQUE_PATH
Definition
state.h:121
ada::state::RELATIVE_SLASH
@ RELATIVE_SLASH
Definition
state.h:66
ada::state::FILE
@ FILE
Definition
state.h:71
ada::state::NO_SCHEME
@ NO_SCHEME
Definition
state.h:51
ada::state::HOST
@ HOST
Definition
state.h:46
ada::state::PATH_START
@ PATH_START
Definition
state.h:116
ada::state::RELATIVE_SCHEME
@ RELATIVE_SCHEME
Definition
state.h:61
ada::state::SPECIAL_AUTHORITY_IGNORE_SLASHES
@ SPECIAL_AUTHORITY_IGNORE_SLASHES
Definition
state.h:91
ada::state::SCHEME_START
@ SCHEME_START
Definition
state.h:36
ada::state::AUTHORITY
@ AUTHORITY
Definition
state.h:31
ada::state::PATH_OR_AUTHORITY
@ PATH_OR_AUTHORITY
Definition
state.h:86
ada::to_string
ada_warn_unused std::string_view to_string(encoding_type type)
Definition
implementation.cpp:70