Ada 2.9.2
Fast spec-compliant URL parser
|
#include "ada.h"
Go to the source code of this file.
Classes | |
struct | ada_string |
struct | ada_owned_string |
struct | ada_string_pair |
struct | ada_url_components |
Typedefs | |
typedef void * | ada_url |
typedef void * | ada_url_search_params |
typedef void * | ada_strings |
typedef void * | ada_url_search_params_keys_iter |
typedef void * | ada_url_search_params_values_iter |
typedef void * | ada_url_search_params_entries_iter |
typedef void* ada_strings |
typedef void* ada_url_search_params |
typedef void* ada_url_search_params_entries_iter |
typedef void* ada_url_search_params_keys_iter |
typedef void* ada_url_search_params_values_iter |
|
noexcept |
Definition at line 85 of file ada_c.cpp.
References ada::can_parse().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 89 of file ada_c.cpp.
References ada::can_parse().
|
noexcept |
Removes the hash of the URL.
Despite ada_set_hash
method, this function allows the complete removal of the hash attribute, even if it has a value of #
.
Definition at line 346 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 333 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Removes the search of the URL.
Despite ada_set_search
method, this function allows the complete removal of the search attribute, even if it has a value of ?
.
Definition at line 359 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
Definition at line 100 of file ada_c.cpp.
References get_instance().
|
noexcept |
Definition at line 95 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 126 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
void ada_free_search_params | ( | ada_url_search_params | result | ) |
void ada_free_search_params_entries_iter | ( | ada_url_search_params_entries_iter | result | ) |
void ada_free_search_params_keys_iter | ( | ada_url_search_params_keys_iter | result | ) |
void ada_free_search_params_values_iter | ( | ada_url_search_params_values_iter | result | ) |
void ada_free_strings | ( | ada_strings | result | ) |
|
noexcept |
Definition at line 439 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 166 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 175 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 220 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 184 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 130 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 111 of file ada_c.cpp.
References get_instance(), and ada_owned_string::length.
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 148 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 193 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 157 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 211 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 228 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 202 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 139 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 366 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 374 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 422 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 382 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 398 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 390 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 414 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 406 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 430 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
ada_owned_string ada_idna_to_ascii | ( | const char * | input, |
size_t | length ) |
Definition at line 457 of file ada_c.cpp.
References ada_owned_string::length, and ada::idna::to_ascii().
ada_owned_string ada_idna_to_unicode | ( | const char * | input, |
size_t | length ) |
Definition at line 448 of file ada_c.cpp.
References ada_owned_string::length, and ada::idna::to_unicode().
|
noexcept |
Definition at line 105 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 67 of file ada_c.cpp.
References ada::parse().
Referenced by LLVMFuzzerTestOneInput().
ada_url_search_params ada_parse_search_params | ( | const char * | input, |
size_t | length ) |
|
noexcept |
Definition at line 72 of file ada_c.cpp.
References ada::parse().
void ada_search_params_append | ( | ada_url_search_params | result, |
const char * | key, | ||
size_t | key_length, | ||
const char * | value, | ||
size_t | value_length ) |
bool ada_search_params_entries_iter_has_next | ( | ada_url_search_params_entries_iter | result | ) |
ada_string_pair ada_search_params_entries_iter_next | ( | ada_url_search_params_entries_iter | result | ) |
Definition at line 721 of file ada_c.cpp.
References ada_string_create().
ada_string ada_search_params_get | ( | ada_url_search_params | result, |
const char * | key, | ||
size_t | key_length ) |
Definition at line 579 of file ada_c.cpp.
References ada_string_create().
ada_strings ada_search_params_get_all | ( | ada_url_search_params | result, |
const char * | key, | ||
size_t | key_length ) |
ada_url_search_params_entries_iter ada_search_params_get_entries | ( | ada_url_search_params | result | ) |
ada_url_search_params_keys_iter ada_search_params_get_keys | ( | ada_url_search_params | result | ) |
ada_url_search_params_values_iter ada_search_params_get_values | ( | ada_url_search_params | result | ) |
bool ada_search_params_has | ( | ada_url_search_params | result, |
const char * | key, | ||
size_t | key_length ) |
bool ada_search_params_has_value | ( | ada_url_search_params | result, |
const char * | key, | ||
size_t | key_length, | ||
const char * | value, | ||
size_t | value_length ) |
bool ada_search_params_keys_iter_has_next | ( | ada_url_search_params_keys_iter | result | ) |
ada_string ada_search_params_keys_iter_next | ( | ada_url_search_params_keys_iter | result | ) |
Definition at line 665 of file ada_c.cpp.
References ada_string_create().
void ada_search_params_remove | ( | ada_url_search_params | result, |
const char * | key, | ||
size_t | key_length ) |
void ada_search_params_remove_value | ( | ada_url_search_params | result, |
const char * | key, | ||
size_t | key_length, | ||
const char * | value, | ||
size_t | value_length ) |
void ada_search_params_reset | ( | ada_url_search_params | result, |
const char * | input, | ||
size_t | length ) |
void ada_search_params_set | ( | ada_url_search_params | result, |
const char * | key, | ||
size_t | key_length, | ||
const char * | value, | ||
size_t | value_length ) |
size_t ada_search_params_size | ( | ada_url_search_params | result | ) |
void ada_search_params_sort | ( | ada_url_search_params | result | ) |
ada_owned_string ada_search_params_to_string | ( | ada_url_search_params | result | ) |
Definition at line 477 of file ada_c.cpp.
References ada_owned_string::length.
bool ada_search_params_values_iter_has_next | ( | ada_url_search_params_values_iter | result | ) |
ada_string ada_search_params_values_iter_next | ( | ada_url_search_params_values_iter | result | ) |
Definition at line 693 of file ada_c.cpp.
References ada_string_create().
|
noexcept |
Update the hash/fragment of the URL.
If a URL has #
as the hash value, passing empty string to this function does not remove the attribute. If you need to remove it, please use ada_clear_hash
method.
Definition at line 326 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 244 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 252 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 236 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 279 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 296 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 288 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 261 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Update the search/query of the URL.
If a URL has ?
as the search value, passing empty string to this function does not remove the attribute. If you need to remove it, please use ada_clear_search
method.
Definition at line 312 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 270 of file ada_c.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
ada_string ada_string_create | ( | const char * | data, |
size_t | length ) |
Definition at line 30 of file ada_c.cpp.
References ada_string::data.
Referenced by ada_get_hash(), ada_get_host(), ada_get_hostname(), ada_get_href(), ada_get_password(), ada_get_pathname(), ada_get_port(), ada_get_protocol(), ada_get_search(), ada_get_username(), ada_search_params_entries_iter_next(), ada_search_params_get(), ada_search_params_keys_iter_next(), ada_search_params_values_iter_next(), and ada_strings_get().
ada_string ada_strings_get | ( | ada_strings | result, |
size_t | index ) |
Definition at line 651 of file ada_c.cpp.
References ada_string_create().
size_t ada_strings_size | ( | ada_strings | result | ) |
|
noexcept |
Definition at line 3 of file ada_c.cpp.
Referenced by ada_clear_hash(), ada_clear_port(), ada_clear_search(), ada_copy(), ada_get_components(), ada_get_hash(), ada_get_host(), ada_get_host_type(), ada_get_hostname(), ada_get_href(), ada_get_origin(), ada_get_password(), ada_get_pathname(), ada_get_port(), ada_get_protocol(), ada_get_scheme_type(), ada_get_search(), ada_get_username(), ada_has_credentials(), ada_has_empty_hostname(), ada_has_hash(), ada_has_hostname(), ada_has_non_empty_password(), ada_has_non_empty_username(), ada_has_password(), ada_has_port(), ada_has_search(), ada_is_valid(), ada_set_hash(), ada_set_host(), ada_set_hostname(), ada_set_href(), ada_set_password(), ada_set_pathname(), ada_set_port(), ada_set_protocol(), ada_set_search(), and ada_set_username().