CUBRID Engine  latest
locale_support.c File Reference
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "porting.h"
#include "environment_variable.h"
#include "utility.h"
#include "xml_parser.h"
#include "chartype.h"
#include "error_manager.h"
#include "release_string.h"
#include "uca_support.h"
#include "unicode_support.h"
#include "message_catalog.h"
#include "language_support.h"
#include "system_parameter.h"
#include "crypt_opfunc.h"
#include <netinet/in.h>
#include "locale_support.h"
Include dependency graph for locale_support.c:

Go to the source code of this file.

Classes

struct  TXT_CONV_ITEM
 
struct  LOC_SHARED_DATA
 

Macros

#define strlen(s1)   ((int) strlen(s1))
 
#define TXT_CONV_LINE_SIZE   512
 
#define TXT_CONV_ITEM_GROW_COUNT   128
 
#define LOC_CURRENT_COLL_TAIL(ld)   (&(ld->collations[ld->coll_cnt].tail_coll))
 
#define COLL_SHARED_DATA_SIZE   (10 + 2)
 
#define PRINT_DEBUG_START(d, a, m, s)
 
#define PRINT_DEBUG_END(d, m, s)
 
#define PRINT_DEBUG_DATA(d, m, s)
 
#define PRINT_TO_C_FILE_MAX_INT_LINE   10
 
#define DLL_EXPORT_PREFIX   ""
 
#define LOCLIB_FILE_EXT   "so"
 
#define PRINT_STRING_TO_C_FILE(fp, val, len)
 
#define PRINT_VAR_TO_C_FILE(fp, type, valname, val, format, d)
 
#define PRINT_STRING_VAR_TO_C_FILE(fp, valname, val, d)
 
#define PRINT_STRING_ARRAY_TO_C_FILE(fp, valname, arrcount, val, d)
 
#define PRINT_NUM_ARRAY_TO_C_FILE(fp, vname, vtype, intf, arrcount, val, d)
 
#define PRINT_UNNAMED_NUM_ARRAY_TO_C_FILE(fp, intf, tab, arrcount, val)
 
#define XML_COMMENT_START   "<!-- "
 
#define XML_COMMENT_END   " -->"
 
#define ID_PER_RANGE   8
 
#define START_GENERIC_RANGE   LANG_MAX_BUILTIN_COLLATIONS
 
#define START_LANG_RANGE   47
 
#define PRINT_DUPLICATE_SYMBOL_NAME(symbol, dupl_coll, orig_coll, do_print)
 
#define DUMP_CP_BUF_SIZE   128
 
#define SHARED_DATA_INCR_SIZE   32
 
#define NORM_MAPPING_DUMP_MODE_FULL   0
 
#define NORM_MAPPING_DUMP_MODE_COMP   1
 
#define NORM_MAPPING_DUMP_MODE_DECOMP   2
 
#define BUF_PUT_INT16(buf, v)
 
#define BUF_PUT_INT32(buf, v)
 
#define BUF_ALIGN(buf, align)
 

Enumerations

enum  LOC_SHARED_DATA_TYPE { LOC_SHARED_COLLATION = 0, LOC_SHARED_ALPHABET = 1, LOC_SHARED_NORMALIZATION = 2 }
 

Functions

static int start_element_ok (void *data, const char **attr)
 
static int end_element_ok (void *data, const char *el_name)
 
static int start_calendar (void *data, const char **attr)
 
static int end_dateFormatCUBRID (void *data, const char *el_name)
 
static int end_timeFormatCUBRID (void *data, const char *el_name)
 
static int end_datetimeFormatCUBRID (void *data, const char *el_name)
 
static int end_timestampFormatCUBRID (void *data, const char *el_name)
 
static int end_timetzFormatCUBRID (void *data, const char *el_name)
 
static int end_datetimetzFormatCUBRID (void *data, const char *el_name)
 
static int end_timestamptzFormatCUBRID (void *data, const char *el_name)
 
static int start_calendar_name_context (void *data, const char **attr)
 
static int start_month_day_Width (void *data, const char **attr)
 
static int end_month_day_Width (void *data, const char *el_name)
 
static int start_month (void *data, const char **attr)
 
static int end_month (void *data, const char *el_name)
 
static int start_day (void *data, const char **attr)
 
static int end_day (void *data, const char *el_name)
 
static int start_dayPeriodWidth (void *data, const char **attr)
 
static int start_dayPeriod (void *data, const char **attr)
 
static int end_dayPeriod (void *data, const char *el_name)
 
static int start_numbers_symbols (void *data, const char **attr)
 
static int start_currency (void *data, const char **attr)
 
static int end_number_symbol (void *data, const char *el_name)
 
static int start_collations (void *data, const char **attr)
 
static int start_one_collation (void *data, const char **attr)
 
static int end_one_collation (void *data, const char *el_name)
 
static int start_collation_settings (void *data, const char **attr)
 
static int start_collation_reset (void *data, const char **attr)
 
static int end_collation_reset (void *data, const char *el_name)
 
static int start_collation_rule (void *data, const char **attr)
 
static int start_collation_cubrid_rule (void *data, const char **attr)
 
static int start_collation_cubrid_rule_set_wr (void *data, const char **attr)
 
static int end_collation_cubrid_rule_set (void *data, const char *el_name)
 
static int end_collation_cubrid_rule_set_cp_ch (void *data, const char *el_name)
 
static int end_collation_cubrid_rule_set_ech_ecp (void *data, const char *el_name)
 
static int end_collation_cubrid_rule_set_w_wr (void *data, const char *el_name)
 
static int handle_data_collation_rule (void *data, const char *s, int len)
 
static int end_collation_rule (void *data, const char *el_name)
 
static int start_collation_x (void *data, const char **attr)
 
static int end_collation_x (void *data, const char *el_name)
 
static int end_collation_x_rule (void *data, const char *el_name)
 
static int end_collation_x_extend (void *data, const char *el_name)
 
static int end_collation_x_context (void *data, const char *el_name)
 
static int start_collation_logical_pos (void *data, const char **attr)
 
static int end_collation_logical_pos (void *data, const char *el_name)
 
static int start_one_alphabet (void *data, const char **attr)
 
static int start_upper_case_rule (void *data, const char **attr)
 
static int end_case_rule (void *data, const char *el_name)
 
static int start_lower_case_rule (void *data, const char **attr)
 
static int end_transform_buffer (void *data, const char *el_name)
 
static int start_include_collation (void *data, const char **attr)
 
static int start_unicode_file (void *data, const char **attr)
 
static int start_consoleconversion (void *data, const char **attr)
 
static int handle_data (void *data, const char *s, int len)
 
static void clear_data_buffer (XML_PARSER_DATA *pd)
 
static LOCALE_COLLATIONnew_locale_collation (LOCALE_DATA *ld)
 
static TAILOR_RULEnew_collation_rule (LOCALE_DATA *ld)
 
static TRANSFORM_RULEnew_transform_rule (LOCALE_DATA *ld)
 
static CUBRID_TAILOR_RULEnew_collation_cubrid_rule (LOCALE_DATA *ld)
 
