Ada 3.4.4
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
17namespace ada {
18
27enum class state {
32
37
41 SCHEME,
42
46 HOST,
47
52
57
62
67
71 FILE,
72
77
82
87
92
97
102
106 QUERY,
107
111 PATH,
112
117
122
126 PORT,
127};
128
135
136} // namespace ada
137
138#endif // ADA_STATE_H
Cross-platform compiler macros and common definitions.
#define ada_warn_unused
Definition common_defs.h:89
Definition ada_idna.h:13
state
States in the URL parsing state machine.
Definition state.h:27
@ SPECIAL_RELATIVE_OR_AUTHORITY
@ SPECIAL_AUTHORITY_SLASHES
@ SPECIAL_AUTHORITY_IGNORE_SLASHES
ada_warn_unused std::string_view to_string(encoding_type type)
ada_warn_unused ada::result< result_type > parse(std::string_view input, const result_type *base_url=nullptr)