Ada 4.1.1
Fast spec-compliant URL parser
Loading...
Searching...
No Matches
table_store.hpp File Reference
#include "raw_inflate.hpp"
#include "table_blob.inc"
#include <atomic>
#include <bit>
#include <cstdint>
#include <cstddef>
#include <new>

Go to the source code of this file.

Namespaces

namespace  ada
namespace  ada::idna
namespace  ada::idna::detail

Macros

#define ADA_IDNA_SECTION_IN_BOUNDS(off, count, width)

Functions

template<typename T>
void ada::idna::detail::bswap_inplace (T *data, size_t count) noexcept
void ada::idna::detail::convert_table_blob_to_host_endian (uint8_t *buffer) noexcept
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_idna_stage1, table_blob::count_idna_stage1, 2)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_idna_stage2, table_blob::count_idna_stage2, 2)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_idna_bool_blocks, table_blob::count_idna_bool_blocks, 8)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_idna_utf8_mappings, table_blob::count_idna_utf8_mappings, 1)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_decomposition_index, table_blob::count_decomposition_index, 1)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_decomposition_block, table_blob::count_decomposition_block, 2)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_decomposition_data, table_blob::count_decomposition_data, 4)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_ccc_index, table_blob::count_ccc_index, 1)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_ccc_block, table_blob::count_ccc_block, 1)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_composition_index, table_blob::count_composition_index, 1)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_composition_block, table_blob::count_composition_block, 2)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_composition_data, table_blob::count_composition_data, 4)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_id_continue_flat, table_blob::count_id_continue_flat, 4)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_id_start_flat, table_blob::count_id_start_flat, 4)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_dir_start, table_blob::count_dir_start, 4)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_dir_final, table_blob::count_dir_final, 4)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_dir_value, table_blob::count_dir_value, 1)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_combining_flat, table_blob::count_combining_flat, 4)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_joining_start, table_blob::count_joining_start, 4)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_joining_final, table_blob::count_joining_final, 4)
 ada::idna::ADA_IDNA_SECTION_IN_BOUNDS (table_blob::off_joining_value, table_blob::count_joining_value, 1)
uint32_t ada::idna::crc32_ieee (const uint8_t *data, size_t len) noexcept
bool ada::idna::tables_are_ready () noexcept
bool ada::idna::ensure_tables () noexcept
const uint16_t * ada::idna::decomposition_block_row (uint8_t bi) noexcept
const uint8_t * ada::idna::ccc_block_row (uint8_t bi) noexcept
const uint16_t * ada::idna::composition_block_row (uint8_t bi) noexcept

Macro Definition Documentation

◆ ADA_IDNA_SECTION_IN_BOUNDS

#define ADA_IDNA_SECTION_IN_BOUNDS ( off,
count,
width )
Value:
static_assert((off) + (count) * (width) <= table_blob::uncompressed_size, \
#off " overflows uncompressed buffer")

Definition at line 156 of file table_store.hpp.