Ada
2.9.2
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
state.h
Go to the documentation of this file.
1
5
#ifndef ADA_STATE_H
6
#define ADA_STATE_H
7
8
#include "
ada/common_defs.h
"
9
10
#include <string>
11
12
namespace
ada
{
13
17
enum class
state
{
21
AUTHORITY
,
22
26
SCHEME_START
,
27
31
SCHEME
,
32
36
HOST
,
37
41
NO_SCHEME
,
42
46
FRAGMENT
,
47
51
RELATIVE_SCHEME
,
52
56
RELATIVE_SLASH
,
57
61
FILE
,
62
66
FILE_HOST
,
67
71
FILE_SLASH
,
72
76
PATH_OR_AUTHORITY
,
77
81
SPECIAL_AUTHORITY_IGNORE_SLASHES
,
82
86
SPECIAL_AUTHORITY_SLASHES
,
87
91
SPECIAL_RELATIVE_OR_AUTHORITY
,
92
96
QUERY
,
97
101
PATH
,
102
106
PATH_START
,
107
111
OPAQUE_PATH
,
112
116
PORT
,
117
};
118
122
ada_warn_unused
std::string
to_string
(
ada::state
s);
123
124
}
// namespace ada
125
126
#endif
// ADA_STATE_H
common_defs.h
Common definitions for cross-platform compiler support.
ada_warn_unused
#define ada_warn_unused
Definition
common_defs.h:81
ada
Definition
ada_idna.h:13
ada::to_string
ada_warn_unused std::string to_string(encoding_type type)
Definition
implementation.cpp:69
ada::state
state
Definition
state.h:17
ada::state::SPECIAL_RELATIVE_OR_AUTHORITY
@ SPECIAL_RELATIVE_OR_AUTHORITY
ada::state::FILE_SLASH
@ FILE_SLASH
ada::state::SCHEME
@ SCHEME
ada::state::PORT
@ PORT
ada::state::QUERY
@ QUERY
ada::state::SPECIAL_AUTHORITY_SLASHES
@ SPECIAL_AUTHORITY_SLASHES
ada::state::PATH
@ PATH
ada::state::FRAGMENT
@ FRAGMENT
ada::state::FILE_HOST
@ FILE_HOST
ada::state::OPAQUE_PATH
@ OPAQUE_PATH
ada::state::RELATIVE_SLASH
@ RELATIVE_SLASH
ada::state::FILE
@ FILE
ada::state::NO_SCHEME
@ NO_SCHEME
ada::state::HOST
@ HOST
ada::state::PATH_START
@ PATH_START
ada::state::RELATIVE_SCHEME
@ RELATIVE_SCHEME
ada::state::SPECIAL_AUTHORITY_IGNORE_SLASHES
@ SPECIAL_AUTHORITY_IGNORE_SLASHES
ada::state::SCHEME_START
@ SCHEME_START
ada::state::AUTHORITY
@ AUTHORITY
ada::state::PATH_OR_AUTHORITY
@ PATH_OR_AUTHORITY