CUBRID Engine
latest
|
Go to the source code of this file.
Classes | |
struct | locale_file |
struct | ldml_context |
struct | tailor_rule |
struct | cubrid_tailor_rule |
struct | uca_options |
struct | coll_data_ref |
struct | coll_data |
struct | coll_tailoring |
struct | alphabet_data |
struct | transform_rule |
struct | alphabet_tailoring |
struct | text_conversion |
struct | text_conversion_prm |
struct | unicode_normalization |
struct | locale_collation |
struct | locale_data |
Typedefs | |
typedef unsigned short | UCA_CP |
typedef unsigned short | UCA_W |
typedef struct locale_file | LOCALE_FILE |
typedef struct ldml_context | LDML_CONTEXT |
typedef struct tailor_rule | TAILOR_RULE |
typedef struct cubrid_tailor_rule | CUBRID_TAILOR_RULE |
typedef struct uca_options | UCA_OPTIONS |
typedef struct coll_data_ref | COLL_DATA_REF |
typedef struct coll_data | COLL_DATA |
typedef struct coll_tailoring | COLL_TAILORING |
typedef struct alphabet_data | ALPHABET_DATA |
typedef struct transform_rule | TRANSFORM_RULE |
typedef struct alphabet_tailoring | ALPHABET_TAILORING |
typedef struct text_conversion | TEXT_CONVERSION |
typedef struct text_conversion_prm | TEXT_CONVERSION_PRM |
typedef struct unicode_normalization | UNICODE_NORMALIZATION |
typedef struct locale_collation | LOCALE_COLLATION |
typedef struct locale_data | LOCALE_DATA |
Functions | |
void | locale_init_data (LOCALE_DATA *ld, const char *locale_name) |
void | locale_destroy_data (LOCALE_DATA *ld) |
void | locale_destroy_alphabet_data (const ALPHABET_DATA *a) |
void | locale_destroy_normalization_data (UNICODE_NORMALIZATION *norm) |
int | locale_get_cfg_locales (LOCALE_FILE **p_locale_files, int *p_num_locales, bool is_lang_init) |
int | locale_check_and_set_default_files (LOCALE_FILE *lf, bool is_lang_init) |
int | locale_prepare_C_file (void) |
int | locale_compile_locale (LOCALE_FILE *lf, LOCALE_DATA *ld, bool is_verbose) |
void | locale_mark_duplicate_collations (LOCALE_DATA **ld, int start_index, int end_index, bool is_verbose) |
int | locale_save_all_to_C_file (LOCALE_DATA **ld, int start_index, int end_index, LOCALE_FILE *lf) |
int | locale_dump (void *data, LOCALE_FILE *lf, int dl_settings, int start_value, int end_value) |
int | locale_dump_lib_collations (void *lib_handle, const LOCALE_FILE *lf, int dl_settings, int start_value, int end_value) |
void | locale_free_shared_data (void) |
#define CAL_AM_PM_COUNT 12 |
Definition at line 91 of file locale_support.h.
Referenced by end_dayPeriod(), lang_locale_data_load_from_lib(), locale_dump(), locale_make_calendar_parse_order(), locale_save_calendar_to_C_file(), and start_dayPeriod().
#define CAL_COMP_DATE_FORMAT_SIZE 48 |
Definition at line 553 of file locale_support.h.
#define CAL_COMP_DATE_TZ_FORMAT_SIZE 70 |
Definition at line 555 of file locale_support.h.
#define CAL_DAY_COUNT 7 |
Definition at line 90 of file locale_support.h.
Referenced by end_day(), lang_locale_data_load_from_lib(), locale_dump(), locale_make_calendar_parse_order(), locale_save_calendar_to_C_file(), and start_day().
#define CAL_MONTH_COUNT 12 |
Definition at line 89 of file locale_support.h.
Referenced by end_month(), lang_locale_data_load_from_lib(), locale_dump(), locale_make_calendar_parse_order(), locale_save_calendar_to_C_file(), and start_month().
#define CAL_SIMPLE_DATE_FORMAT_SIZE 30 |
Definition at line 552 of file locale_support.h.
#define CAL_SIMPLE_DATE_TZ_FORMAT_SIZE 52 |
Definition at line 554 of file locale_support.h.
#define COLL_NAME_SIZE 32 |
Definition at line 84 of file locale_support.h.
Referenced by do_set_names(), lang_load_get_coll_name_from_lib(), locale_alloc_collation_id(), locale_check_and_set_shared_data(), locale_compile_locale(), and start_one_collation().
#define CP_HAS_MAPPINGS | ( | val | ) | (((val) & MAPPING_INDEX_MASK) == MAPPING_INDEX_MASK) |
Definition at line 172 of file locale_support.h.
Referenced by dump_locale_normalization(), unicode_compose_string(), and unicode_process_normalization().
#define DUMPLOCALE_IS_ALPHABET (1 << 2) |
Definition at line 138 of file locale_support.h.
Referenced by dumplocale(), and locale_dump().
#define DUMPLOCALE_IS_ALPHABET_LOWER (1 << 3) |
Definition at line 139 of file locale_support.h.
Referenced by dump_locale_alphabet(), dumplocale(), and locale_dump().
#define DUMPLOCALE_IS_ALPHABET_UPPER (1 << 4) |
Definition at line 140 of file locale_support.h.
Referenced by dump_locale_alphabet(), dumplocale(), and locale_dump().
#define DUMPLOCALE_IS_CALENDAR 1 |
Definition at line 136 of file locale_support.h.
Referenced by dumplocale(), and locale_dump().
#define DUMPLOCALE_IS_COLLATION_CP_ORDER (1 << 8) |
Definition at line 144 of file locale_support.h.
Referenced by dump_locale_collation(), and dumplocale().
#define DUMPLOCALE_IS_COLLATION_WEIGHT_ORDER (1 << 9) |
Definition at line 145 of file locale_support.h.
Referenced by dump_locale_collation(), and dumplocale().
#define DUMPLOCALE_IS_IDENTIFIER_ALPHABET (1 << 5) |
Definition at line 141 of file locale_support.h.
Referenced by dumplocale(), and locale_dump().
#define DUMPLOCALE_IS_IDENTIFIER_ALPHABET_LOWER (1 << 6) |
Definition at line 142 of file locale_support.h.
Referenced by dumplocale(), and locale_dump().
#define DUMPLOCALE_IS_IDENTIFIER_ALPHABET_UPPER (1 << 7) |
Definition at line 143 of file locale_support.h.
Referenced by dumplocale(), and locale_dump().
#define DUMPLOCALE_IS_NORMALIZATION (1 << 10) |
Definition at line 146 of file locale_support.h.
Referenced by dumplocale(), and locale_dump().
#define DUMPLOCALE_IS_NUMBERING (1 << 1) |
Definition at line 137 of file locale_support.h.
Referenced by dumplocale(), and locale_dump().
#define DUMPLOCALE_IS_TEXT_CONV (1 << 11) |
Definition at line 147 of file locale_support.h.
Referenced by dumplocale(), and locale_dump().
#define ERR_MSG_SIZE 512 |
Definition at line 149 of file locale_support.h.
Referenced by apply_tailoring_rules(), boot_restart_server(), common_collation_end_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_x(), end_collation_x_context(), handle_data_collation_rule(), init_user_locales(), la_find_log_pagesize(), lang_check_coll_compat(), lang_check_locale_compat(), lang_load_coll_from_lib(), lang_load_count_coll_from_lib(), lang_load_get_coll_name_from_lib(), lang_load_library(), lang_locale_data_load_from_lib(), lang_locale_load_alpha_from_lib(), lang_locale_load_normalization_from_lib(), lang_set_charset_lang(), load_console_conv_data(), load_ducet(), load_unicode_data(), locale_check_collation_id(), locale_compile_locale(), locale_get_cfg_locales(), locale_prepare_C_file(), locale_save_to_C_file(), read_cp_from_tag(), register_collation(), set_current_locale(), set_msg_lang_from_env(), start_collation_settings(), start_include_collation(), unicode_process_alphabet(), and xboot_emergency_patch().
#define GET_MAPPING_OFFSET | ( | val | ) | ((val) & ~MAPPING_INDEX_MASK) |
Definition at line 175 of file locale_support.h.
Referenced by dump_locale_normalization(), unicode_compose_string(), and unicode_process_normalization().
#define INTL_CASING_EXPANSION_MULTIPLIER 2 |
Definition at line 42 of file locale_support.h.
Referenced by create_alphabet(), intl_char_tolower_utf8(), intl_char_toupper_utf8(), intl_strcasecmp_utf8_one_cp(), load_unicode_data(), and unicode_process_alphabet().
#define INTL_GET_NEXT_CONTR_ID | ( | v | ) | ((v) & (~INTL_MASK_CONTR)) |
Definition at line 68 of file locale_support.h.
Referenced by comp_func_coll_uca_exp(), comp_func_coll_uca_simple_weights(), create_opt_ce_w_exp(), dump_collation_key(), lang_next_coll_seq_utf8_w_contr(), optimize_coll_contractions(), and uca_comp_func_coll_list_exp().
#define INTL_IDENTIFIER_CASING_SIZE_MULTIPLIER 2 |
Definition at line 56 of file locale_support.h.
Referenced by locale_compile_locale().
#define INTL_IS_NEXT_CONTR | ( | v | ) | (((v) & INTL_MASK_CONTR) == INTL_MASK_CONTR) |
Definition at line 65 of file locale_support.h.
Referenced by comp_func_coll_uca_exp(), comp_func_coll_uca_simple_weights(), create_opt_ce_w_exp(), dump_collation_key(), lang_next_coll_seq_utf8_w_contr(), optimize_coll_contractions(), and uca_comp_func_coll_list_exp().
#define INTL_MASK_CONTR 0x80000000 |
Definition at line 63 of file locale_support.h.
Referenced by create_opt_ce_w_exp(), dump_locale_collation(), lang_back_strmatch_utf8_uca_w_level(), lang_get_uca_back_weight_l13(), lang_get_uca_w_l13(), lang_get_uca_w_l4(), lang_strmatch_utf8_uca_w_level(), optimize_coll_contractions(), and set_next_value_for_coll_key().
#define LOC_CAL_FMT_AM_LEN 2 |
Definition at line 102 of file locale_support.h.
#define LOC_CAL_FMT_DAY_ABBR_LEN 2 |
Definition at line 98 of file locale_support.h.
#define LOC_CAL_FMT_DAY_WIDE_LEN 3 |
Definition at line 100 of file locale_support.h.
#define LOC_CAL_FMT_MONTH_ABBR_LEN 3 |
Definition at line 94 of file locale_support.h.
#define LOC_CAL_FMT_MONTH_WIDE_LEN 5 |
Definition at line 96 of file locale_support.h.
#define LOC_DATA_AM_PM_SIZE |
Definition at line 125 of file locale_support.h.
Referenced by end_dayPeriod(), and locale_make_calendar_parse_order().
#define LOC_DATA_BUFF_SIZE 256 |
Definition at line 82 of file locale_support.h.
Referenced by end_collation_cubrid_rule_set_cp_ch(), end_collation_cubrid_rule_set_ech_ecp(), end_collation_cubrid_rule_set_w_wr(), and handle_data().
#define LOC_DATA_COLL_CUBRID_TAILOR_COUNT_GROW 8 |
Definition at line 133 of file locale_support.h.
Referenced by new_collation_cubrid_rule().
#define LOC_DATA_COLL_TWO_CHARS 13 |
Definition at line 131 of file locale_support.h.
Referenced by end_collation_reset(), and end_collation_x_context().
#define LOC_DATA_CURRENCY_ISO_CODE_LEN 3 |
Definition at line 129 of file locale_support.h.
Referenced by start_currency().
#define LOC_DATA_DAY_ABBR_SIZE |
Definition at line 117 of file locale_support.h.
Referenced by end_day(), and locale_make_calendar_parse_order().
#define LOC_DATA_DAY_WIDE_SIZE |
Definition at line 121 of file locale_support.h.
Referenced by end_day(), and locale_make_calendar_parse_order().
#define LOC_DATA_MONTH_ABBR_SIZE |
Definition at line 110 of file locale_support.h.
Referenced by end_month(), and locale_make_calendar_parse_order().
#define LOC_DATA_MONTH_WIDE_SIZE |
Definition at line 113 of file locale_support.h.
Referenced by end_month(), and locale_make_calendar_parse_order().
#define LOC_DATA_TAILOR_RULES_COUNT_GROW 128 |
Definition at line 132 of file locale_support.h.
Referenced by new_collation_rule(), and new_transform_rule().
#define LOC_LIB_SYMBOL_NAME_SIZE 64 |
Definition at line 85 of file locale_support.h.
Referenced by lang_load_coll_from_lib(), lang_load_count_coll_from_lib(), lang_load_get_coll_name_from_lib(), lang_locale_data_load_from_lib(), lang_locale_load_alpha_from_lib(), and lang_locale_load_normalization_from_lib().
#define LOC_LOCALE_STR_SIZE 10 |
Definition at line 81 of file locale_support.h.
Referenced by dumplocale(), and locale_check_and_set_default_files().
#define LOC_PARSE_FRMT_TO_TOKEN_MULT 5 |
Definition at line 108 of file locale_support.h.
#define LOG_LOCALE_ERROR | ( | msg, | |
er_status, | |||
do_print | |||
) |
Definition at line 151 of file locale_support.h.
Referenced by add_key_to_weight_stats_list(), add_opt_coll_contraction(), add_uca_contr_or_exp(), apply_absolute_tailoring_rules(), apply_tailoring_rule_identity(), apply_tailoring_rule_w_dir(), apply_tailoring_rules(), build_key_list_groups(), compute_weights_per_level_stats(), create_alphabet(), create_opt_ce_w_exp(), create_opt_weights(), dump_locale_collation(), dumplocale(), end_collation_cubrid_rule_set_cp_ch(), end_collation_cubrid_rule_set_ech_ecp(), end_collation_cubrid_rule_set_w_wr(), genlocale(), init_uca_instance(), init_user_locales(), lang_check_coll_compat(), lang_check_locale_compat(), lang_load_coll_from_lib(), lang_load_count_coll_from_lib(), lang_load_get_coll_name_from_lib(), lang_load_library(), lang_locale_data_load_from_lib(), lang_locale_load_alpha_from_lib(), lang_locale_load_normalization_from_lib(), load_console_conv_data(), load_ducet(), load_unicode_data(), locale_check_and_set_default_files(), locale_check_and_set_shared_data(), locale_check_collation_id(), locale_compile_locale(), locale_compute_coll_checksum(), locale_compute_locale_checksum(), locale_dump(), locale_get_cfg_locales(), locale_prepare_C_file(), locale_save_to_C_file(), new_contraction(), new_expansion(), optimize_coll_contractions(), read_cp_from_tag(), register_collation(), register_lang_locale_data(), set_current_locale(), start_collation_cubrid_rule_set_wr(), start_collation_settings(), start_include_collation(), str_pop_token(), string_to_coll_ce_list(), unicode_make_normalization_data(), unicode_process_alphabet(), and unicode_process_normalization().
#define MAPPING_INDEX_MASK 0x100000 |
Definition at line 161 of file locale_support.h.
#define MAX_STRLEN_FOR_COLLATION_ELEMENT 136 |
Definition at line 134 of file locale_support.h.
Referenced by start_collation_cubrid_rule_set_wr().
#define MAX_UNICODE_CHARS 65536 |
Definition at line 37 of file locale_support.h.
Referenced by count_decomp_steps(), count_full_decomp_cp(), create_alphabet(), dump_locale_normalization(), find_contr_id(), find_exp_id(), load_unicode_data(), locale_compile_locale(), locale_compute_locale_checksum(), locale_save_normalization_to_C_file(), optimize_coll_contractions(), unicode_compose_string(), unicode_decompose_string(), unicode_make_normalization_data(), unicode_process_normalization(), and unicode_string_need_decompose().
#define SET_MAPPING_INDEX | ( | val, | |
is_used, | |||
offset | |||
) |
Definition at line 163 of file locale_support.h.
Referenced by unicode_process_normalization().
#define TXT_CONV_SYSTEM_STR_SIZE 256 |
Definition at line 501 of file locale_support.h.
#define UCA_GET_L1_W | ( | v | ) | ((v) & 0x0000ffff) |
Definition at line 77 of file locale_support.h.
Referenced by dump_collation_codepoint(), dump_collation_contr(), and lang_split_key_w_exp().
#define UCA_GET_L2_W | ( | v | ) | (((v) & 0x01ff0000) >> 16) |
Definition at line 78 of file locale_support.h.
Referenced by dump_collation_codepoint(), dump_collation_contr(), and lang_back_strmatch_utf8_uca_w_level().
#define UCA_GET_L3_W | ( | v | ) | (((v) & 0xfe000000) >> 25) |
Definition at line 79 of file locale_support.h.
Referenced by dump_collation_codepoint(), and dump_collation_contr().
#define UNICODE_NORMALIZATION_DECORATOR "std" |
Definition at line 539 of file locale_support.h.
Referenced by lang_locale_load_normalization_from_lib(), and locale_save_normalization_to_C_file().
typedef struct alphabet_data ALPHABET_DATA |
Definition at line 436 of file locale_support.h.
typedef struct alphabet_tailoring ALPHABET_TAILORING |
Definition at line 473 of file locale_support.h.
Definition at line 353 of file locale_support.h.
typedef struct coll_data_ref COLL_DATA_REF |
Definition at line 341 of file locale_support.h.
typedef struct coll_tailoring COLL_TAILORING |
Definition at line 391 of file locale_support.h.
typedef struct cubrid_tailor_rule CUBRID_TAILOR_RULE |
Definition at line 278 of file locale_support.h.
typedef struct ldml_context LDML_CONTEXT |
Definition at line 188 of file locale_support.h.
typedef struct locale_collation LOCALE_COLLATION |
Definition at line 558 of file locale_support.h.
typedef struct locale_data LOCALE_DATA |
Definition at line 567 of file locale_support.h.
typedef struct locale_file LOCALE_FILE |
Definition at line 180 of file locale_support.h.
typedef struct tailor_rule TAILOR_RULE |
Definition at line 246 of file locale_support.h.
typedef struct text_conversion TEXT_CONVERSION |
Definition at line 502 of file locale_support.h.
typedef struct text_conversion_prm TEXT_CONVERSION_PRM |
Definition at line 528 of file locale_support.h.
typedef struct transform_rule TRANSFORM_RULE |
Definition at line 460 of file locale_support.h.
typedef unsigned short UCA_CP |
Definition at line 177 of file locale_support.h.
typedef struct uca_options UCA_OPTIONS |
Definition at line 315 of file locale_support.h.
typedef unsigned short UCA_W |
Definition at line 178 of file locale_support.h.
typedef struct unicode_normalization UNICODE_NORMALIZATION |
Definition at line 541 of file locale_support.h.
enum ALPHABET_TYPE |
Enumerator | |
---|---|
ALPHABET_UNICODE | |
ALPHABET_ASCII | |
ALPHABET_TAILORED |
Definition at line 428 of file locale_support.h.
enum ALPHABET_USE_MODE |
Enumerator | |
---|---|
ALPHABET_USE_BUILTIN | |
ALPHABET_USE_DATA |
Definition at line 419 of file locale_support.h.
enum COLL_CONTR_POLICY |
Enumerator | |
---|---|
CONTR_IGNORE | |
CONTR_TAILORING_USE | |
CONTR_DUCET_USE |
Definition at line 297 of file locale_support.h.
enum COLL_MATCH_CONTR |
Enumerator | |
---|---|
MATCH_CONTR_BOUND_FORBID | |
MATCH_CONTR_BOUND_ALLOW |
Definition at line 308 of file locale_support.h.
enum CP_BUF_TYPE |
Enumerator | |
---|---|
BUF_TYPE_CHAR | |
BUF_TYPE_CODE |
Definition at line 216 of file locale_support.h.
enum RULE_POS_TYPE |
Definition at line 223 of file locale_support.h.
enum T_LEVEL |
Enumerator | |
---|---|
TAILOR_UNDEFINED | |
TAILOR_PRIMARY | |
TAILOR_SECONDARY | |
TAILOR_TERTIARY | |
TAILOR_QUATERNARY | |
TAILOR_IDENTITY |
Definition at line 197 of file locale_support.h.
enum TAILOR_DIR |
Enumerator | |
---|---|
TAILOR_AFTER | |
TAILOR_BEFORE |
Definition at line 208 of file locale_support.h.
enum TEXT_CONV_TYPE |
Enumerator | |
---|---|
TEXT_CONV_NO_CONVERSION | |
TEXT_CONV_ISO_88591_BUILTIN | |
TEXT_CONV_ISO_88599_BUILTIN | |
TEXT_CONV_GENERIC_1BYTE | |
TEXT_CONV_GENERIC_2BYTE |
Definition at line 492 of file locale_support.h.
enum TRANSFORM_TYPE |
Enumerator | |
---|---|
TR_UPPER | |
TR_LOWER |
Definition at line 452 of file locale_support.h.
int locale_check_and_set_default_files | ( | LOCALE_FILE * | lf, |
bool | is_lang_init | ||
) |
Definition at line 5260 of file locale_support.c.
References assert, envvar_ldmldir_file(), envvar_libdir_file(), ER_LOC_GEN, ER_LOC_INIT, error(), fopen_ex(), locale_file::ldml_file, locale_file::lib_file, LOC_LOCALE_STR_SIZE, locale_file::locale_name, LOCLIB_FILE_EXT, LOG_LOCALE_ERROR, NO_ERROR, NULL, and strlen.
Referenced by dumplocale(), genlocale(), and init_user_locales().
int locale_compile_locale | ( | LOCALE_FILE * | lf, |
LOCALE_DATA * | ld, | ||
bool | is_verbose | ||
) |
Definition at line 4557 of file locale_support.c.
References alphabet_data::a_type, locale_data::alpha_tailoring, locale_data::alphabet, ALPHABET_ASCII, ALPHABET_UNICODE, assert, coll_data::checksum, locale_data::checksum, locale_data::coll_cnt, coll_data::coll_id, coll_tailoring::coll_id, coll_data::coll_name, coll_tailoring::coll_name, COLL_NAME_SIZE, COLL_SHARED_DATA_SIZE, locale_data::collations, LOC_SHARED_DATA::data, locale_data::dateFormat, locale_data::datetimeFormat, locale_data::datetimetzFormat, alphabet_data::do_not_save, unicode_normalization::do_not_save, locale_collation::do_not_save, ER_LOC_GEN, ERR_MSG_SIZE, xml_parser_data::filepath, i, locale_data::identif_alphabet, intl_cp_to_utf8(), INTL_IDENTIFIER_CASING_SIZE_MULTIPLIER, INTL_UTF8_MAX_CHAR_SIZE, alphabet_data::l_count, lang_is_coll_name_allowed(), LOC_SHARED_DATA::ldml_context, coll_tailoring::ldml_context, alphabet_tailoring::ldml_context, locale_data::ldml_context, locale_file::ldml_file, ldml_context::ldml_file, ldml_context::line_no, load_console_conv_data(), LOC_SHARED_ALPHABET, LOC_SHARED_COLLATION, LOC_SHARED_NORMALIZATION, locale_alloc_collation_id(), locale_check_and_set_shared_data(), locale_check_collation_id(), locale_compute_coll_checksum(), locale_compute_locale_checksum(), locale_init_data(), locale_make_calendar_parse_order(), locale_file::locale_name, LOG_LOCALE_ERROR, alphabet_data::lower_cp, alphabet_data::lower_multiplier, MAX_UNICODE_CHARS, NO_ERROR, NULL, locale_collation::opt_coll, coll_tailoring::sett_max_cp, alphabet_tailoring::sett_max_letters, snprintf_dots_truncate, strdup(), locale_collation::tail_coll, locale_data::timeFormat, locale_data::timestampFormat, locale_data::timestamptzFormat, locale_data::timetzFormat, uca_free_data(), uca_process_collation(), xml_parser_data::ud, unicode_free_data(), locale_data::unicode_normalization, unicode_process_alphabet(), unicode_process_normalization(), alphabet_data::upper_cp, alphabet_data::upper_multiplier, xml_parser_data::verbose, coll_data::w_count, XML_CUB_NO_ERROR, xml_destroy_parser(), xml_parser_data::xml_error, xml_parser_data::xml_error_column, xml_parser_data::xml_error_line, xml_init_parser(), xml_parser_data::xml_parser, and xml_parser_exec().
Referenced by genlocale().
void locale_destroy_alphabet_data | ( | const ALPHABET_DATA * | a | ) |
Definition at line 4341 of file locale_support.c.
References assert, alphabet_data::lower_cp, NULL, and alphabet_data::upper_cp.
Referenced by locale_destroy_data().
void locale_destroy_data | ( | LOCALE_DATA * | ld | ) |
Definition at line 4298 of file locale_support.c.
References locale_data::alpha_tailoring, locale_data::alphabet, assert, locale_data::coll_cnt, locale_data::collations, i, locale_data::identif_alphabet, locale_data::ldml_context, ldml_context::ldml_file, locale_destroy_alphabet_data(), locale_destroy_alphabet_tailoring(), locale_destroy_collation_data(), locale_destroy_collation_tailorings(), locale_destroy_console_conversion(), locale_destroy_normalization_data(), NULL, locale_collation::opt_coll, locale_collation::tail_coll, locale_data::txt_conv, and locale_data::unicode_normalization.
Referenced by genlocale().
void locale_destroy_normalization_data | ( | UNICODE_NORMALIZATION * | norm | ) |
Definition at line 7000 of file locale_support.c.
References unicode_normalization::list_full_decomp, NULL, unicode_normalization::unicode_mapping_index, and unicode_normalization::unicode_mappings.
Referenced by locale_destroy_data().
int locale_dump | ( | void * | data, |
LOCALE_FILE * | lf, | ||
int | dl_settings, | ||
int | start_value, | ||
int | end_value | ||
) |
Definition at line 6269 of file locale_support.c.
References lang_locale_data::alphabet, lang_locale_data::am_pm, lang_locale_data::am_pm_parse_order, assert, CAL_AM_PM_COUNT, CAL_DAY_COUNT, CAL_MONTH_COUNT, lang_locale_data::checksum, lang_locale_data::date_format, lang_locale_data::datetime_format, lang_locale_data::datetimetz_format, lang_locale_data::day_name, lang_locale_data::day_parse_order, lang_locale_data::day_short_name, lang_locale_data::day_short_parse_order, lang_locale_data::default_currency_code, dump_console_conversion(), dump_locale_alphabet(), dump_locale_normalization(), DUMPLOCALE_IS_ALPHABET, DUMPLOCALE_IS_ALPHABET_LOWER, DUMPLOCALE_IS_ALPHABET_UPPER, DUMPLOCALE_IS_CALENDAR, DUMPLOCALE_IS_IDENTIFIER_ALPHABET, DUMPLOCALE_IS_IDENTIFIER_ALPHABET_LOWER, DUMPLOCALE_IS_IDENTIFIER_ALPHABET_UPPER, DUMPLOCALE_IS_NORMALIZATION, DUMPLOCALE_IS_NUMBERING, DUMPLOCALE_IS_TEXT_CONV, DUMPLOCALE_MSG_INVALID_CP_RANGE, ER_LOC_GEN, i, lang_locale_data::ident_alphabet, intl_get_money_ISO_symbol(), alphabet_data::l_count, lang_locale_data::lang_name, locale_file::lib_file, locale_file::locale_name, LOG_LOCALE_ERROR, lang_locale_data::month_name, lang_locale_data::month_parse_order, lang_locale_data::month_short_name, lang_locale_data::month_short_parse_order, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_SET_DUMPLOCALE, NO_ERROR, NULL, lang_locale_data::number_decimal_sym, lang_locale_data::number_group_sym, lang_locale_data::time_format, lang_locale_data::timestamp_format, lang_locale_data::timestamptz_format, lang_locale_data::txt_conv, and lang_locale_data::unicode_norm.
Referenced by dumplocale().
int locale_dump_lib_collations | ( | void * | lib_handle, |
const LOCALE_FILE * | lf, | ||
int | dl_settings, | ||
int | start_value, | ||
int | end_value | ||
) |
Definition at line 6454 of file locale_support.c.
References assert, coll_data::coll_name, dump_locale_collation(), i, lang_load_coll_from_lib(), lang_load_count_coll_from_lib(), lang_load_get_coll_name_from_lib(), locale_file::locale_name, NO_ERROR, NULL, and strlen.
Referenced by dumplocale().
void locale_free_shared_data | ( | void | ) |
Definition at line 6921 of file locale_support.c.
References alloced_shared_data, assert, count_shared_data, LOC_SHARED_DATA::data, i, LOC_SHARED_DATA::ldml_context, ldml_context::ldml_file, and NULL.
Referenced by genlocale().
int locale_get_cfg_locales | ( | LOCALE_FILE ** | p_locale_files, |
int * | p_num_locales, | ||
bool | is_lang_init | ||
) |
Definition at line 5126 of file locale_support.c.
References assert, char_isspace(), envvar_confdir_file(), ER_LOC_GEN, ER_LOC_INIT, ERR_MSG_SIZE, fopen_ex(), locale_file::ldml_file, locale_file::lib_file, locale_file::locale_name, LOG_LOCALE_ERROR, NO_ERROR, NULL, snprintf_dots_truncate, and str_pop_token().
Referenced by dumplocale(), genlocale(), and init_user_locales().
void locale_init_data | ( | LOCALE_DATA * | ld, |
const char * | locale_name | ||
) |
Definition at line 4275 of file locale_support.c.
References locale_data::alpha_tailoring, assert, locale_data::curr_period, DB_CURRENCY_NULL, locale_data::default_currency_code, locale_data::locale_name, locale_data::number_decimal_sym, locale_data::number_group_sym, alphabet_tailoring::sett_max_letters, and strlen.
Referenced by locale_compile_locale().
void locale_mark_duplicate_collations | ( | LOCALE_DATA ** | ld, |
int | start_index, | ||
int | end_index, | ||
bool | is_verbose | ||
) |
Definition at line 4952 of file locale_support.c.
References locale_data::coll_cnt, coll_data_ref::coll_contr_list_ref, coll_data_ref::coll_cp_first_contr_array_ref, coll_data::coll_name, coll_data_ref::coll_next_cp_ref, locale_collation::coll_ref, coll_data_ref::coll_uca_num_ref, coll_data_ref::coll_uca_w_l13_ref, coll_data_ref::coll_uca_w_l4_ref, coll_data_ref::coll_weights_ref, locale_data::collations, coll_data::contr_list, coll_data::contr_min_size, coll_data::count_contr, coll_data::cp_first_contr_array, coll_data::cp_first_contr_count, coll_data::cp_first_contr_offset, coll_data::next_cp, locale_collation::opt_coll, PRINT_DUPLICATE_SYMBOL_NAME, uca_options::sett_expansions, uca_options::sett_strength, TAILOR_QUATERNARY, coll_data::uca_exp_num, coll_data::uca_num, coll_data::uca_opt, coll_data::uca_w_l13, coll_data::uca_w_l4, coll_data::w_count, and coll_data::weights.
Referenced by genlocale().
int locale_prepare_C_file | ( | void | ) |
Definition at line 5427 of file locale_support.c.
References envvar_loclib_dir_file(), ER_GENERIC_ERROR, ER_LOC_GEN, ERR_MSG_SIZE, error(), fopen_ex(), LOG_LOCALE_ERROR, NULL, and snprintf_dots_truncate.
Referenced by genlocale().
int locale_save_all_to_C_file | ( | LOCALE_DATA ** | ld, |
int | start_index, | ||
int | end_index, | ||
LOCALE_FILE * | lf | ||
) |
Definition at line 5096 of file locale_support.c.
References i, locale_save_to_C_file(), and NO_ERROR.
Referenced by genlocale().