static void locale_alloc_collation_id (COLL_TAILORING *coll_tail)
 
static int locale_check_collation_id (const COLL_TAILORING *coll_tail)
 
static void print_debug_start_el (void *data, const char **attrs, const char *msg, const int status)
 
static void print_debug_end_el (void *data, const char *msg, const int status)
 
static void print_debug_data_content (void *data, const char *msg, const int status)
 
static int load_console_conv_data (LOCALE_DATA *ld, bool is_verbose)
 
static int locale_save_to_C_file (LOCALE_FILE lf, LOCALE_DATA *ld)
 
static int locale_save_calendar_to_C_file (FILE *fp, LOCALE_DATA *ld)
 
static int locale_save_alphabets_to_C_file (FILE *fp, LOCALE_DATA *ld)
 
static int locale_save_one_alphabet_to_C_file (FILE *fp, ALPHABET_DATA *a, bool save_w_identier_name, const char *alpha_suffix)
 
static int locale_save_collation_data_to_C_file (FILE *fp, LOCALE_COLLATION *lc)
 
static int locale_save_console_conv_to_C_file (FILE *fp, LOCALE_DATA *ld)
 
static int locale_save_normalization_to_C_file (FILE *fp, LOCALE_DATA *ld)
 
static void locale_destroy_collation_tailorings (const COLL_TAILORING *ct)
 
static void locale_destroy_collation_data (const COLL_DATA *cd)
 
static void locale_destroy_alphabet_tailoring (const ALPHABET_TAILORING *cd)
 
static void locale_destroy_console_conversion (const TEXT_CONVERSION *tc)
 
static int str_pop_token (char *str_p, char **token_p, char **next_p)
 
static int dump_locale_alphabet (ALPHABET_DATA *ad, int dl_settings, int lower_bound, int upper_bound)
 
static void dump_collation_key (COLL_DATA *coll, const unsigned int key, bool print_weight, bool print_key)
 
static void dump_collation_contr (COLL_DATA *coll, const COLL_CONTRACTION *contr, bool print_weight, bool print_contr)
 
static void dump_collation_codepoint (COLL_DATA *coll, const unsigned int cp, bool print_weight, bool print_cp)
 
static void dump_locale_normalization (UNICODE_NORMALIZATION *norm)
 
static void dump_unicode_mapping (UNICODE_MAPPING *um, const int mode)
 
static int dump_console_conversion (TEXT_CONVERSION *tc)
 
static int comp_func_coll_uca_exp_fo (const void *arg1, const void *arg2)
 
static int comp_func_coll_uca_exp (const void *arg1, const void *arg2)
 
static int comp_func_coll_uca_simple_weights_fo (const void *arg1, const void *arg2)
 
static int comp_func_coll_uca_simple_weights (const void *arg1, const void *arg2)
 
static int comp_func_parse_order_index (const void *arg1, const void *arg2)
 
static void locale_make_calendar_parse_order (LOCALE_DATA *ld)
 
static int locale_check_and_set_shared_data (const LOC_SHARED_DATA_TYPE lsd_type, const char *lsd_key, const void *data, LDML_CONTEXT *ldml_context, LOC_SHARED_DATA **found_entry)
 
static int locale_compute_coll_checksum (COLL_DATA *cd)
 
static int locale_alphabet_data_size (ALPHABET_DATA *a)
 
static int locale_alphabet_data_to_buf (ALPHABET_DATA *a, char *buf)
 
static int locale_compute_locale_checksum (LOCALE_DATA *ld)
 
static int common_collation_end_rule (void *data, LOCALE_DATA *ld, const int rule_id, TAILOR_RULE *t_rule)
 
static int common_collation_start_rule (void *data, const char **attr, LOCALE_DATA *ld, TAILOR_RULE *t_rule)
 
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)
 
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_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)
 
static int save_contraction_to_C_file (FILE *fp, COLL_CONTRACTION *c, bool use_expansion, bool use_level_4)
 
int locale_prepare_C_file (void)
 
static int dump_locale_collation (COLL_DATA *coll, int dl_settings, int start_value, int end_value)
 
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)
 
void locale_destroy_normalization_data (UNICODE_NORMALIZATION *norm)
 

Variables

const char * ldml_ref_day_names [] = { "sun", "mon", "tue", "wed", "thu", "fri", "sat" }
 
const char * ldml_ref_am_pm_names []
 
static LOC_SHARED_DATAshared_data = NULL
 
static int count_shared_data = 0
 
static int alloced_shared_data = 0
 
static COLL_DATAdump_coll_data = NULL
 
static char * cmp_token_name_array = NULL
 
static char cmp_token_name_size = 0
 
XML_ELEMENT_DEF ldml_elem_ldml
 
XML_ELEMENT_DEF ldml_elem_dates
 
XML_ELEMENT_DEF ldml_elem_calendars
 
XML_ELEMENT_DEF ldml_elem_calendar
 
XML_ELEMENT_DEF ldml_elem_dateFormatCUBRID
 
XML_ELEMENT_DEF ldml_timeFormatCUBRID
 
XML_ELEMENT_DEF ldml_datetimeFormatCUBRID
 
XML_ELEMENT_DEF ldml_timestampFormatCUBRID
 
XML_ELEMENT_DEF ldml_timetzFormatCUBRID
 
XML_ELEMENT_DEF ldml_datetimetzFormatCUBRID
 
XML_ELEMENT_DEF ldml_timestamptzFormatCUBRID
 
XML_ELEMENT_DEF ldml_elem_months
 
XML_ELEMENT_DEF ldml_elem_monthContext
 
XML_ELEMENT_DEF ldml_elem_monthWidth
 
XML_ELEMENT_DEF ldml_elem_month
 
XML_ELEMENT_DEF ldml_elem_days
 
XML_ELEMENT_DEF ldml_elem_dayContext
 
XML_ELEMENT_DEF ldml_elem_dayWidth
 
XML_ELEMENT_DEF ldml_elem_day
 
XML_ELEMENT_DEF ldml_elem_dayPeriods
 
XML_ELEMENT_DEF ldml_elem_dayPeriodContext
 
XML_ELEMENT_DEF ldml_elem_dayPeriodWidth
 
XML_ELEMENT_DEF ldml_elem_dayPeriod
 
XML_ELEMENT_DEF ldml_elem_numbers
 
XML_ELEMENT_DEF ldml_elem_numbers_symbols
 
XML_ELEMENT_DEF ldml_elem_symbol_decimal
 
XML_ELEMENT_DEF ldml_elem_symbol_group
 
XML_ELEMENT_DEF ldml_elem_currencies
 
XML_ELEMENT_DEF ldml_elem_currency
 
XML_ELEMENT_DEF ldml_elem_collations
 
XML_ELEMENT_DEF ldml_elem_collation
 
XML_ELEMENT_DEF ldml_elem_collation_rules
 
XML_ELEMENT_DEF ldml_elem_collation_settings
 
XML_ELEMENT_DEF ldml_elem_collation_reset
 
XML_ELEMENT_DEF ldml_elem_collation_p
 
