|
typedef std::vector< std::uint8_t > | data_t |
|
typedef std::vector< std::string > | paths_t |
|
enum | token_t {
TOKEN_EOF
, TOKEN_STRING
, TOKEN_IDENTIFIER
, TOKEN_WORD
,
TOKEN_NUMBER
, TOKEN_EQUAL
, TOKEN_DOT
, TOKEN_WILD_CARD
,
TOKEN_EXCEPTION
, TOKEN_OPEN_SQUARE_BRACKET
, TOKEN_CLOSE_SQUARE_BRACKET
} |
|
typedef std::map< std::string, std::string > | values_t |
|
|
static constexpr char32_t const | CHAR_EOF = static_cast<char32_t>(-1) |
|
static constexpr char32_t const | CHAR_ERR = static_cast<char32_t>(-2) |
|
Definition at line 212 of file tld_compiler.h.
◆ data_t
typedef std::vector<std::uint8_t> tld_compiler::data_t |
|
private |
◆ paths_t
typedef std::vector<std::string> tld_compiler::paths_t |
|
private |
◆ values_t
typedef std::map<std::string, std::string> tld_compiler::values_t |
|
private |
◆ token_t
enum tld_compiler::token_t |
|
private |
◆ append_wc()
bool tld_compiler::append_wc |
( |
std::string & |
value, |
|
|
char32_t |
wc |
|
) |
| |
|
private |
◆ compile()
bool tld_compiler::compile |
( |
| ) |
|
◆ compress_tags()
void tld_compiler::compress_tags |
( |
| ) |
|
|
private |
◆ define_default_category()
void tld_compiler::define_default_category |
( |
| ) |
|
|
private |
◆ find_definition()
uint16_t tld_compiler::find_definition |
( |
std::string |
name | ) |
const |
|
private |
◆ find_files()
void tld_compiler::find_files |
( |
std::string const & |
path | ) |
|
|
private |
◆ find_max_level()
void tld_compiler::find_max_level |
( |
| ) |
|
|
private |
This function searches all the definitions checking for the longest number of segments (which is the number of periods in the TLD including the starting period, so in ".com", we have a level of 1).
Definition at line 2502 of file tld_compiler.cpp.
◆ get_backslash()
bool tld_compiler::get_backslash |
( |
char32_t & |
c | ) |
|
|
private |
◆ get_c_file()
std::string const & tld_compiler::get_c_file |
( |
| ) |
const |
◆ get_errmsg()
std::string const & tld_compiler::get_errmsg |
( |
| ) |
const |
◆ get_errno()
int tld_compiler::get_errno |
( |
| ) |
const |
◆ get_filename()
std::string const & tld_compiler::get_filename |
( |
| ) |
const |
◆ get_input_folder()
std::string const & tld_compiler::get_input_folder |
( |
| ) |
const |
◆ get_line()
int tld_compiler::get_line |
( |
| ) |
const |
◆ get_output()
std::string const & tld_compiler::get_output |
( |
| ) |
const |
◆ get_string_manager()
◆ getc()
char32_t tld_compiler::getc |
( |
| ) |
|
|
private |
◆ is_space()
bool tld_compiler::is_space |
( |
char32_t |
wc | ) |
const |
|
private |
◆ output_header()
void tld_compiler::output_header |
( |
std::ostream & |
out | ) |
|
|
private |
◆ output_tlds()
void tld_compiler::output_tlds |
( |
std::ostream & |
out | ) |
|
|
private |
◆ output_to_json()
void tld_compiler::output_to_json |
( |
std::ostream & |
out, |
|
|
bool |
verbose |
|
) |
| const |
◆ parse_line()
void tld_compiler::parse_line |
( |
| ) |
|
|
private |
◆ parse_tld()
void tld_compiler::parse_tld |
( |
| ) |
|
|
private |
◆ parse_variable()
void tld_compiler::parse_variable |
( |
| ) |
|
|
private |
◆ print_tokens()
void tld_compiler::print_tokens |
( |
| ) |
|
|
private |
◆ process_file()
void tld_compiler::process_file |
( |
std::string const & |
filename | ) |
|
|
private |
◆ process_input_files()
void tld_compiler::process_input_files |
( |
| ) |
|
|
private |
◆ read_line()
void tld_compiler::read_line |
( |
| ) |
|
|
private |
◆ save_to_c_file()
void tld_compiler::save_to_c_file |
( |
std::string const & |
buffer | ) |
|
|
private |
◆ save_to_file()
void tld_compiler::save_to_file |
( |
std::string const & |
buffer | ) |
|
|
private |
◆ set_c_file()
void tld_compiler::set_c_file |
( |
std::string const & |
filename | ) |
|
◆ set_input_folder()
void tld_compiler::set_input_folder |
( |
std::string const & |
path | ) |
|
◆ set_output()
void tld_compiler::set_output |
( |
std::string const & |
filename | ) |
|
◆ ungetc()
void tld_compiler::ungetc |
( |
char32_t |
c | ) |
|
|
private |
◆ CHAR_EOF
constexpr char32_t const tld_compiler::CHAR_EOF = static_cast<char32_t>(-1) |
|
staticconstexprprivate |
◆ CHAR_ERR
constexpr char32_t const tld_compiler::CHAR_ERR = static_cast<char32_t>(-2) |
|
staticconstexprprivate |
◆ f_c_file
std::string tld_compiler::f_c_file = std::string() |
|
private |
◆ f_created_on
time_t tld_compiler::f_created_on = time(nullptr) |
|
private |
◆ f_current_tld
std::string tld_compiler::f_current_tld = std::string() |
|
private |
◆ f_data
data_t tld_compiler::f_data = data_t() |
|
private |
◆ f_definitions
tld_definition::map_t tld_compiler::f_definitions = tld_definition::map_t() |
|
private |
◆ f_errmsg
std::string tld_compiler::f_errmsg = std::string() |
|
private |
◆ f_errno
int tld_compiler::f_errno = 0 |
|
private |
◆ f_filename
std::string tld_compiler::f_filename = std::string() |
|
private |
◆ f_global_tags
values_t tld_compiler::f_global_tags = values_t() |
|
private |
◆ f_global_variables
values_t tld_compiler::f_global_variables = values_t() |
|
private |
◆ f_input_files
paths_t tld_compiler::f_input_files = paths_t() |
|
private |
◆ f_input_folder
std::string tld_compiler::f_input_folder = "/usr/share/libtld/tlds" |
|
private |
◆ f_line
int tld_compiler::f_line = 1 |
|
private |
◆ f_output
std::string tld_compiler::f_output = "/var/lib/libtld/tlds.tld" |
|
private |
◆ f_pos
std::string::size_type tld_compiler::f_pos = 0 |
|
private |
◆ f_strings
◆ f_strings_count
string_id_t tld_compiler::f_strings_count = 0 |
|
private |
◆ f_tags
◆ f_tld_end_offset
uint16_t tld_compiler::f_tld_end_offset = USHRT_MAX |
|
private |
◆ f_tld_max_level
uint8_t tld_compiler::f_tld_max_level = 0 |
|
private |
◆ f_tld_start_offset
uint16_t tld_compiler::f_tld_start_offset = USHRT_MAX |
|
private |
◆ f_tokens
token::vector_t tld_compiler::f_tokens = token::vector_t() |
|
private |
◆ f_ungetc
char32_t tld_compiler::f_ungetc[1] = {} |
|
private |
◆ f_ungetc_pos
std::string::size_type tld_compiler::f_ungetc_pos = 0 |
|
private |
The documentation for this class was generated from the following files: