1#ifndef SOURCEMETA_CORE_PUNYCODE_H_
2#define SOURCEMETA_CORE_PUNYCODE_H_
4#ifndef SOURCEMETA_CORE_PUNYCODE_EXPORT
5#include <sourcemeta/core/punycode_export.h>
9#include <sourcemeta/core/punycode_error.h>
29namespace sourcemeta::core {
39 std::numeric_limits<std::uint32_t>::max()};
46 std::numeric_limits<std::uint32_t>::max()};
68SOURCEMETA_CORE_PUNYCODE_EXPORT
70 std::size_t maximum_code_points =
88SOURCEMETA_CORE_PUNYCODE_EXPORT
90 std::istream &input, std::ostream &output,
105SOURCEMETA_CORE_PUNYCODE_EXPORT
107 std::size_t maximum_code_points =
131SOURCEMETA_CORE_PUNYCODE_EXPORT
133 std::size_t maximum_encoded_bytes =
151SOURCEMETA_CORE_PUNYCODE_EXPORT
153 std::istream &input, std::ostream &output,
168SOURCEMETA_CORE_PUNYCODE_EXPORT
170 std::size_t maximum_encoded_bytes =
SOURCEMETA_CORE_PUNYCODE_EXPORT auto utf32_to_punycode(std::u32string_view input, std::size_t maximum_code_points=PUNYCODE_MAXIMUM_CODE_POINTS) -> std::string
SOURCEMETA_CORE_PUNYCODE_EXPORT auto punycode_to_utf8(std::istream &input, std::ostream &output, std::size_t maximum_encoded_bytes=PUNYCODE_MAXIMUM_ENCODED_BYTES) -> void
constexpr std::size_t PUNYCODE_MAXIMUM_ENCODED_BYTES
Definition punycode.h:45
constexpr std::size_t PUNYCODE_MAXIMUM_CODE_POINTS
Definition punycode.h:38
SOURCEMETA_CORE_PUNYCODE_EXPORT auto punycode_to_utf32(const std::string_view input, std::size_t maximum_encoded_bytes=PUNYCODE_MAXIMUM_ENCODED_BYTES) -> std::u32string
SOURCEMETA_CORE_PUNYCODE_EXPORT auto utf8_to_punycode(std::istream &input, std::ostream &output, std::size_t maximum_code_points=PUNYCODE_MAXIMUM_CODE_POINTS) -> void