XML_ELEMENT_DEF ldml_elem_collation_s
 
XML_ELEMENT_DEF ldml_elem_collation_t
 
XML_ELEMENT_DEF ldml_elem_collation_i
 
XML_ELEMENT_DEF ldml_elem_collation_pc
 
XML_ELEMENT_DEF ldml_elem_collation_sc
 
XML_ELEMENT_DEF ldml_elem_collation_tc
 
XML_ELEMENT_DEF ldml_elem_collation_ic
 
XML_ELEMENT_DEF ldml_elem_collation_x
 
XML_ELEMENT_DEF ldml_elem_collation_x_p
 
XML_ELEMENT_DEF ldml_elem_collation_x_s
 
XML_ELEMENT_DEF ldml_elem_collation_x_t
 
XML_ELEMENT_DEF ldml_elem_collation_x_i
 
XML_ELEMENT_DEF ldml_elem_collation_x_extend
 
XML_ELEMENT_DEF ldml_elem_collation_x_context
 
XML_ELEMENT_DEF ldml_elem_collation_reset_first_variable
 
XML_ELEMENT_DEF ldml_elem_collation_reset_last_variable
 
XML_ELEMENT_DEF ldml_elem_collation_reset_first_primary_ignorable
 
XML_ELEMENT_DEF ldml_elem_collation_reset_last_primary_ignorable
 
XML_ELEMENT_DEF ldml_elem_collation_reset_first_secondary_ignorable
 
XML_ELEMENT_DEF ldml_elem_collation_reset_last_secondary_ignorable
 
XML_ELEMENT_DEF ldml_elem_collation_reset_first_tertiary_ignorable
 
XML_ELEMENT_DEF ldml_elem_collation_reset_last_tertiary_ignorable
 
XML_ELEMENT_DEF ldml_elem_collation_reset_first_non_ignorable
 
XML_ELEMENT_DEF ldml_elem_collation_reset_last_non_ignorable
 
XML_ELEMENT_DEF ldml_elem_collation_reset_first_trailing
 
XML_ELEMENT_DEF ldml_elem_collation_reset_last_trailing
 
XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules
 
XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules_set
 
XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules_set_ch
 
XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules_set_sch
 
XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules_set_ech
 
XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules_set_cp
 
XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules_set_scp
 
XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules_set_ecp
 
XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules_set_w
 
XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules_set_wr
 
XML_ELEMENT_DEF ldml_elem_alphabets
 
XML_ELEMENT_DEF ldml_elem_include_collation
 
XML_ELEMENT_DEF ldml_elem_alphabet
 
XML_ELEMENT_DEF ldml_elem_alphabet_upper
 
XML_ELEMENT_DEF ldml_elem_alphabet_upper_src
 
XML_ELEMENT_DEF ldml_elem_alphabet_upper_dest
 
XML_ELEMENT_DEF ldml_elem_alphabet_lower
 
XML_ELEMENT_DEF ldml_elem_alphabet_lower_src
 
XML_ELEMENT_DEF ldml_elem_alphabet_lower_dest
 
XML_ELEMENT_DEF ldml_elem_unicodefile
 
XML_ELEMENT_DEF ldml_elem_consoleconversion
 
XML_ELEMENT_DEFldml_elements []
 

Macro Definition Documentation

#define BUF_ALIGN (   buf,
  align 
)
Value:
((char *)((((UINTPTR)(buf) + ((UINTPTR)((align)-1)))) \
& ~((UINTPTR)((align)-1))))
size_t align(size_t v)
Definition: align.h:19

Definition at line 7413 of file locale_support.c.

Referenced by locale_compute_coll_checksum().

#define BUF_PUT_INT16 (   buf,
 
)
Value:
do { \
unsigned short nv = htons(v); \
*((unsigned char *) (buf)) = ((unsigned char *) &nv)[1]; \
buf = (char *) (buf) + 1; \
*((unsigned char *) (buf)) = ((unsigned char *) &nv)[0]; \
buf = (char *) (buf) + 1; \
} while (0)
unsigned short htons(unsigned short from)

Definition at line 7391 of file locale_support.c.

Referenced by locale_compute_coll_checksum().

#define BUF_PUT_INT32 (   buf,
 
)
Value:
do { \
unsigned int nv = htonl(v); \
*((unsigned char *) (buf)) = ((unsigned char *) &nv)[3]; \
buf = (char *) (buf) + 1; \
*((unsigned char *) (buf)) = ((unsigned char *) &nv)[2]; \
buf = (char *) (buf) + 1; \
*((unsigned char *) (buf)) = ((unsigned char *) &nv)[1]; \
buf = (char *) (buf) + 1; \
*((unsigned char *) (buf)) = ((unsigned char *) &nv)[0]; \
buf = (char *) (buf) + 1; \
} while (0)
unsigned int htonl(unsigned int from)

Definition at line 7400 of file locale_support.c.

Referenced by locale_alphabet_data_to_buf(), locale_compute_coll_checksum(), and locale_compute_locale_checksum().

#define COLL_SHARED_DATA_SIZE   (10 + 2)

Definition at line 87 of file locale_support.c.

Referenced by locale_compile_locale().

#define DLL_EXPORT_PREFIX   ""
#define DUMP_CP_BUF_SIZE   128

Referenced by dump_locale_alphabet().

#define ID_PER_RANGE   8
#define LOCLIB_FILE_EXT   "so"

Definition at line 231 of file locale_support.c.

Referenced by locale_check_and_set_default_files().

#define NORM_MAPPING_DUMP_MODE_COMP   1

Definition at line 7075 of file locale_support.c.

Referenced by dump_locale_normalization(), and dump_unicode_mapping().

#define NORM_MAPPING_DUMP_MODE_DECOMP   2

Definition at line 7076 of file locale_support.c.

Referenced by dump_locale_normalization().

#define NORM_MAPPING_DUMP_MODE_FULL   0

Definition at line 7074 of file locale_support.c.

Referenced by dump_locale_normalization(), and dump_unicode_mapping().

#define PRINT_DEBUG_DATA (   d,
  m,
 
)
Value:
do { \
} while (0);
static void print_debug_data_content(void *data, const char *msg, const int status)

Definition at line 219 of file locale_support.c.

Referenced by handle_data(), and handle_data_collation_rule().

#define PRINT_DUPLICATE_SYMBOL_NAME (   symbol,
  dupl_coll,
  orig_coll,
  do_print 
)
Value:
if (do_print) \
{ \
printf ("\n *** Duplicate array: %s in collation %s is a duplicate " \
"of %s from collation %s", (symbol), \
(dupl_coll)->opt_coll.coll_name, \
(symbol), (orig_coll)->opt_coll.coll_name); \
}

Referenced by locale_mark_duplicate_collations().

