65bool to_ascii(std::optional<std::string>& out, std::string_view plain,
66 size_t first_percent);
76 std::string_view user_input)
noexcept;
91 const char* input,
size_t length)
noexcept;
101contains_forbidden_domain_code_point_or_upper(
const char* input,
102 size_t length)
noexcept;
151 std::string_view input)
noexcept;
159 std::string_view input)
noexcept;
183std::string percent_decode(std::string_view input,
size_t first_percent);
190std::string percent_encode(std::string_view input,
191 const uint8_t character_set[]);
198std::string percent_encode(std::string_view input,
199 const uint8_t character_set[],
size_t index);
208template <
bool append>
209bool percent_encode(std::string_view input,
const uint8_t character_set[],
217 const uint8_t character_set[]);
223constexpr bool to_lower_ascii(
char* input,
size_t length)
noexcept;
Common definitions for cross-platform compiler support.
#define ada_really_inline
std::string to_ascii(std::string_view ut8_string)
bool contains_forbidden_domain_code_point(std::string_view ascii_string)
Includes the declarations for unicode operations.
ada_really_inline size_t percent_encode_index(const std::string_view input, const uint8_t character_set[])