7#ifndef ADA_IDNA_UNICODE_TRANSCODING_H
8#define ADA_IDNA_UNICODE_TRANSCODING_H
15size_t utf8_to_utf32(
const char* buf,
size_t len,
char32_t* utf32_output);
21size_t utf32_to_utf8(
const char32_t* buf,
size_t len,
char* utf8_output);
28#ifndef ADA_IDNA_MAPPING_H
29#define ADA_IDNA_MAPPING_H
37void ascii_map(
char* input,
size_t length);
39std::u32string
map(std::u32string_view input);
43bool map(std::u32string_view input, std::u32string& out);
50#ifndef ADA_IDNA_NORMALIZATION_H
51#define ADA_IDNA_NORMALIZATION_H
61[[nodiscard]]
bool is_already_nfc(std::u32string_view input)
noexcept;
66[[nodiscard]]
bool normalize(std::u32string& input);
72#ifndef ADA_IDNA_PUNYCODE_H
73#define ADA_IDNA_PUNYCODE_H
89#ifndef ADA_IDNA_VALIDITY_H
90#define ADA_IDNA_VALIDITY_H
107#ifndef ADA_IDNA_TO_ASCII_H
108#define ADA_IDNA_TO_ASCII_H
111#include <string_view>
114#ifndef ADA_IDNA_LIMITS_H
115#define ADA_IDNA_LIMITS_H
144std::string
to_ascii(std::string_view ut8_string);
148[[nodiscard]]
bool to_ascii(std::string_view ut8_string, std::string& out);
155bool constexpr is_ascii(std::u32string_view view);
156bool constexpr is_ascii(std::string_view view);
163#ifndef ADA_IDNA_TO_UNICODE_H
164#define ADA_IDNA_TO_UNICODE_H
167#include <string_view>
175std::string
to_unicode(std::string_view input);
180[[nodiscard]]
bool to_unicode(std::string_view input, std::string& out);
187#ifndef ADA_IDNA_IDENTIFIER_H
188#define ADA_IDNA_IDENTIFIER_H
191#include <string_view>
void ascii_map(char *input, size_t length)
bool punycode_to_utf32(std::string_view input, std::u32string &out)
size_t utf32_length_from_utf8(const char *buf, size_t len)
size_t utf32_to_utf8(const char32_t *buf, size_t len, char *utf8_output)
bool constexpr is_ascii(std::u32string_view view)
bool utf32_to_punycode(std::u32string_view input, std::string &out)
std::string to_ascii(std::string_view ut8_string)
std::string to_unicode(std::string_view input)
bool normalize(std::u32string &input)
bool valid_name_code_point(char32_t code_point, bool first)
size_t utf8_length_from_utf32(const char32_t *buf, size_t len)
bool is_already_nfc(std::u32string_view input) noexcept
bool is_label_valid(std::u32string_view label)
bool contains_forbidden_domain_code_point(std::string_view ascii_string)
std::u32string map(std::u32string_view input)
size_t utf8_to_utf32(const char *buf, size_t len, char32_t *utf32_output)
constexpr size_t max_domain_input_bytes
bool verify_punycode(std::string_view input)