#define PRINT_NUM_ARRAY_TO_C_FILE (   fp,
  vname,
  vtype,
  intf,
  arrcount,
  val,
 
)
Value:
do { \
int i_arr, j_arr; \
fprintf(fp, \
"\n" DLL_EXPORT_PREFIX "const " vtype " " vname "_%s[] = {\n", d); \
j_arr = 1; \
for (i_arr = 0; i_arr < arrcount; i_arr++) \
{ \
fprintf(fp, "\t"); \
fprintf(fp, intf, val[i_arr]); \
if (i_arr < arrcount - 1) \
{ \
fprintf(fp, ","); \
} \
j_arr++; \
{ \
j_arr = 1; \
fprintf(fp, "\n"); \
} \
} \
fprintf(fp, "};\n"); \
} while (0);
#define PRINT_TO_C_FILE_MAX_INT_LINE
if(extra_options)
Definition: dynamic_load.c:958
for(p=libs;*p;p++)
Definition: dynamic_load.c:968
#define DLL_EXPORT_PREFIX

Definition at line 279 of file locale_support.c.

Referenced by locale_save_calendar_to_C_file(), locale_save_collation_data_to_C_file(), locale_save_console_conv_to_C_file(), locale_save_normalization_to_C_file(), and locale_save_one_alphabet_to_C_file().

#define PRINT_STRING_ARRAY_TO_C_FILE (   fp,
  valname,
  arrcount,
  val,
 
)
Value:
do { \
int istrarr; \
fprintf(fp, "\n" DLL_EXPORT_PREFIX"const char* " valname "_%s[] = {\n", d);\
for (istrarr = 0; istrarr < arrcount; istrarr++) \
{ \
fprintf(fp, "\t"); \
PRINT_STRING_TO_C_FILE (fp, val[istrarr], strlen(val[istrarr])); \
if (istrarr < arrcount - 1) \
{ \
fprintf(fp, ",\n"); \
} \
{ \
fprintf(fp, "\n"); \
} \
} \
fprintf(fp, "};\n"); \
} while (0);
#define PRINT_STRING_TO_C_FILE(fp, val, len)
if(extra_options)
Definition: dynamic_load.c:958
#define strlen(s1)
else
for(p=libs;*p;p++)
Definition: dynamic_load.c:968
#define DLL_EXPORT_PREFIX

Definition at line 258 of file locale_support.c.

Referenced by locale_save_calendar_to_C_file().

#define PRINT_STRING_TO_C_FILE (   fp,
  val,
  len 
)
Value:
do { \
int istr; \
fprintf (fp, "\""); \
for (istr = 0; istr < len; istr++) \
{ \
fprintf (fp, "\\x%02X", (unsigned char) val[istr]); \
} \
fprintf (fp, "\""); \
} while (0);
for(p=libs;*p;p++)
Definition: dynamic_load.c:968

Definition at line 234 of file locale_support.c.

Referenced by locale_save_console_conv_to_C_file(), locale_save_normalization_to_C_file(), and save_contraction_to_C_file().

#define PRINT_STRING_VAR_TO_C_FILE (   fp,
  valname,
  val,
 
)
Value:
do { \
fprintf (fp, "\n" DLL_EXPORT_PREFIX "const char " valname "_%s[] = ", d); \
PRINT_STRING_TO_C_FILE (fp, val, strlen (val)); \
fprintf (fp, ";\n"); \
} while (0);
#define PRINT_STRING_TO_C_FILE(fp, val, len)
#define strlen(s1)
#define DLL_EXPORT_PREFIX

Definition at line 251 of file locale_support.c.

Referenced by locale_save_calendar_to_C_file(), locale_save_collation_data_to_C_file(), locale_save_console_conv_to_C_file(), and locale_save_to_C_file().

#define PRINT_TO_C_FILE_MAX_INT_LINE   10

Definition at line 224 of file locale_support.c.

#define PRINT_UNNAMED_NUM_ARRAY_TO_C_FILE (   fp,
  intf,
  tab,
  arrcount,
  val 
)
Value:
do { \
int i_uarr, j_uarr; \
fprintf(fp, tab"{\n"); \
j_uarr = 1; \
for (i_uarr = 0; i_uarr < arrcount; i_uarr++) \
{ \
fprintf(fp, intf, val[i_uarr]); \
if (i_uarr < arrcount - 1) \
{ \
fprintf(fp, ","); \
} \
j_uarr++; \
{ \
j_uarr = 1; \
fprintf(fp, "\n" tab); \
} \
} \
fprintf(fp, "\n" tab "}"); \
} while (0);
#define PRINT_TO_C_FILE_MAX_INT_LINE
if(extra_options)
Definition: dynamic_load.c:958
for(p=libs;*p;p++)
Definition: dynamic_load.c:968

Definition at line 304 of file locale_support.c.

Referenced by save_contraction_to_C_file().

#define PRINT_VAR_TO_C_FILE (   fp,
  type,
  valname,
  val,
  format,
 
)
Value:
do { \
fprintf (fp, "\n" DLL_EXPORT_PREFIX "const " \
type " " valname "_%s = " format ";\n", d, val); \
} while (0);
#define DLL_EXPORT_PREFIX

Definition at line 245 of file locale_support.c.

Referenced by locale_save_alphabets_to_C_file(), locale_save_collation_data_to_C_file(), locale_save_console_conv_to_C_file(), locale_save_normalization_to_C_file(), locale_save_one_alphabet_to_C_file(), and locale_save_to_C_file().

#define SHARED_DATA_INCR_SIZE   32
#define START_GENERIC_RANGE   LANG_MAX_BUILTIN_COLLATIONS
#define START_LANG_RANGE   47
#define TXT_CONV_ITEM_GROW_COUNT   128

Definition at line 55 of file locale_support.c.

Referenced by load_console_conv_data().

#define TXT_CONV_LINE_SIZE   512

Definition at line 54 of file locale_support.c.

Referenced by load_console_conv_data().

#define XML_COMMENT_END   " -->"
#define XML_COMMENT_START   "<!-- "

Enumeration Type Documentation

Enumerator
LOC_SHARED_COLLATION 
LOC_SHARED_ALPHABET 
LOC_SHARED_NORMALIZATION 

Definition at line 74 of file locale_support.c.

Function Documentation

static int common_collation_start_rule ( void *  data,
const char **  attr,
LOCALE_DATA ld,
TAILOR_RULE t_rule 
)
static
static int comp_func_coll_uca_exp ( const void *  arg1,
const void *  arg2 
)
static
static int comp_func_coll_uca_exp_fo ( const void *  arg1,
const void *  arg2 
)
static

Definition at line 6585 of file locale_support.c.

References cmp, and comp_func_coll_uca_exp().

Referenced by dump_locale_collation().

Here is the caller graph for this function:

static int comp_func_coll_uca_simple_weights ( const void *  arg1,
const void *  arg2 
)
static
static int comp_func_coll_uca_simple_weights_fo ( const void *  arg1,
const void *  arg2 
)
static

Definition at line 6518 of file locale_support.c.

References cmp, and comp_func_coll_uca_simple_weights().

Referenced by dump_locale_collation().

Here is the caller graph for this function:

static int comp_func_parse_order_index ( const void *  arg1,
const void *  arg2 
)
static

Definition at line 4201 of file locale_support.c.

References cmp, cmp_token_name_array, and cmp_token_name_size.

