|
static constexpr std::uint32_t | SET_APPLY_TO = 0x0080 |
|
static constexpr std::uint32_t | SET_STATUS = 0x0002 |
|
static constexpr std::uint32_t | SET_TLD = 0x0001 |
|
Definition at line 147 of file tld_compiler.h.
◆ map_t
typedef std::map<std::string, pointer_t> tld_definition::map_t |
◆ pointer_t
◆ segments_t
typedef std::vector<string_id_t> tld_definition::segments_t |
◆ tld_definition()
◆ add_segment()
bool tld_definition::add_segment |
( |
std::string const & |
segment, |
|
|
std::string & |
errmsg |
|
) |
| |
◆ add_tag()
void tld_definition::add_tag |
( |
std::string const & |
tag_name, |
|
|
std::string const & |
value, |
|
|
std::string & |
errmsg |
|
) |
| |
◆ get_apply_to()
std::string tld_definition::get_apply_to |
( |
| ) |
const |
◆ get_end_offset()
uint16_t tld_definition::get_end_offset |
( |
| ) |
const |
◆ get_index()
int tld_definition::get_index |
( |
| ) |
const |
◆ get_inverted_name()
std::string tld_definition::get_inverted_name |
( |
| ) |
const |
This function re-assembles the domain segments in a full name in reverse order. This is used to properly sort sub-domain names (still part of the TLD) by their parent domain name.
We use '!' as the separate instead of the '.' because some domain names have a dash in their as the order still needs to be correct and '.' > '-' when we need the opposite, but '!' < '-'.
- Returns
- The concatenated domain name in reverse order with '!' as separators.
Definition at line 915 of file tld_compiler.cpp.
◆ get_name()
std::string tld_definition::get_name |
( |
| ) |
const |
This function rebuilds the full domain name. The idea is to have a way to write error messages about various errors including the domain name.
- Returns
- The name of the domain with each segment separated by periods.
Definition at line 884 of file tld_compiler.cpp.
◆ get_parent_inverted_name()
std::string tld_definition::get_parent_inverted_name |
( |
| ) |
const |
◆ get_parent_name()
std::string tld_definition::get_parent_name |
( |
| ) |
const |
◆ get_segments()
tld_definition::segments_t const & tld_definition::get_segments |
( |
| ) |
const |
◆ get_start_offset()
uint16_t tld_definition::get_start_offset |
( |
| ) |
const |
◆ get_status()
◆ get_tags()
tags_t const & tld_definition::get_tags |
( |
| ) |
const |
◆ reset_set_flags()
void tld_definition::reset_set_flags |
( |
| ) |
|
◆ set_apply_to()
bool tld_definition::set_apply_to |
( |
std::string const & |
apply_to | ) |
|
◆ set_end_offset()
void tld_definition::set_end_offset |
( |
uint16_t |
end | ) |
|
◆ set_index()
void tld_definition::set_index |
( |
int |
idx | ) |
|
◆ set_named_parameter()
void tld_definition::set_named_parameter |
( |
std::string const & |
name, |
|
|
std::string const & |
value, |
|
|
std::string & |
errmsg |
|
) |
| |
◆ set_start_offset()
void tld_definition::set_start_offset |
( |
uint16_t |
start | ) |
|
◆ set_status()
bool tld_definition::set_status |
( |
tld_status |
status | ) |
|
◆ f_apply_to
std::string tld_definition::f_apply_to = std::string() |
|
private |
◆ f_end_offset
uint16_t tld_definition::f_end_offset = USHRT_MAX |
|
private |
◆ f_index
int tld_definition::f_index = 0 |
|
private |
◆ f_set
int tld_definition::f_set = 0 |
|
private |
◆ f_start_offset
uint16_t tld_definition::f_start_offset = USHRT_MAX |
|
private |
◆ f_status
◆ f_strings
◆ f_tags
tags_t tld_definition::f_tags = tags_t() |
|
private |
◆ f_tld
segments_t tld_definition::f_tld = segments_t() |
|
private |
◆ SET_APPLY_TO
constexpr std::uint32_t tld_definition::SET_APPLY_TO = 0x0080 |
|
staticconstexpr |
◆ SET_STATUS
constexpr std::uint32_t tld_definition::SET_STATUS = 0x0002 |
|
staticconstexpr |
◆ SET_TLD
constexpr std::uint32_t tld_definition::SET_TLD = 0x0001 |
|
staticconstexpr |
The documentation for this class was generated from the following files: