Loading...
Searching...
No Matches
state.h
Go to the documentation of this file.
#ifndef ADA_STATE_H
#define ADA_STATE_H
#include "ada/common_defs.h"
#include <string>
namespace ada {
enum class state {
AUTHORITY,
SCHEME_START,
SCHEME,
HOST,
NO_SCHEME,
FRAGMENT,
RELATIVE_SCHEME,
RELATIVE_SLASH,
FILE,
FILE_HOST,
FILE_SLASH,
PATH_OR_AUTHORITY,
SPECIAL_AUTHORITY_IGNORE_SLASHES,
SPECIAL_AUTHORITY_SLASHES,
SPECIAL_RELATIVE_OR_AUTHORITY,
QUERY,
PATH,
PATH_START,
OPAQUE_PATH,
PORT,
};
ada_warn_unused std::string to_string(ada::state s);
} // namespace ada
#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