CUBRID Engine  latest
locale_support.h File Reference
#include <stddef.h>
#include "porting.h"
#include "dbtype_def.h"
#include "locale_lib_common.h"
Include dependency graph for locale_support.h:
This graph shows which files directly or indirectly include this file:

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
 

Macros

#define MAX_UNICODE_CHARS   65536
 
#define INTL_CASING_EXPANSION_MULTIPLIER   2
 
#define INTL_IDENTIFIER_CASING_SIZE_MULTIPLIER   2
 
#define INTL_MASK_CONTR   0x80000000
 
#define INTL_IS_NEXT_CONTR(v)   (((v) & INTL_MASK_CONTR) == INTL_MASK_CONTR)
 
#define INTL_GET_NEXT_CONTR_ID(v)   ((v) & (~INTL_MASK_CONTR))
 
#define UCA_GET_L1_W(v)   ((v) & 0x0000ffff)
 
#define UCA_GET_L2_W(v)   (((v) & 0x01ff0000) >> 16)
 
#define UCA_GET_L3_W(v)   (((v) & 0xfe000000) >> 25)
 
#define LOC_LOCALE_STR_SIZE   10
 
#define LOC_DATA_BUFF_SIZE   256
 
#define COLL_NAME_SIZE   32
 
#define LOC_LIB_SYMBOL_NAME_SIZE   64
 
#define CAL_MONTH_COUNT   12
 
#define CAL_DAY_COUNT   7
 
#define CAL_AM_PM_COUNT   12
 
#define LOC_CAL_FMT_MONTH_ABBR_LEN   3
 
#define LOC_CAL_FMT_MONTH_WIDE_LEN   5
 
#define LOC_CAL_FMT_DAY_ABBR_LEN   2
 
#define LOC_CAL_FMT_DAY_WIDE_LEN   3
 
#define LOC_CAL_FMT_AM_LEN   2
 
#define LOC_PARSE_FRMT_TO_TOKEN_MULT   5
 
#define LOC_DATA_MONTH_ABBR_SIZE
 
#define LOC_DATA_MONTH_WIDE_SIZE
 
#define LOC_DATA_DAY_ABBR_SIZE
 
#define LOC_DATA_DAY_WIDE_SIZE
 
#define LOC_DATA_AM_PM_SIZE
 
#define LOC_DATA_CURRENCY_ISO_CODE_LEN   3
 
#define LOC_DATA_COLL_TWO_CHARS   13
 
#define LOC_DATA_TAILOR_RULES_COUNT_GROW   128
 
#define LOC_DATA_COLL_CUBRID_TAILOR_COUNT_GROW   8
 
#define MAX_STRLEN_FOR_COLLATION_ELEMENT   136
 
#define DUMPLOCALE_IS_CALENDAR   1
 
#define DUMPLOCALE_IS_NUMBERING   (1 << 1)
 
#define DUMPLOCALE_IS_ALPHABET   (1 << 2)
 
#define DUMPLOCALE_IS_ALPHABET_LOWER   (1 << 3)
 
#define DUMPLOCALE_IS_ALPHABET_UPPER   (1 << 4)
 
#define DUMPLOCALE_IS_IDENTIFIER_ALPHABET   (1 << 5)
 
#define DUMPLOCALE_IS_IDENTIFIER_ALPHABET_LOWER   (1 << 6)
 
#define DUMPLOCALE_IS_IDENTIFIER_ALPHABET_UPPER   (1 << 7)
 
#define DUMPLOCALE_IS_COLLATION_CP_ORDER   (1 << 8)
 
#define DUMPLOCALE_IS_COLLATION_WEIGHT_ORDER   (1 << 9)
 
#define DUMPLOCALE_IS_NORMALIZATION   (1 << 10)
 
#define DUMPLOCALE_IS_TEXT_CONV   (1 << 11)
 
#define ERR_MSG_SIZE   512
 
#define LOG_LOCALE_ERROR(msg, er_status, do_print)
 
#define MAPPING_INDEX_MASK   0x100000
 
#define SET_MAPPING_INDEX(val, is_used, offset)
 
