Ada 2.9.0
Fast spec-compliant URL parser
|
Includes the C definitions for Ada. This is a C file, not C++. More...
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
Go to the source code of this file.
Classes | |
struct | ada_string |
struct | ada_owned_string |
struct | ada_url_components |
struct | ada_string_pair |
Macros | |
#define | ada_url_omitted 0xffffffff |
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 |
Includes the C definitions for Ada. This is a C file, not C++.
Definition in file ada_c.h.
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 15000 of file ada.cpp.
References ada::can_parse().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15004 of file ada.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 15261 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15248 of file ada.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 15274 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
Definition at line 15015 of file ada.cpp.
References get_instance().
|
noexcept |
Definition at line 15010 of file ada.cpp.
Referenced by LLVMFuzzerTestOneInput(), and main().
|
noexcept |
Definition at line 15041 of file ada.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 15354 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15081 of file ada.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15090 of file ada.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15135 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15099 of file ada.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15045 of file ada.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput(), and main().
|
noexcept |
Definition at line 15026 of file ada.cpp.
References ada_owned_string::data, and get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15063 of file ada.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15108 of file ada.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15072 of file ada.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15126 of file ada.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput(), and main().
|
noexcept |
Definition at line 15143 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15117 of file ada.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15054 of file ada.cpp.
References ada_string_create(), and get_instance().
Referenced by LLVMFuzzerTestOneInput(), and main().
|
noexcept |
Definition at line 15281 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15289 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15337 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15297 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15313 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15305 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15329 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15321 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15345 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
ada_owned_string ada_idna_to_ascii | ( | const char * | input, |
size_t | length ) |
Definition at line 15372 of file ada.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 15363 of file ada.cpp.
References ada_owned_string::length, and ada::idna::to_unicode().
|
noexcept |
Definition at line 15020 of file ada.cpp.
References get_instance(), and tl::expected< T, E >::has_value().
Referenced by LLVMFuzzerTestOneInput(), and main().
|
noexcept |
Definition at line 14982 of file ada.cpp.
References ada::parse().
Referenced by LLVMFuzzerTestOneInput(), and main().
ada_url_search_params ada_parse_search_params | ( | const char * | input, |
size_t | length ) |
|
noexcept |
Definition at line 14987 of file ada.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 15636 of file ada.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 15494 of file ada.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 15580 of file ada.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 15392 of file ada.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 15608 of file ada.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 15241 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput(), and main().
|
noexcept |
Definition at line 15159 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput(), and main().
|
noexcept |
Definition at line 15167 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput(), and main().
|
noexcept |
Definition at line 15151 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput(), and main().
|
noexcept |
Definition at line 15194 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15211 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput(), and main().
|
noexcept |
Definition at line 15203 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 15176 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput(), and main().
|
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 15227 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput(), and main().
|
noexcept |
Definition at line 15185 of file ada.cpp.
References get_instance().
Referenced by LLVMFuzzerTestOneInput().
ada_string ada_strings_get | ( | ada_strings | result, |
size_t | index ) |
Definition at line 15566 of file ada.cpp.
References ada_string_create().
size_t ada_strings_size | ( | ada_strings | result | ) |