Ada 4.1.1
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
url_ip-inl.h File Reference

Shared IPv4/IPv6 parsing helpers used by url and url_aggregator. More...

#include "ada/common_defs.h"
#include <array>
#include <cstddef>
#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  ada
namespace  ada::detail

Functions

constexpr std::array< uint8_t, 256 > ada::detail::make_hex_nibble_table () noexcept
bool ada::detail::parse_ipv4_number (const char *&p, const char *end, uint64_t &value, bool &is_pure_decimal) noexcept
int ada::detail::parse_hex_piece (const char *&pointer, const char *end, uint16_t &value) noexcept

Variables

constexpr auto ada::detail::hex_nibble = make_hex_nibble_table()

Detailed Description

Shared IPv4/IPv6 parsing helpers used by url and url_aggregator.

Not part of the public API. Defined inline so the single-TU amalgamation (ada.cpp) can include them from multiple translation-unit sources once.

Definition in file url_ip-inl.h.