|
Ada 4.1.1
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 |
| struct | ada_version_components |
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 88 of file ada_c.cpp.
References ada::can_parse().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 92 of file ada_c.cpp.
References ada::can_parse().
Referenced by LLVMFuzzerTestOneInput().
|
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 351 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
noexcept |
Definition at line 338 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
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 364 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
Definition at line 103 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
noexcept |
Definition at line 98 of file ada_c.cpp.
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 131 of file ada_c.cpp.
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
| void ada_free_search_params | ( | ada_url_search_params | result | ) |
Definition at line 479 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| void ada_free_search_params_entries_iter | ( | ada_url_search_params_entries_iter | result | ) |
Definition at line 737 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| void ada_free_search_params_keys_iter | ( | ada_url_search_params_keys_iter | result | ) |
Definition at line 682 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| void ada_free_search_params_values_iter | ( | ada_url_search_params_values_iter | result | ) |
Definition at line 709 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| void ada_free_strings | ( | ada_strings | result | ) |
Definition at line 660 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 444 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 171 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 180 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by exercise_valid_url().
|
noexcept |
Definition at line 225 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
noexcept |
Definition at line 189 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 135 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 769 of file ada_c.cpp.
References ada::get_max_input_length().
|
noexcept |
Definition at line 114 of file ada_c.cpp.
References ada_owned_string::data, get_instance(), and ada_owned_string::length.
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 153 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 198 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 162 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 216 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 233 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
noexcept |
Definition at line 207 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 144 of file ada_c.cpp.
References ada_string_create(), and get_instance().
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
| const char * ada_get_version | ( | ) |
Definition at line 779 of file ada_c.cpp.
References ADA_VERSION.
Referenced by LLVMFuzzerTestOneInput().
| ada_version_components ada_get_version_components | ( | ) |
Definition at line 781 of file ada_c.cpp.
References ada::ADA_VERSION_MAJOR, ada::ADA_VERSION_MINOR, and ada::ADA_VERSION_REVISION.
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 371 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 379 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
noexcept |
Definition at line 427 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 387 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
noexcept |
Definition at line 403 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
noexcept |
Definition at line 395 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
noexcept |
Definition at line 419 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
noexcept |
Definition at line 411 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 435 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
| ada_owned_string ada_idna_to_ascii | ( | const char * | input, |
| size_t | length ) |
Definition at line 463 of file ada_c.cpp.
References ada_owned_string::data, ada_owned_string::length, and ada::idna::to_ascii().
Referenced by LLVMFuzzerTestOneInput().
| ada_owned_string ada_idna_to_unicode | ( | const char * | input, |
| size_t | length ) |
Definition at line 453 of file ada_c.cpp.
References ada_owned_string::data, ada_owned_string::length, and ada::idna::to_unicode().
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 108 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 70 of file ada_c.cpp.
References ada::parse().
Referenced by exercise_valid_url(), and LLVMFuzzerTestOneInput().
| ada_url_search_params ada_parse_search_params | ( | const char * | input, |
| size_t | length ) |
Definition at line 473 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
|
noexcept |
Definition at line 75 of file ada_c.cpp.
References ada::parse().
Referenced by LLVMFuzzerTestOneInput().
| void ada_search_params_append | ( | ada_url_search_params | result, |
| const char * | key, | ||
| size_t | key_length, | ||
| const char * | value, | ||
| size_t | value_length ) |
Definition at line 523 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| bool ada_search_params_entries_iter_has_next | ( | ada_url_search_params_entries_iter | result | ) |
Definition at line 756 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| ada_string_pair ada_search_params_entries_iter_next | ( | ada_url_search_params_entries_iter | result | ) |
Definition at line 743 of file ada_c.cpp.
References ada_string_create().
Referenced by LLVMFuzzerTestOneInput().
| ada_string ada_search_params_get | ( | ada_url_search_params | result, |
| const char * | key, | ||
| size_t | key_length ) |
Definition at line 587 of file ada_c.cpp.
References ada_string_create().
Referenced by LLVMFuzzerTestOneInput().
| ada_strings ada_search_params_get_all | ( | ada_url_search_params | result, |
| const char * | key, | ||
| size_t | key_length ) |
Definition at line 601 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| ada_url_search_params_entries_iter ada_search_params_get_entries | ( | ada_url_search_params | result | ) |
Definition at line 650 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| ada_url_search_params_keys_iter ada_search_params_get_keys | ( | ada_url_search_params | result | ) |
Definition at line 630 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| ada_url_search_params_values_iter ada_search_params_get_values | ( | ada_url_search_params | result | ) |
Definition at line 640 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| bool ada_search_params_has | ( | ada_url_search_params | result, |
| const char * | key, | ||
| size_t | key_length ) |
Definition at line 565 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| 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 ) |
Definition at line 575 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| bool ada_search_params_keys_iter_has_next | ( | ada_url_search_params_keys_iter | result | ) |
Definition at line 700 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| ada_string ada_search_params_keys_iter_next | ( | ada_url_search_params_keys_iter | result | ) |
Definition at line 687 of file ada_c.cpp.
References ada_string_create().
Referenced by LLVMFuzzerTestOneInput().
| void ada_search_params_remove | ( | ada_url_search_params | result, |
| const char * | key, | ||
| size_t | key_length ) |
Definition at line 545 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| 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 ) |
Definition at line 554 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| void ada_search_params_reset | ( | ada_url_search_params | result, |
| const char * | input, | ||
| size_t | length ) |
Definition at line 514 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| void ada_search_params_set | ( | ada_url_search_params | result, |
| const char * | key, | ||
| size_t | key_length, | ||
| const char * | value, | ||
| size_t | value_length ) |
Definition at line 534 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| size_t ada_search_params_size | ( | ada_url_search_params | result | ) |
Definition at line 497 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| void ada_search_params_sort | ( | ada_url_search_params | result | ) |
Definition at line 506 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| ada_owned_string ada_search_params_to_string | ( | ada_url_search_params | result | ) |
Definition at line 484 of file ada_c.cpp.
References ada_owned_string::data, and ada_owned_string::length.
Referenced by LLVMFuzzerTestOneInput().
| bool ada_search_params_values_iter_has_next | ( | ada_url_search_params_values_iter | result | ) |
Definition at line 728 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().
| ada_string ada_search_params_values_iter_next | ( | ada_url_search_params_values_iter | result | ) |
Definition at line 715 of file ada_c.cpp.
References ada_string_create().
Referenced by LLVMFuzzerTestOneInput().
|
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 331 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
noexcept |
Definition at line 249 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
noexcept |
Definition at line 257 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
noexcept |
Definition at line 241 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
noexcept |
Definition at line 765 of file ada_c.cpp.
References ada::set_max_input_length().
|
noexcept |
Definition at line 284 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
noexcept |
Definition at line 301 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
noexcept |
Definition at line 293 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
noexcept |
Definition at line 266 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
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 317 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
|
noexcept |
Definition at line 275 of file ada_c.cpp.
References get_instance().
Referenced by exercise_valid_url().
| ada_string ada_strings_get | ( | ada_strings | result, |
| size_t | index ) |
Definition at line 673 of file ada_c.cpp.
References ada_string_create().
Referenced by LLVMFuzzerTestOneInput().
| size_t ada_strings_size | ( | ada_strings | result | ) |
Definition at line 665 of file ada_c.cpp.
Referenced by LLVMFuzzerTestOneInput().