|
Ada 3.4.4
Fast spec-compliant URL parser
|
Classes | |
| struct | directions |
Enumerations | |
| enum | direction : uint8_t { NONE , BN , CS , ES , ON , EN , L , R , NSM , AL , AN , ET , WS , RLO , LRO , PDF , RLE , RLI , FSI , PDI , LRI , B , S , LRE } |
Unicode Standard Annex #15
UNICODE NORMALIZATION FORMS https://www.unicode.org/reports/tr15/
See https://github.com/uni-algo/uni-algo/blob/c612968c5ed3ace39bde4c894c24286c5f2c7fe2/include/uni_algo/impl/data/data_norm.h for reference.
| Enumerator | |
|---|---|
| NONE | |
| BN | |
| CS | |
| ES | |
| ON | |
| EN | |
| L | |
| R | |
| NSM | |
| AL | |
| AN | |
| ET | |
| WS | |
| RLO | |
| LRO | |
| RLE | |
| RLI | |
| FSI | |
| PDI | |
| LRI | |
| B | |
| S | |
| LRE | |
Definition at line 8096 of file ada_idna.cpp.
Definition at line 7887 of file ada_idna.cpp.
References base, damp, ada::parse(), skew, tmax, and tmin.
Referenced by punycode_to_utf32(), utf32_to_punycode(), and verify_punycode().
Definition at line 2678 of file ada_idna.cpp.
References ada::parse().
Referenced by from_ascii_to_ascii(), and LLVMFuzzerTestOneInput().
Definition at line 7877 of file ada_idna.cpp.
Referenced by punycode_to_utf32(), and verify_punycode().
| void ada::idna::compose | ( | std::u32string & | input | ) |
Compose the domain_name string to Unicode Normalization Form C.
Definition at line 7771 of file ada_idna.cpp.
References composition_block, composition_data, composition_index, get_ccc(), hangul_lbase, hangul_lcount, hangul_sbase, hangul_scount, hangul_tbase, hangul_tcount, hangul_vbase, hangul_vcount, and ada::parse().
Referenced by normalize().
|
noexcept |
Definition at line 7664 of file ada_idna.cpp.
References decomposition_block, decomposition_index, hangul_sbase, hangul_scount, hangul_tcount, and ada::parse().
Referenced by decompose_nfc().
| bool ada::idna::contains_forbidden_domain_code_point | ( | std::string_view | ascii_string | ) |
Definition at line 9472 of file ada_idna.cpp.
References is_forbidden_domain_code_point(), and ada::parse().
Referenced by LLVMFuzzerTestOneInput().
Definition at line 7694 of file ada_idna.cpp.
References decomposition_block, decomposition_data, decomposition_index, hangul_lbase, hangul_ncount, hangul_sbase, hangul_scount, hangul_tbase, hangul_tcount, hangul_vbase, and ada::parse().
Referenced by decompose_nfc().
| void ada::idna::decompose_nfc | ( | std::u32string & | input | ) |
Decompose the domain_name string to Unicode Normalization Form C.
Definition at line 7758 of file ada_idna.cpp.
References compute_decomposition_length(), decompose(), ada::parse(), and sort_marks().
Referenced by normalize().
Definition at line 7883 of file ada_idna.cpp.
References ada::parse().
Referenced by utf32_to_punycode().
Definition at line 8858 of file ada_idna.cpp.
References dir_table, ada::idna::directions::direct, NONE, and ada::parse().
Referenced by find_last_not_of_nsm(), is_label_valid(), and is_rtl_label().
|
inlinestaticnoexcept |
Definition at line 8874 of file ada_idna.cpp.
References find_direction(), NSM, and ada::parse().
Referenced by is_label_valid().
Definition at line 2656 of file ada_idna.cpp.
References ada::parse(), and table.
Referenced by map().
|
static |
Definition at line 9477 of file ada_idna.cpp.
References ascii_map(), is_ascii(), is_label_valid(), map(), normalize(), ada::parse(), and punycode_to_utf32().
Referenced by to_ascii().
Definition at line 7736 of file ada_idna.cpp.
References canonical_combining_class_block, canonical_combining_class_index, and ada::parse().
Referenced by compose(), and sort_marks().
Definition at line 9444 of file ada_idna.cpp.
References ada::parse().
Definition at line 9435 of file ada_idna.cpp.
References ada::parse().
Referenced by from_ascii_to_ascii(), LLVMFuzzerTestOneInput(), to_ascii(), and to_unicode().
Definition at line 10288 of file ada_idna.cpp.
References ada::parse().
Referenced by valid_name_code_point().
Definition at line 10292 of file ada_idna.cpp.
References ada::parse().
Referenced by valid_name_code_point().
Definition at line 9468 of file ada_idna.cpp.
References is_forbidden_domain_code_point_table, and ada::parse().
Referenced by contains_forbidden_domain_code_point().
| bool ada::idna::is_label_valid | ( | std::u32string_view | label | ) |
Definition at line 8895 of file ada_idna.cpp.
References AL, AN, BN, CS, EN, ES, ET, find_direction(), find_last_not_of_nsm(), is_rtl_label(), L, NSM, ON, ada::parse(), and R.
Referenced by from_ascii_to_ascii(), LLVMFuzzerTestOneInput(), and to_ascii().
Definition at line 8884 of file ada_idna.cpp.
References AL, AN, find_direction(), ada::parse(), and R.
Referenced by is_label_valid().
| std::u32string ada::idna::map | ( | std::u32string_view | input | ) |
Definition at line 2704 of file ada_idna.cpp.
References find_range_index(), mappings, ada::parse(), and table.
Referenced by from_ascii_to_ascii(), LLVMFuzzerTestOneInput(), and to_ascii().
| void ada::idna::normalize | ( | std::u32string & | input | ) |
Normalize the domain_name string to Unicode Normalization Form C.
Normalize the domain_name string to Unicode Normalization Form C.
Definition at line 7852 of file ada_idna.cpp.
References compose(), decompose_nfc(), and ada::parse().
Referenced by from_ascii_to_ascii(), LLVMFuzzerTestOneInput(), and to_ascii().
| bool ada::idna::punycode_to_utf32 | ( | std::string_view | input, |
| std::u32string & | out | ||
| ) |
Definition at line 7902 of file ada_idna.cpp.
References adapt(), base, char_to_digit_value(), initial_bias, initial_n, ada::parse(), and tmax.
Referenced by from_ascii_to_ascii(), LLVMFuzzerTestOneInput(), to_ascii(), and to_unicode().
| void ada::idna::sort_marks | ( | std::u32string & | input | ) |
Definition at line 7742 of file ada_idna.cpp.
References get_ccc(), and ada::parse().
Referenced by decompose_nfc().
| std::string ada::idna::to_ascii | ( | std::string_view | ut8_string | ) |
Definition at line 9539 of file ada_idna.cpp.
References from_ascii_to_ascii(), is_ascii(), is_label_valid(), map(), normalize(), ada::parse(), punycode_to_utf32(), utf32_length_from_utf8(), utf32_to_punycode(), and utf8_to_utf32().
Referenced by ada_idna_to_ascii(), and LLVMFuzzerTestOneInput().
| std::string ada::idna::to_unicode | ( | std::string_view | input | ) |
Definition at line 9655 of file ada_idna.cpp.
References is_ascii(), ada::parse(), punycode_to_utf32(), utf32_to_utf8(), utf8_length_from_utf32(), and verify_punycode().
Referenced by ada_idna_to_unicode(), and LLVMFuzzerTestOneInput().
Definition at line 122 of file ada_idna.cpp.
References ada::parse().
Referenced by LLVMFuzzerTestOneInput(), and to_ascii().
| bool ada::idna::utf32_to_punycode | ( | std::u32string_view | input, |
| std::string & | out | ||
| ) |
Definition at line 8027 of file ada_idna.cpp.
References adapt(), base, digit_to_char(), initial_bias, initial_n, ada::parse(), and tmax.
Referenced by LLVMFuzzerTestOneInput(), and to_ascii().
Definition at line 131 of file ada_idna.cpp.
References ada::parse().
Referenced by LLVMFuzzerTestOneInput(), and to_unicode().
Definition at line 109 of file ada_idna.cpp.
References ada::parse().
Referenced by LLVMFuzzerTestOneInput(), and to_unicode().
Definition at line 12 of file ada_idna.cpp.
References ada::parse().
Referenced by LLVMFuzzerTestOneInput(), and to_ascii().
Definition at line 10297 of file ada_idna.cpp.
References id_continue, id_start, is_ascii_letter(), is_ascii_letter_or_digit(), and ada::parse().
| bool ada::idna::verify_punycode | ( | std::string_view | input | ) |
Definition at line 7966 of file ada_idna.cpp.
References adapt(), base, char_to_digit_value(), initial_bias, initial_n, ada::parse(), and tmax.
Referenced by LLVMFuzzerTestOneInput(), and to_unicode().
Definition at line 7869 of file ada_idna.cpp.
Referenced by adapt(), punycode_to_utf32(), utf32_to_punycode(), and verify_punycode().
Definition at line 5890 of file ada_idna.cpp.
Referenced by get_ccc().
Definition at line 5659 of file ada_idna.cpp.
Referenced by get_ccc().
Definition at line 6965 of file ada_idna.cpp.
Referenced by compose().
Definition at line 7471 of file ada_idna.cpp.
Referenced by compose().
Definition at line 6766 of file ada_idna.cpp.
Referenced by compose().
Definition at line 7873 of file ada_idna.cpp.
Referenced by adapt().
Definition at line 3001 of file ada_idna.cpp.
Referenced by compute_decomposition_length(), and decompose().
Definition at line 4645 of file ada_idna.cpp.
Referenced by decompose().
Definition at line 2769 of file ada_idna.cpp.
Referenced by compute_decomposition_length(), and decompose().
|
static |
Definition at line 8129 of file ada_idna.cpp.
Referenced by find_direction().
Definition at line 7656 of file ada_idna.cpp.
Referenced by compose(), and decompose().
Definition at line 7657 of file ada_idna.cpp.
Referenced by compose().
|
constexpr |
Definition at line 7660 of file ada_idna.cpp.
Referenced by decompose().
Definition at line 7653 of file ada_idna.cpp.
Referenced by compose(), compute_decomposition_length(), and decompose().
Definition at line 7661 of file ada_idna.cpp.
Referenced by compose(), compute_decomposition_length(), and decompose().
Definition at line 7654 of file ada_idna.cpp.
Referenced by compose(), and decompose().
Definition at line 7659 of file ada_idna.cpp.
Referenced by compose(), compute_decomposition_length(), and decompose().
Definition at line 7655 of file ada_idna.cpp.
Referenced by compose(), and decompose().
Definition at line 7658 of file ada_idna.cpp.
Referenced by compose().
Definition at line 9726 of file ada_idna.cpp.
Referenced by valid_name_code_point().
Definition at line 10084 of file ada_idna.cpp.
Referenced by valid_name_code_point().
Definition at line 7874 of file ada_idna.cpp.
Referenced by punycode_to_utf32(), utf32_to_punycode(), and verify_punycode().
Definition at line 7875 of file ada_idna.cpp.
Referenced by punycode_to_utf32(), utf32_to_punycode(), and verify_punycode().
Definition at line 9453 of file ada_idna.cpp.
Referenced by is_forbidden_domain_code_point().
Definition at line 203 of file ada_idna.cpp.
Referenced by map().
Definition at line 7872 of file ada_idna.cpp.
Referenced by adapt().
Definition at line 593 of file ada_idna.cpp.
Referenced by find_range_index(), and map().
Definition at line 7871 of file ada_idna.cpp.
Referenced by adapt(), punycode_to_utf32(), utf32_to_punycode(), and verify_punycode().
Definition at line 7870 of file ada_idna.cpp.
Referenced by adapt().