#define CP_HAS_MAPPINGS(val)   (((val) & MAPPING_INDEX_MASK) == MAPPING_INDEX_MASK)
 
#define GET_MAPPING_OFFSET(val)   ((val) & ~MAPPING_INDEX_MASK)
 
#define TXT_CONV_SYSTEM_STR_SIZE   256
 
#define UNICODE_NORMALIZATION_DECORATOR   "std"
 
#define CAL_SIMPLE_DATE_FORMAT_SIZE   30
 
#define CAL_COMP_DATE_FORMAT_SIZE   48
 
#define CAL_SIMPLE_DATE_TZ_FORMAT_SIZE   52
 
#define CAL_COMP_DATE_TZ_FORMAT_SIZE   70
 

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
 

Enumerations

enum  T_LEVEL {
  TAILOR_UNDEFINED = 0, TAILOR_PRIMARY, TAILOR_SECONDARY, TAILOR_TERTIARY,
  TAILOR_QUATERNARY, TAILOR_IDENTITY
}
 
enum  TAILOR_DIR { TAILOR_AFTER = 0, TAILOR_BEFORE }
 
enum  CP_BUF_TYPE { BUF_TYPE_CHAR, BUF_TYPE_CODE }
 
enum  RULE_POS_TYPE {
  RULE_POS_BUFFER = 0, RULE_POS_FIRST_VAR, RULE_POS_LAST_VAR, RULE_POS_FIRST_PRI_IGN,
  RULE_POS_LAST_PRI_IGN, RULE_POS_FIRST_SEC_IGN, RULE_POS_LAST_SEC_IGN, RULE_POS_FIRST_TERT_IGN,
  RULE_POS_LAST_TERT_IGN, RULE_POS_FIRST_NON_IGN, RULE_POS_LAST_NON_IGN, RULE_POS_FIRST_TRAIL,
  RULE_POS_LAST_TRAIL
}
 
enum  COLL_CONTR_POLICY { CONTR_IGNORE = 0x0, CONTR_TAILORING_USE = 0x1, CONTR_DUCET_USE = 0x2 }
 
enum  COLL_MATCH_CONTR { MATCH_CONTR_BOUND_FORBID = 0, MATCH_CONTR_BOUND_ALLOW = 1 }
 
enum  ALPHABET_USE_MODE { ALPHABET_USE_BUILTIN = 0, ALPHABET_USE_DATA }
 
enum  ALPHABET_TYPE { ALPHABET_UNICODE = 0, ALPHABET_ASCII, ALPHABET_TAILORED }
 
enum  TRANSFORM_TYPE { TR_UPPER = 0, TR_LOWER }
 
enum  TEXT_CONV_TYPE {
  TEXT_CONV_NO_CONVERSION = 0, TEXT_CONV_ISO_88591_BUILTIN, TEXT_CONV_ISO_88599_BUILTIN, TEXT_CONV_GENERIC_1BYTE,
  TEXT_CONV_GENERIC_2BYTE
}
 

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)
 

Macro Definition Documentation

#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_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 CP_HAS_MAPPINGS (   val)    (((val) & MAPPING_INDEX_MASK) == MAPPING_INDEX_MASK)
#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 GET_MAPPING_OFFSET (   val)    ((val) & ~MAPPING_INDEX_MASK)
#define INTL_CASING_EXPANSION_MULTIPLIER   2
#define INTL_IDENTIFIER_CASING_SIZE_MULTIPLIER   2

Definition at line 56 of file locale_support.h.

Referenced by locale_compile_locale().

#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
Value:
#define LOC_CAL_FMT_AM_LEN
#define INTL_UTF8_MAX_CHAR_SIZE
#define LOC_PARSE_FRMT_TO_TOKEN_MULT

Definition at line 125 of file locale_support.h.

Referenced by end_dayPeriod(), and locale_make_calendar_parse_order().