Referenced by locale_make_calendar_parse_order().

Here is the caller graph for this function:

static void dump_collation_codepoint ( COLL_DATA coll,
const unsigned int  cp,
bool  print_weight,
bool  print_cp 
)
static
static void dump_collation_key ( COLL_DATA coll,
const unsigned int  key,
bool  print_weight,
bool  print_key 
)
static

Definition at line 6664 of file locale_support.c.

References coll_data::contr_list, dump_collation_codepoint(), dump_collation_contr(), INTL_GET_NEXT_CONTR_ID, and INTL_IS_NEXT_CONTR.

Referenced by dump_locale_collation().

Here is the caller graph for this function:

static int dump_locale_alphabet ( ALPHABET_DATA ad,
int  dl_settings,
int  lower_bound,
int  upper_bound 
)
static
static void dump_unicode_mapping ( UNICODE_MAPPING um,
const int  mode 
)
static
static int end_collation_cubrid_rule_set ( void *  data,
const char *  el_name 
)
static
static int end_collation_reset ( void *  data,
const char *  el_name 
)
static
static int end_dateFormatCUBRID ( void *  data,
const char *  el_name 
)
static
static int end_datetimeFormatCUBRID ( void *  data,
const char *  el_name 
)
static
static int end_datetimetzFormatCUBRID ( void *  data,
const char *  el_name 
)
static
static int end_element_ok ( void *  data,
const char *  el_name 
)
static

Definition at line 910 of file locale_support.c.

References PRINT_DEBUG_END.

static int end_month_day_Width ( void *  data,
const char *  el_name 
)
static

Definition at line 1280 of file locale_support.c.

References assert, locale_data::name_type, NULL, PRINT_DEBUG_END, and XML_USER_DATA.

static int end_number_symbol ( void *  data,
const char *  el_name 
)
static
static int end_one_collation ( void *  data,
const char *  el_name 
)
static

Definition at line 1889 of file locale_support.c.

References assert, locale_data::coll_cnt, NULL, PRINT_DEBUG_END, and XML_USER_DATA.

static int end_timeFormatCUBRID ( void *  data,
const char *  el_name 
)
static
static int end_timestampFormatCUBRID ( void *  data,
const char *  el_name 
)
static
static int end_timestamptzFormatCUBRID ( void *  data,
const char *  el_name 
)
static
static int end_timetzFormatCUBRID ( void *  data,
const char *  el_name 
)
static
static int handle_data ( void *  data,
const char *  s,
int  len 
)
static
static void locale_alloc_collation_id ( COLL_TAILORING coll_tail)
static

Definition at line 3797 of file locale_support.c.

References char_isupper(), coll_tailoring::coll_id, coll_tailoring::coll_name, COLL_NAME_SIZE, ID_PER_RANGE, NULL, START_GENERIC_RANGE, START_LANG_RANGE, and strlen.

Referenced by locale_compile_locale().

Here is the caller graph for this function:

static int locale_alphabet_data_size ( ALPHABET_DATA a)
static
static int locale_alphabet_data_to_buf ( ALPHABET_DATA a,
char *  buf 
)
static
int locale_check_and_set_default_files ( LOCALE_FILE lf,
bool  is_lang_init 
)
static int locale_check_and_set_shared_data ( const LOC_SHARED_DATA_TYPE  lsd_type,
const char *  lsd_key,
const void *  data,
LDML_CONTEXT ldml_context,
LOC_SHARED_DATA **  found_entry 
)
static
static int locale_check_collation_id ( const COLL_TAILORING coll_tail)
static
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:

static int locale_compute_locale_checksum ( LOCALE_DATA ld)
static

Definition at line 7634 of file locale_support.c.

References locale_data::alphabet, locale_data::am_pm, locale_data::am_pm_parse_order, assert, BUF_PUT_INT32, unicode_mapping::buffer, text_conversion::byte_flag, locale_data::checksum, text_conversion::conv_type, unicode_mapping::cp, crypt_md5_buffer_hex(), locale_data::dateFormat, locale_data::datetimeFormat, locale_data::datetimetzFormat, locale_data::day_names_abbr_parse_order, locale_data::day_names_abbreviated, locale_data::day_names_wide, locale_data::day_names_wide_parse_order, locale_data::default_currency_code, unicode_normalization::do_not_save, ER_LOC_GEN, locale_data::identif_alphabet, unicode_normalization::list_full_decomp, locale_alphabet_data_size(), locale_alphabet_data_to_buf(), LOG_LOCALE_ERROR, MAX_UNICODE_CHARS, locale_data::month_names_abbr_parse_order, locale_data::month_names_abbreviated, locale_data::month_names_wide, locale_data::month_names_wide_parse_order, text_conversion::nl_lang_str, NO_ERROR, NULL, locale_data::number_decimal_sym, locale_data::number_group_sym, unicode_mapping::size, strlen, TEXT_CONV_GENERIC_1BYTE, TEXT_CONV_GENERIC_2BYTE, text_conversion::text_first_cp, text_conversion::text_last_cp, text_conversion::text_to_utf8, locale_data::timeFormat, locale_data::timestampFormat, locale_data::timestamptzFormat, locale_data::timetzFormat, locale_data::txt_conv, unicode_normalization::unicode_mapping_index, unicode_normalization::unicode_mappings, unicode_normalization::unicode_mappings_count, locale_data::unicode_normalization, text_conversion::utf8_first_cp, text_conversion::utf8_last_cp, text_conversion::utf8_to_text, and text_conversion::win_codepages.

Referenced by locale_compile_locale().

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:

static void locale_destroy_collation_data ( const COLL_DATA cd)
static
static void locale_destroy_console_conversion ( const TEXT_CONVERSION tc)
static

Definition at line 4520 of file locale_support.c.

References assert, text_conversion::nl_lang_str, NULL, text_conversion::text_to_utf8, text_conversion::utf8_to_text, and text_conversion::win_codepages.

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:

static int locale_save_alphabets_to_C_file ( FILE *  fp,
LOCALE_DATA ld 
)
static
static int locale_save_one_alphabet_to_C_file ( FILE *  fp,
ALPHABET_DATA a,
bool  save_w_identier_name,
const char *  alpha_suffix 
)
static
static CUBRID_TAILOR_RULE * new_collation_cubrid_rule ( LOCALE_DATA ld)
static
static TAILOR_RULE * new_collation_rule ( LOCALE_DATA ld)
static
static LOCALE_COLLATION * new_locale_collation ( LOCALE_DATA ld)
static
static TRANSFORM_RULE * new_transform_rule ( LOCALE_DATA ld)
static
static void print_debug_data_content ( void *  data,
const char *  msg,
const int  status 
)
static
static void print_debug_end_el ( void *  data,
const char *  msg,
const int  status 
)
static
static void print_debug_start_el ( void *  data,
const char **  attrs,
const char *  msg,
const int  status 
)
static
static int save_contraction_to_C_file ( FILE *  fp,
COLL_CONTRACTION c,
bool  use_expansion,
bool  use_level_4 
)
static
static int start_calendar ( void *  data,
const char **  attr 
)
static

