Ada 2.9.2
Fast spec-compliant URL parser
|
#include <algorithm>
#include <cstdint>
#include <cstring>
#include <array>
#include <string>
#include <string_view>
Go to the source code of this file.
Classes | |
struct | ada::idna::directions |
Namespaces | |
namespace | ada |
namespace | ada::idna |
Macros | |
#define | ADA_IDNA_TABLES_H |
#define | ADA_IDNA_NORMALIZATION_TABLES_H |
Enumerations | |
enum | ada::idna::direction : uint8_t { ada::idna::NONE , ada::idna::BN , ada::idna::CS , ada::idna::ES , ada::idna::ON , ada::idna::EN , ada::idna::L , ada::idna::R , ada::idna::NSM , ada::idna::AL , ada::idna::AN , ada::idna::ET , ada::idna::WS , ada::idna::RLO , ada::idna::LRO , ada::idna::PDF , ada::idna::RLE , ada::idna::RLI , ada::idna::FSI , ada::idna::PDI , ada::idna::LRI , ada::idna::B , ada::idna::S , ada::idna::LRE } |
Functions | |
size_t | ada::idna::utf8_to_utf32 (const char *buf, size_t len, char32_t *utf32_output) |
size_t | ada::idna::utf8_length_from_utf32 (const char32_t *buf, size_t len) |
size_t | ada::idna::utf32_length_from_utf8 (const char *buf, size_t len) |
size_t | ada::idna::utf32_to_utf8 (const char32_t *buf, size_t len, char *utf8_output) |
uint32_t | ada::idna::find_range_index (uint32_t key) |
bool | ada::idna::ascii_has_upper_case (char *input, size_t length) |
void | ada::idna::ascii_map (char *input, size_t length) |
std::u32string | ada::idna::map (std::u32string_view input) |
std::pair< bool, size_t > | ada::idna::compute_decomposition_length (const std::u32string_view input) noexcept |
void | ada::idna::decompose (std::u32string &input, size_t additional_elements) |
uint8_t | ada::idna::get_ccc (char32_t c) noexcept |
void | ada::idna::sort_marks (std::u32string &input) |
void | ada::idna::decompose_nfc (std::u32string &input) |
void | ada::idna::compose (std::u32string &input) |
void | ada::idna::normalize (std::u32string &input) |
static constexpr int32_t | ada::idna::char_to_digit_value (char value) |
static constexpr char | ada::idna::digit_to_char (int32_t digit) |
static constexpr int32_t | ada::idna::adapt (int32_t d, int32_t n, bool firsttime) |
bool | ada::idna::punycode_to_utf32 (std::string_view input, std::u32string &out) |
bool | ada::idna::verify_punycode (std::string_view input) |
bool | ada::idna::utf32_to_punycode (std::u32string_view input, std::string &out) |
static direction | ada::idna::find_direction (uint32_t code_point) noexcept |
static size_t | ada::idna::find_last_not_of_nsm (const std::u32string_view label) noexcept |
static bool | ada::idna::is_rtl_label (const std::u32string_view label) noexcept |
bool | ada::idna::is_label_valid (std::u32string_view label) |
bool constexpr | ada::idna::is_ascii (std::u32string_view view) |
bool constexpr | ada::idna::is_ascii (std::string_view view) |
bool | ada::idna::is_forbidden_domain_code_point (const char c) noexcept |
bool | ada::idna::contains_forbidden_domain_code_point (std::string_view ascii_string) |
static std::string | ada::idna::from_ascii_to_ascii (std::string_view ut8_string) |
std::string | ada::idna::to_ascii (std::string_view ut8_string) |
std::string | ada::idna::to_unicode (std::string_view input) |
#define ADA_IDNA_NORMALIZATION_TABLES_H |
Definition at line 2721 of file ada_idna.cpp.
#define ADA_IDNA_TABLES_H |
Definition at line 197 of file ada_idna.cpp.