Variable _detail::char_map
Defined in File encode_dns_char_string.h
Variable Documentation
-
static constexpr std::array<CharEncoding, 256> _detail::char_map =
[]() {std::array<CharEncoding, 256> map{};for (int i = 0; i < 256; ++i) {if (i >= 32 && i <= 126 && i != '"' && i != '\\') {map[i] = {{static_cast<char>(i)}, 1};} else {auto decimal = to_decimal(i);map[i] = {{'\\', decimal[0], decimal[1], decimal[2]}, 4};}}map['"'] = {{'\\', '"'}, 2};map['\\'] = {{'\\', '\\'}, 2};return map;}()