#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
Value:
#define LOC_CAL_FMT_DAY_ABBR_LEN
#define INTL_UTF8_MAX_CHAR_SIZE
#define LOC_PARSE_FRMT_TO_TOKEN_MULT

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
Value:
#define LOC_CAL_FMT_DAY_WIDE_LEN
#define INTL_UTF8_MAX_CHAR_SIZE
#define LOC_PARSE_FRMT_TO_TOKEN_MULT

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
Value:
#define LOC_CAL_FMT_MONTH_ABBR_LEN
#define INTL_UTF8_MAX_CHAR_SIZE
#define LOC_PARSE_FRMT_TO_TOKEN_MULT

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
Value:
#define LOC_CAL_FMT_MONTH_WIDE_LEN
#define INTL_UTF8_MAX_CHAR_SIZE
#define LOC_PARSE_FRMT_TO_TOKEN_MULT

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_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 
)
Value:
do { \
er_set (ER_ERROR_SEVERITY, ARG_FILE_LINE, er_status, 1, msg); \
if (do_print) \
{ \
fprintf (stderr, "Error processing locales: %s\n", msg); \
util_log_write_errstr ("Error processing locales: %s\n", msg); \
} \
} while (0)
void er_set(int severity, const char *file_name, const int line_no, int err_id, int num_args,...)
if(extra_options)
Definition: dynamic_load.c:958
#define ARG_FILE_LINE
Definition: error_manager.h:44
int util_log_write_errstr(const char *format,...)
Definition: util_func.c:493

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 SET_MAPPING_INDEX (   val,
  is_used,
  offset 
)
Value:
do { \
val = (offset); \
if (is_used) \
{ \
} \
} while (0);
if(extra_options)
Definition: dynamic_load.c:958
#define MAPPING_INDEX_MASK

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)
#define UCA_GET_L2_W (   v)    (((v) & 0x01ff0000) >> 16)
#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"

Typedef Documentation

typedef struct alphabet_data ALPHABET_DATA

Definition at line 436 of file locale_support.h.

Definition at line 473 of file locale_support.h.

typedef struct coll_data COLL_DATA

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.

Definition at line 391 of file locale_support.h.

Definition at line 278 of file locale_support.h.

typedef struct ldml_context LDML_CONTEXT

Definition at line 188 of file locale_support.h.

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.

Definition at line 502 of file locale_support.h.

Definition at line 528 of file locale_support.h.

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.

Definition at line 541 of file locale_support.h.

Enumeration Type Documentation

Enumerator
ALPHABET_UNICODE 
ALPHABET_ASCII 
ALPHABET_TAILORED 

Definition at line 428 of file locale_support.h.

Enumerator
ALPHABET_USE_BUILTIN 
ALPHABET_USE_DATA 

Definition at line 419 of file locale_support.h.

Enumerator
CONTR_IGNORE 
CONTR_TAILORING_USE 
CONTR_DUCET_USE 

Definition at line 297 of file locale_support.h.

Enumerator
MATCH_CONTR_BOUND_FORBID 
MATCH_CONTR_BOUND_ALLOW 

Definition at line 308 of file locale_support.h.

Enumerator
BUF_TYPE_CHAR 
BUF_TYPE_CODE 

Definition at line 216 of file locale_support.h.

Enumerator
RULE_POS_BUFFER 
RULE_POS_FIRST_VAR 
RULE_POS_LAST_VAR 
RULE_POS_FIRST_PRI_IGN 
RULE_POS_LAST_PRI_IGN 
RULE_POS_FIRST_SEC_IGN 
RULE_POS_LAST_SEC_IGN 
RULE_POS_FIRST_TERT_IGN 
RULE_POS_LAST_TERT_IGN 
RULE_POS_FIRST_NON_IGN 
RULE_POS_LAST_NON_IGN 
RULE_POS_FIRST_TRAIL 
RULE_POS_LAST_TRAIL 

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.

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.

Enumerator
TR_UPPER 
TR_LOWER 

Definition at line 452 of file locale_support.h.

Function Documentation

int locale_check_and_set_default_files ( LOCALE_FILE lf,
bool  is_lang_init 
)
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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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  )

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().

Here is the caller graph for this function:

int locale_get_cfg_locales ( LOCALE_FILE **  p_locale_files,
int *  p_num_locales,
bool  is_lang_init 
)
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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function: