Ada 3.1.0
Fast spec-compliant URL parser
|
#include <url_search_params.h>
Public Member Functions | |
url_search_params ()=default | |
url_search_params (const std::string_view input) | |
url_search_params (const url_search_params &u)=default | |
url_search_params (url_search_params &&u) noexcept=default | |
url_search_params & | operator= (url_search_params &&u) noexcept=default |
url_search_params & | operator= (const url_search_params &u)=default |
~url_search_params ()=default | |
size_t | size () const noexcept |
void | append (std::string_view key, std::string_view value) |
void | remove (std::string_view key) |
void | remove (std::string_view key, std::string_view value) |
std::optional< std::string_view > | get (std::string_view key) |
std::vector< std::string > | get_all (std::string_view key) |
bool | has (std::string_view key) noexcept |
bool | has (std::string_view key, std::string_view value) noexcept |
void | set (std::string_view key, std::string_view value) |
void | sort () |
std::string | to_string () const |
url_search_params_keys_iter | get_keys () |
url_search_params_values_iter | get_values () |
url_search_params_entries_iter | get_entries () |
auto | begin () const |
auto | end () const |
auto | front () const |
auto | back () const |
auto | operator[] (size_t index) const |
Friends | |
template<typename T, url_search_params_iter_type Type> | |
struct | url_search_params_iter |
We require all strings to be valid UTF-8. It is the user's responsibility to ensure that the provided strings are valid UTF-8.
Definition at line 40 of file url_search_params.h.
|
default |
Referenced by operator=(), operator=(), url_search_params(), and url_search_params().
|
inlineexplicit |
Definition at line 47 of file url_search_params.h.
|
default |
References url_search_params().
|
defaultnoexcept |
References url_search_params().
|
default |
References append(), get(), get_all(), get_entries(), get_keys(), get_values(), has(), ada::optional, remove(), set(), sort(), and to_string().
|
inline |
Both key and value must be valid UTF-8.
Definition at line 70 of file url_search_params-inl.h.
Referenced by ~url_search_params().
|
inline |
Definition at line 136 of file url_search_params.h.
|
inline |
C++ style conventional iterator support. const only because we do not really want the params to be modified via the iterator.
Definition at line 133 of file url_search_params.h.
References begin().
Referenced by begin().
|
inline |
Definition at line 134 of file url_search_params.h.
|
inline |
Definition at line 135 of file url_search_params.h.
|
inline |
Definition at line 77 of file url_search_params-inl.h.
Referenced by ~url_search_params().
|
inline |
Definition at line 89 of file url_search_params-inl.h.
Referenced by ~url_search_params().
|
inline |
Returns a simple JS-style iterator over all of the entries in this url_search_params. The entries are pairs of keys and corresponding values. The valid lifespan of the iterator is tied to the url_search_params. The iterator must be freed when you're done with it.
Definition at line 255 of file url_search_params-inl.h.
Referenced by ~url_search_params().
|
inline |
Returns a simple JS-style iterator over all of the keys in this url_search_params. The keys in the iterator are not unique. The valid lifespan of the iterator is tied to the url_search_params. The iterator must be freed when you're done with it.
Definition at line 241 of file url_search_params-inl.h.
Referenced by ~url_search_params().
|
inline |
Returns a simple JS-style iterator over all of the values in this url_search_params. The valid lifespan of the iterator is tied to the url_search_params. The iterator must be freed when you're done with it.
Definition at line 248 of file url_search_params-inl.h.
Referenced by ~url_search_params().
|
inlinenoexcept |
Definition at line 102 of file url_search_params-inl.h.
Referenced by ~url_search_params().
|
inlinenoexcept |
Definition at line 108 of file url_search_params-inl.h.
|
default |
References url_search_params().
|
defaultnoexcept |
References url_search_params().
|
inline |
Definition at line 137 of file url_search_params.h.
|
inline |
Definition at line 152 of file url_search_params-inl.h.
Referenced by ~url_search_params().
|
inline |
Definition at line 157 of file url_search_params-inl.h.
|
inline |
Both key and value must be valid UTF-8.
Definition at line 137 of file url_search_params-inl.h.
Referenced by ~url_search_params().
|
inlinenodiscardnoexcept |
Definition at line 75 of file url_search_params-inl.h.
|
inline |
Definition at line 164 of file url_search_params-inl.h.
Referenced by ~url_search_params().
|
inline |
Definition at line 116 of file url_search_params-inl.h.
References ada::character_sets::WWW_FORM_URLENCODED_PERCENT_ENCODE.
Referenced by ~url_search_params().
|
friend |
Definition at line 158 of file url_search_params.h.
References url_search_params_iter.
Referenced by url_search_params_iter.