CUBRID Engine
latest
|
Go to the source code of this file.
Classes | |
struct | xml_element_def |
struct | xml_element |
struct | xml_parser_data |
Macros | |
#define | XML_STATIC |
#define | XML_CUB_NO_ERROR 0 |
#define | XML_CUB_ERR_BASE 1 |
#define | XML_CUB_SCHEMA_BROKEN (XML_CUB_ERR_BASE) |
#define | XML_CUB_OUT_OF_MEMORY (XML_CUB_ERR_BASE + 1) |
#define | XML_CUB_ERR_HEADER_ENCODING (XML_CUB_ERR_BASE + 2) |
#define | XML_CUB_ERR_FILE_READ (XML_CUB_ERR_BASE + 3) |
#define | XML_CUB_ERR_PARSER (XML_CUB_ERR_BASE + 4) |
#define | XML_CUB_ERR_FILE_MISSING (XML_CUB_ERR_BASE + 5) |
#define | XML_CUB_ERR_INCLUDE_LOOP (XML_CUB_ERR_BASE + 6) |
#define | XML_CUB_ERR_PARSER_INIT_FAIL (XML_CUB_ERR_BASE + 7) |
#define | MAX_ELEMENT_NAME 30 |
#define | MAX_ENCODE_LEN 10 |
#define | START_FUNC(el) (el->def->start_func) |
#define | END_FUNC(el) (el->def->end_func) |
#define | DATA_FUNC(el) (el->def->data_func) |
#define | XML_USER_DATA(xml) (xml->ud) |
Typedefs | |
typedef int(* | ELEM_START_FUNC) (void *, const char **) |
typedef int(* | ELEM_END_FUNC) (void *, const char *) |
typedef int(* | ELEM_DATA_FUNC) (void *, const char *, int) |
typedef struct xml_element_def | XML_ELEMENT_DEF |
typedef struct xml_element | XML_ELEMENT |
typedef struct xml_parser_data | XML_PARSER_DATA |
Functions | |
XML_Parser | xml_init_parser (void *data, const char *xml_file, const char *encoding, XML_ELEMENT_DEF **element_array, const int count) |
void | xml_destroy_parser (void *data) |
void | xml_destroy_parser_data (void *data) |
void | xml_parser_exec (XML_PARSER_DATA *pd) |
int | xml_check_att_value (const char **attrs, const char *att_name, const char *att_value) |
int | xml_get_att_value (const char **attrs, const char *att_name, char **p_att_value) |
XML_PARSER_DATA * | xml_create_subparser (XML_PARSER_DATA *data, char *new_file) |
#define DATA_FUNC | ( | el | ) | (el->def->data_func) |
Definition at line 107 of file xml_parser.h.
Referenced by xml_data_handler(), and xml_elem_start().
#define END_FUNC | ( | el | ) | (el->def->end_func) |
Definition at line 106 of file xml_parser.h.
Referenced by xml_elem_end().
#define MAX_ELEMENT_NAME 30 |
Definition at line 48 of file xml_parser.h.
Referenced by add_xml_element().
#define MAX_ENCODE_LEN 10 |
Definition at line 50 of file xml_parser.h.
Referenced by xml_init_parser_common().
#define START_FUNC | ( | el | ) | (el->def->start_func) |
Definition at line 105 of file xml_parser.h.
Referenced by xml_elem_start().
#define XML_CUB_ERR_BASE 1 |
Definition at line 37 of file xml_parser.h.
#define XML_CUB_ERR_FILE_MISSING (XML_CUB_ERR_BASE + 5) |
Definition at line 43 of file xml_parser.h.
Referenced by start_include_collation(), and xml_parser_exec().
#define XML_CUB_ERR_FILE_READ (XML_CUB_ERR_BASE + 3) |
Definition at line 41 of file xml_parser.h.
Referenced by xml_parse().
#define XML_CUB_ERR_HEADER_ENCODING (XML_CUB_ERR_BASE + 2) |
Definition at line 40 of file xml_parser.h.
Referenced by xml_header_validation_utf8().
#define XML_CUB_ERR_INCLUDE_LOOP (XML_CUB_ERR_BASE + 6) |
Definition at line 44 of file xml_parser.h.
Referenced by start_include_collation(), and xml_create_subparser().
#define XML_CUB_ERR_PARSER (XML_CUB_ERR_BASE + 4) |
Definition at line 42 of file xml_parser.h.
Referenced by common_collation_end_rule(), end_collation_logical_pos(), end_collation_rule(), end_collation_x_context(), end_collation_x_rule(), end_transform_buffer(), handle_data(), start_collation_x(), xml_data_handler(), xml_elem_end(), xml_elem_start(), and xml_parse().
#define XML_CUB_ERR_PARSER_INIT_FAIL (XML_CUB_ERR_BASE + 7) |
Definition at line 45 of file xml_parser.h.
Referenced by start_include_collation(), xml_create_subparser(), and xml_init_parser_common().
#define XML_CUB_NO_ERROR 0 |
Definition at line 36 of file xml_parser.h.
Referenced by add_xml_element(), locale_compile_locale(), start_include_collation(), xml_create_subparser(), xml_data_handler(), xml_elem_end(), xml_elem_start(), xml_init_parser(), xml_init_parser_common(), xml_init_schema_tree(), xml_parse(), and xml_parser_exec().
#define XML_CUB_OUT_OF_MEMORY (XML_CUB_ERR_BASE + 1) |
Definition at line 39 of file xml_parser.h.
Referenced by add_xml_element(), common_collation_start_rule(), end_collation_x_context(), end_collation_x_extend(), end_collation_x_rule(), end_transform_buffer(), handle_data_collation_rule(), start_collation_cubrid_rule(), start_collation_rule(), start_collation_x(), start_include_collation(), start_lower_case_rule(), start_one_collation(), start_upper_case_rule(), xml_create_subparser(), xml_init_parser(), and xml_init_parser_common().
#define XML_CUB_SCHEMA_BROKEN (XML_CUB_ERR_BASE) |
Definition at line 38 of file xml_parser.h.
Referenced by add_xml_element().
#define XML_STATIC |
Definition at line 33 of file xml_parser.h.
#define XML_USER_DATA | ( | xml | ) | (xml->ud) |
Definition at line 109 of file xml_parser.h.
Referenced by clear_data_buffer(), end_case_rule(), end_collation_cubrid_rule_set(), end_collation_cubrid_rule_set_cp_ch(), end_collation_cubrid_rule_set_ech_ecp(), end_collation_cubrid_rule_set_w_wr(), end_collation_logical_pos(), end_collation_reset(), end_collation_rule(), end_collation_x(), end_collation_x_context(), end_collation_x_extend(), end_collation_x_rule(), end_dateFormatCUBRID(), end_datetimeFormatCUBRID(), end_datetimetzFormatCUBRID(), end_day(), end_dayPeriod(), end_month(), end_month_day_Width(), end_number_symbol(), end_one_collation(), end_timeFormatCUBRID(), end_timestampFormatCUBRID(), end_timestamptzFormatCUBRID(), end_timetzFormatCUBRID(), end_transform_buffer(), handle_data(), handle_data_collation_rule(), start_calendar_name_context(), start_collation_cubrid_rule(), start_collation_cubrid_rule_set_wr(), start_collation_logical_pos(), start_collation_reset(), start_collation_rule(), start_collation_settings(), start_collation_x(), start_collations(), start_consoleconversion(), start_currency(), start_day(), start_dayPeriod(), start_include_collation(), start_lower_case_rule(), start_month(), start_month_day_Width(), start_numbers_symbols(), start_one_alphabet(), start_one_collation(), start_unicode_file(), start_upper_case_rule(), tzc_summary(), xml_init_parser(), and xml_init_parser_common().
typedef int(* ELEM_DATA_FUNC) (void *, const char *, int) |
Definition at line 81 of file xml_parser.h.
typedef int(* ELEM_END_FUNC) (void *, const char *) |
Definition at line 70 of file xml_parser.h.
typedef int(* ELEM_START_FUNC) (void *, const char **) |
Definition at line 60 of file xml_parser.h.
typedef struct xml_element XML_ELEMENT |
Definition at line 93 of file xml_parser.h.
typedef struct xml_element_def XML_ELEMENT_DEF |
Definition at line 83 of file xml_parser.h.
typedef struct xml_parser_data XML_PARSER_DATA |
Definition at line 111 of file xml_parser.h.
Definition at line 1152 of file xml_parser.c.
Referenced by start_calendar(), start_calendar_name_context(), start_dayPeriodWidth(), start_month_day_Width(), and start_numbers_symbols().
XML_PARSER_DATA* xml_create_subparser | ( | XML_PARSER_DATA * | data, |
char * | new_file | ||
) |
Definition at line 1002 of file xml_parser.c.
References assert, xml_parser_data::ce, xml_parser_data::depth, xml_parser_data::encoding, error(), xml_element::match, xml_parser_data::next, NULL, p, xml_parser_data::prev, xml_parser_data::sc, xml_parser_data::ud, xml_check_include_loop(), xml_copy_schema_tree(), XML_CUB_ERR_INCLUDE_LOOP, XML_CUB_ERR_PARSER_INIT_FAIL, XML_CUB_NO_ERROR, XML_CUB_OUT_OF_MEMORY, xml_destroy_parser_data(), xml_destroy_schema_tree(), xml_parser_data::xml_error, and xml_init_parser_common().
Referenced by start_include_collation().
void xml_destroy_parser | ( | void * | data | ) |
Definition at line 977 of file xml_parser.c.
References xml_parser_data::next, NULL, and xml_destroy_parser_data().
Referenced by locale_compile_locale(), and tzc_summary().
void xml_destroy_parser_data | ( | void * | data | ) |
Definition at line 1067 of file xml_parser.c.
References xml_parser_data::buf, NULL, xml_parser_data::sc, xml_destroy_schema_tree(), and xml_parser_data::xml_parser.
Referenced by start_include_collation(), xml_create_subparser(), and xml_destroy_parser().
Definition at line 1180 of file xml_parser.c.
Referenced by start_collation_cubrid_rule_set_wr(), start_collation_reset(), start_collation_settings(), start_collations(), start_consoleconversion(), start_currency(), start_day(), start_dayPeriod(), start_include_collation(), start_month(), start_one_alphabet(), start_one_collation(), start_unicode_file(), and tzc_summary().
XML_Parser xml_init_parser | ( | void * | data, |
const char * | xml_file, | ||
const char * | encoding, | ||
XML_ELEMENT_DEF ** | element_array, | ||
const int | count | ||
) |
Definition at line 939 of file xml_parser.c.
References assert, xml_parser_data::ce, xml_parser_data::depth, xml_element::match, NULL, p, xml_parser_data::sc, XML_CUB_NO_ERROR, XML_CUB_OUT_OF_MEMORY, xml_parser_data::xml_error, xml_init_parser_common(), xml_init_schema_tree(), and XML_USER_DATA.
Referenced by locale_compile_locale(), and tzc_summary().
void xml_parser_exec | ( | XML_PARSER_DATA * | pd | ) |
Definition at line 1240 of file xml_parser.c.
References xml_parser_data::filepath, fopen_ex(), NULL, XML_CUB_ERR_FILE_MISSING, XML_CUB_NO_ERROR, xml_parser_data::xml_error, and xml_parse().
Referenced by locale_compile_locale(), start_include_collation(), and tzc_summary().