Definition at line 926 of file locale_support.c.

References PRINT_DEBUG_START, and xml_check_att_value().

static int start_calendar_name_context ( void *  data,
const char **  attr 
)
static

Definition at line 1214 of file locale_support.c.

References assert, NULL, PRINT_DEBUG_START, xml_check_att_value(), and XML_USER_DATA.

static int start_collation_cubrid_rule ( void *  data,
const char **  attr 
)
static
static int start_collation_logical_pos ( void *  data,
const char **  attr 
)
static

Definition at line 2948 of file locale_support.c.

References assert, NULL, PRINT_DEBUG_START, and XML_USER_DATA.

static int start_collations ( void *  data,
const char **  attr 
)
static
static int start_day ( void *  data,
const char **  attr 
)
static

Definition at line 1411 of file locale_support.c.

References assert, CAL_DAY_COUNT, locale_data::curr_period, i, ldml_ref_day_names, NULL, PRINT_DEBUG_START, xml_get_att_value(), and XML_USER_DATA.

Referenced by db_months_between().

Here is the caller graph for this function:

static int start_dayPeriod ( void *  data,
const char **  attr 
)
static
static int start_dayPeriodWidth ( void *  data,
const char **  attr 
)
static

Definition at line 1522 of file locale_support.c.

References PRINT_DEBUG_START, and xml_check_att_value().

static int start_element_ok ( void *  data,
const char **  attr 
)
static

Definition at line 890 of file locale_support.c.

References PRINT_DEBUG_START.

static int start_lower_case_rule ( void *  data,
const char **  attr 
)
static
static int start_month ( void *  data,
const char **  attr 
)
static

Definition at line 1307 of file locale_support.c.

References assert, CAL_MONTH_COUNT, locale_data::curr_period, NULL, PRINT_DEBUG_START, xml_get_att_value(), and XML_USER_DATA.

Referenced by db_months_between().

Here is the caller graph for this function:

static int start_month_day_Width ( void *  data,
const char **  attr 
)
static
static int start_numbers_symbols ( void *  data,
const char **  attr 
)
static

Definition at line 1637 of file locale_support.c.

References assert, NULL, PRINT_DEBUG_START, xml_check_att_value(), and XML_USER_DATA.

static int start_unicode_file ( void *  data,
const char **  attr 
)
static
static int start_upper_case_rule ( void *  data,
const char **  attr 
)
static
static int str_pop_token ( char *  str_p,
char **  token_p,
char **  next_p 
)
static

Definition at line 5899 of file locale_support.c.

References assert, char_isspace(), ER_LOC_INIT, LOG_LOCALE_ERROR, NO_ERROR, NULL, and p.

Referenced by locale_get_cfg_locales().

Here is the caller graph for this function:

Variable Documentation

int alloced_shared_data = 0
static

Definition at line 94 of file locale_support.c.

Referenced by locale_check_and_set_shared_data(), and locale_free_shared_data().

char* cmp_token_name_array = NULL
static
char cmp_token_name_size = 0
static
int count_shared_data = 0
static

Definition at line 93 of file locale_support.c.

Referenced by locale_check_and_set_shared_data(), and locale_free_shared_data().

COLL_DATA* dump_coll_data = NULL
static

Definition at line 330 of file locale_support.c.

Referenced by comp_func_coll_uca_exp(), and comp_func_coll_uca_simple_weights().

XML_ELEMENT_DEF ldml_datetimeFormatCUBRID
Initial value:
= { "ldml dates calendars calendar datetimeFormatCUBRID", 5,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_datetimeFormatCUBRID(void *data, const char *el_name)
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 366 of file locale_support.c.

XML_ELEMENT_DEF ldml_datetimetzFormatCUBRID
Initial value:
= { "ldml dates calendars calendar datetimetzFormatCUBRID", 5,
}
static int end_datetimetzFormatCUBRID(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 383 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_alphabet
Initial value:
= { "ldml alphabets alphabet", 3, (ELEM_START_FUNC) (&start_one_alphabet),
}
static int start_one_alphabet(void *data, const char **attr)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 732 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_alphabet_lower
Initial value:
= { "ldml alphabets alphabet l", 4,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
#define NULL
Definition: freelistheap.h:34
static int end_case_rule(void *data, const char *el_name)
static int start_lower_case_rule(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 751 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_alphabet_lower_dest
Initial value:
=
{ "ldml alphabets alphabet l d", 5, (ELEM_START_FUNC) (&start_element_ok),
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int end_transform_buffer(void *data, const char *el_name)

Definition at line 761 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_alphabet_lower_src
Initial value:
=
{ "ldml alphabets alphabet l s", 5, (ELEM_START_FUNC) (&start_element_ok),
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int end_transform_buffer(void *data, const char *el_name)

Definition at line 756 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_alphabet_upper
Initial value:
= { "ldml alphabets alphabet u", 4,
}
static int start_upper_case_rule(void *data, const char **attr)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
#define NULL
Definition: freelistheap.h:34
static int end_case_rule(void *data, const char *el_name)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 736 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_alphabet_upper_dest
Initial value:
=
{ "ldml alphabets alphabet u d", 5, (ELEM_START_FUNC) (&start_element_ok),
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int end_transform_buffer(void *data, const char *el_name)

Definition at line 746 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_alphabet_upper_src
Initial value:
=
{ "ldml alphabets alphabet u s", 5, (ELEM_START_FUNC) (&start_element_ok),
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int end_transform_buffer(void *data, const char *el_name)

Definition at line 741 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_alphabets
Initial value:
= { "ldml alphabets", 2, (ELEM_START_FUNC) (&start_element_ok),
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
static int start_element_ok(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 722 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_calendar
Initial value:
= { "ldml dates calendars calendar", 4, (ELEM_START_FUNC) (&start_calendar),
}
static int start_calendar(void *data, const char **attr)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 352 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_calendars
Initial value:
= { "ldml dates calendars", 3, (ELEM_START_FUNC) (&start_element_ok),
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
static int start_element_ok(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 348 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation
Initial value:
= { "ldml collations collation", 3, (ELEM_START_FUNC) (&start_one_collation),
}
static int start_one_collation(void *data, const char **attr)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_one_collation(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 489 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules
Initial value:
= {
"ldml collations collation cubridrules", 4,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
static int start_element_ok(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 663 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules_set
Initial value:
= { "ldml collations collation cubridrules set", 5,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_collation_cubrid_rule_set(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
static int start_collation_cubrid_rule(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 669 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules_set_ch
Initial value:
= { "ldml collations collation cubridrules set ch", 6,
}
static int end_collation_cubrid_rule_set_cp_ch(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 674 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules_set_cp
Initial value:
= { "ldml collations collation cubridrules set cp", 6,
}
static int end_collation_cubrid_rule_set_cp_ch(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 692 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules_set_ech
Initial value:
= { "ldml collations collation cubridrules set ech", 6,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_collation_cubrid_rule_set_ech_ecp(void *data, const char *el_name)
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 686 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules_set_ecp
Initial value:
= { "ldml collations collation cubridrules set ecp", 6,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_collation_cubrid_rule_set_ech_ecp(void *data, const char *el_name)
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 704 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules_set_sch
Initial value:
= { "ldml collations collation cubridrules set sch", 6,
}
static int end_collation_cubrid_rule_set_cp_ch(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 680 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules_set_scp
Initial value:
= { "ldml collations collation cubridrules set scp", 6,
}
static int end_collation_cubrid_rule_set_cp_ch(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 698 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules_set_w
Initial value:
= { "ldml collations collation cubridrules set w", 6,
}
static int end_collation_cubrid_rule_set_w_wr(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 710 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_cubrid_rules_set_wr
Initial value:
= { "ldml collations collation cubridrules set wr", 6,
}
static int end_collation_cubrid_rule_set_w_wr(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int start_collation_cubrid_rule_set_wr(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 716 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_i
Initial value:
= { "ldml collations collation rules i", 5,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data_collation_rule(void *data, const char *s, int len)
static int start_collation_rule(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int end_collation_rule(void *data, const char *el_name)

Definition at line 526 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_ic
Initial value:
= { "ldml collations collation rules ic", 5,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data_collation_rule(void *data, const char *s, int len)
static int start_collation_rule(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int end_collation_rule(void *data, const char *el_name)

Definition at line 550 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_p
Initial value:
= { "ldml collations collation rules p", 5,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data_collation_rule(void *data, const char *s, int len)
static int start_collation_rule(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int end_collation_rule(void *data, const char *el_name)

Definition at line 508 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_pc
Initial value:
= { "ldml collations collation rules pc", 5,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data_collation_rule(void *data, const char *s, int len)
static int start_collation_rule(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int end_collation_rule(void *data, const char *el_name)

Definition at line 532 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_reset
Initial value:
= { "ldml collations collation rules reset", 5,
}
static int start_collation_reset(void *data, const char **attr)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_collation_reset(void *data, const char *el_name)
static int handle_data(void *data, const char *s, int len)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 503 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_reset_first_non_ignorable
Initial value:
=
{ "ldml collations collation rules reset first_non_ignorable", 6,
}
static int end_collation_logical_pos(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
#define NULL
Definition: freelistheap.h:34
static int start_collation_logical_pos(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 641 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_reset_first_primary_ignorable
Initial value:
=
{ "ldml collations collation rules reset first_primary_ignorable", 6,
}
static int end_collation_logical_pos(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
#define NULL
Definition: freelistheap.h:34
static int start_collation_logical_pos(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 605 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_reset_first_secondary_ignorable
Initial value:
=
{ "ldml collations collation rules reset first_secondary_ignorable", 6,
}
static int end_collation_logical_pos(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
#define NULL
Definition: freelistheap.h:34
static int start_collation_logical_pos(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 617 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_reset_first_tertiary_ignorable
Initial value:
=
{ "ldml collations collation rules reset first_tertiary_ignorable", 6,
}
static int end_collation_logical_pos(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
#define NULL
Definition: freelistheap.h:34
static int start_collation_logical_pos(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 629 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_reset_first_trailing
Initial value:
= { "ldml collations collation rules reset first_trailing", 6,
}
static int end_collation_logical_pos(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
#define NULL
Definition: freelistheap.h:34
static int start_collation_logical_pos(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 653 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_reset_first_variable
Initial value:
= { "ldml collations collation rules reset first_variable", 6,
}
static int end_collation_logical_pos(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
#define NULL
Definition: freelistheap.h:34
static int start_collation_logical_pos(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 595 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_reset_last_non_ignorable
Initial value:
=
{ "ldml collations collation rules reset last_non_ignorable", 6,
}
static int end_collation_logical_pos(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
#define NULL
Definition: freelistheap.h:34
static int start_collation_logical_pos(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 647 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_reset_last_primary_ignorable
Initial value:
=
{ "ldml collations collation rules reset last_primary_ignorable", 6,
}
static int end_collation_logical_pos(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
#define NULL
Definition: freelistheap.h:34
static int start_collation_logical_pos(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 611 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_reset_last_secondary_ignorable
Initial value:
=
{ "ldml collations collation rules reset last_secondary_ignorable", 6,
}
static int end_collation_logical_pos(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
#define NULL
Definition: freelistheap.h:34
static int start_collation_logical_pos(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 623 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_reset_last_tertiary_ignorable
Initial value:
=
{ "ldml collations collation rules reset last_tertiary_ignorable", 6,
}
static int end_collation_logical_pos(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
#define NULL
Definition: freelistheap.h:34
static int start_collation_logical_pos(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 635 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_reset_last_trailing
Initial value:
= { "ldml collations collation rules reset last_trailing", 6,
}
static int end_collation_logical_pos(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
#define NULL
Definition: freelistheap.h:34
static int start_collation_logical_pos(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 658 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_reset_last_variable
Initial value:
= { "ldml collations collation rules reset last_variable", 6,
}
static int end_collation_logical_pos(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
#define NULL
Definition: freelistheap.h:34
static int start_collation_logical_pos(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 600 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_rules
Initial value:
= { "ldml collations collation rules", 4,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
static int start_element_ok(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 493 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_s
Initial value:
= { "ldml collations collation rules s", 5,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data_collation_rule(void *data, const char *s, int len)
static int start_collation_rule(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int end_collation_rule(void *data, const char *el_name)

Definition at line 514 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_sc
Initial value:
= { "ldml collations collation rules sc", 5,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data_collation_rule(void *data, const char *s, int len)
static int start_collation_rule(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int end_collation_rule(void *data, const char *el_name)

Definition at line 538 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_settings
Initial value:
= { "ldml collations collation settings", 4,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
static int start_collation_settings(void *data, const char **attr)
#define NULL
Definition: freelistheap.h:34
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 498 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_t
Initial value:
= { "ldml collations collation rules t", 5,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data_collation_rule(void *data, const char *s, int len)
static int start_collation_rule(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int end_collation_rule(void *data, const char *el_name)

Definition at line 520 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_tc
Initial value:
= { "ldml collations collation rules tc", 5,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data_collation_rule(void *data, const char *s, int len)
static int start_collation_rule(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int end_collation_rule(void *data, const char *el_name)

Definition at line 544 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_x
Initial value:
= { "ldml collations collation rules x", 5,
}
static int start_collation_x(void *data, const char **attr)
static int end_collation_x(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
#define NULL
Definition: freelistheap.h:34
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 556 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_x_context
Initial value:
= { "ldml collations collation rules x context", 6,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int end_collation_x_context(void *data, const char *el_name)

Definition at line 590 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_x_extend
Initial value:
= { "ldml collations collation rules x extend", 6,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int end_collation_x_extend(void *data, const char *el_name)

Definition at line 585 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_x_i
Initial value:
= { "ldml collations collation rules x i", 6,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_collation_x_rule(void *data, const char *el_name)
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 579 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_x_p
Initial value:
= { "ldml collations collation rules x p", 6,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_collation_x_rule(void *data, const char *el_name)
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 561 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_x_s
Initial value:
= { "ldml collations collation rules x s", 6,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_collation_x_rule(void *data, const char *el_name)
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 567 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collation_x_t
Initial value:
= { "ldml collations collation rules x t", 6,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_collation_x_rule(void *data, const char *el_name)
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 573 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_collations
Initial value:
= { "ldml collations", 2, (ELEM_START_FUNC) (&start_collations),
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int start_collations(void *data, const char **attr)

Definition at line 485 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_consoleconversion
Initial value:
=
{ "ldml consoleconversion", 2, (ELEM_START_FUNC) (&start_consoleconversion),
}
static int start_consoleconversion(void *data, const char **attr)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 770 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_currencies
Initial value:
= { "ldml numbers currencies", 3, (ELEM_START_FUNC) (&start_element_ok),
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
static int start_element_ok(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 476 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_currency
Initial value:
= { "ldml numbers currencies currency", 4,
}
static int start_currency(void *data, const char **attr)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 480 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_dateFormatCUBRID
Initial value:
= { "ldml dates calendars calendar dateFormatCUBRID", 5,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_dateFormatCUBRID(void *data, const char *el_name)
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 356 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_dates
Initial value:
= { "ldml dates", 2, (ELEM_START_FUNC) (&start_element_ok),
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
static int start_element_ok(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 344 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_day
Initial value:
= { "ldml dates calendars calendar days dayContext dayWidth day", 8,
}
static int end_day(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int start_day(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 430 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_dayContext
Initial value:
= { "ldml dates calendars calendar days dayContext", 6,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int start_calendar_name_context(void *data, const char **attr)

Definition at line 420 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_dayPeriod
Initial value:
= {
"ldml dates calendars calendar dayPeriods dayPeriodContext dayPeriodWidth dayPeriod",
8,
}
static int end_dayPeriod(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int start_dayPeriod(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 453 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_dayPeriodContext
Initial value:
= { "ldml dates calendars calendar dayPeriods dayPeriodContext", 6,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int start_calendar_name_context(void *data, const char **attr)

Definition at line 440 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_dayPeriods
Initial value:
= { "ldml dates calendars calendar dayPeriods", 5,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
static int start_element_ok(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 435 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_dayPeriodWidth
Initial value:
= {
"ldml dates calendars calendar dayPeriods dayPeriodContext dayPeriodWidth",
7,
}
static int start_dayPeriodWidth(void *data, const char **attr)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 445 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_days
Initial value:
= { "ldml dates calendars calendar days", 5,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
static int start_element_ok(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 415 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_dayWidth
Initial value:
= { "ldml dates calendars calendar days dayContext dayWidth", 7,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_month_day_Width(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int start_month_day_Width(void *data, const char **attr)

Definition at line 425 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_include_collation
Initial value:
= { "ldml collations include", 3,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
static int start_include_collation(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 726 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_ldml
Initial value:
= { "ldml", 1, (ELEM_START_FUNC) (&start_element_ok),
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
static int start_element_ok(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 340 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_month
Initial value:
= { "ldml dates calendars calendar months monthContext monthWidth month", 8,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int start_month(void *data, const char **attr)
static int handle_data(void *data, const char *s, int len)
static int end_month(void *data, const char *el_name)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 410 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_monthContext
Initial value:
= { "ldml dates calendars calendar months monthContext", 6,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int start_calendar_name_context(void *data, const char **attr)

Definition at line 400 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_months
Initial value:
= { "ldml dates calendars calendar months", 5,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
static int start_element_ok(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 395 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_monthWidth
Initial value:
= { "ldml dates calendars calendar months monthContext monthWidth", 7,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_month_day_Width(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int start_month_day_Width(void *data, const char **attr)

Definition at line 405 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_numbers
Initial value:
= { "ldml numbers", 2, (ELEM_START_FUNC) (&start_element_ok),
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
static int start_element_ok(void *data, const char **attr)
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 460 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_numbers_symbols
Initial value:
= { "ldml numbers symbols", 3, (ELEM_START_FUNC) (&start_numbers_symbols),
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int start_numbers_symbols(void *data, const char **attr)
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 464 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_symbol_decimal
Initial value:
= { "ldml numbers symbols decimal", 4, (ELEM_START_FUNC) (&start_element_ok),
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int end_number_symbol(void *data, const char *el_name)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 468 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_symbol_group
Initial value:
= { "ldml numbers symbols group", 4, (ELEM_START_FUNC) (&start_element_ok),
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int end_number_symbol(void *data, const char *el_name)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 472 of file locale_support.c.

XML_ELEMENT_DEF ldml_elem_unicodefile
Initial value:
= { "ldml unicodefile", 2, (ELEM_START_FUNC) (&start_unicode_file),
}
static int start_unicode_file(void *data, const char **attr)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_element_ok(void *data, const char *el_name)
#define NULL
Definition: freelistheap.h:34
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 766 of file locale_support.c.

XML_ELEMENT_DEF* ldml_elements[]

Definition at line 779 of file locale_support.c.

const char* ldml_ref_am_pm_names[]
Initial value:
= { "am", "pm", "Am", "Pm", "AM", "PM",
"a.m.", "p.m.", "A.m.", "P.m.", "A.M.", "P.M."
}

Definition at line 61 of file locale_support.c.

Referenced by start_dayPeriod().

const char* ldml_ref_day_names[] = { "sun", "mon", "tue", "wed", "thu", "fri", "sat" }

Definition at line 58 of file locale_support.c.

Referenced by start_day().

XML_ELEMENT_DEF ldml_timeFormatCUBRID
Initial value:
= { "ldml dates calendars calendar timeFormatCUBRID", 5,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70
static int end_timeFormatCUBRID(void *data, const char *el_name)

Definition at line 361 of file locale_support.c.

XML_ELEMENT_DEF ldml_timestampFormatCUBRID
Initial value:
= { "ldml dates calendars calendar timestampFormatCUBRID", 5,
}
static int end_timestampFormatCUBRID(void *data, const char *el_name)
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 371 of file locale_support.c.

XML_ELEMENT_DEF ldml_timestamptzFormatCUBRID
Initial value:
= { "ldml dates calendars calendar timestamptzFormatCUBRID", 5,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_timestamptzFormatCUBRID(void *data, const char *el_name)
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 389 of file locale_support.c.

XML_ELEMENT_DEF ldml_timetzFormatCUBRID
Initial value:
= { "ldml dates calendars calendar timetzFormatCUBRID", 5,
}
int(* ELEM_START_FUNC)(void *, const char **)
Definition: xml_parser.h:60
static int end_timetzFormatCUBRID(void *data, const char *el_name)
static int handle_data(void *data, const char *s, int len)
static int start_element_ok(void *data, const char **attr)
int(* ELEM_DATA_FUNC)(void *, const char *, int)
Definition: xml_parser.h:81
int(* ELEM_END_FUNC)(void *, const char *)
Definition: xml_parser.h:70

Definition at line 377 of file locale_support.c.

LOC_SHARED_DATA* shared_data = NULL
static

Definition at line 92 of file locale_support.c.