CUBRID Engine
latest
|
#include <stdlib.h>
#include <string.h>
#include <locale.h>
#include <limits.h>
#include <assert.h>
#include "dbtype_def.h"
#include "locale_support.h"
Go to the source code of this file.
Macros | |
#define | MB_LEN_MAX 1 |
#define | WEOF (wint_t)(-1) |
#define | INTL_NEXTCHAR_UTF8(c) (unsigned char*)((c) + intl_Len_utf8_char[*(unsigned char*)(c)]) |
#define | INTL_GET_NEXTCHAR_UTF8(c, l) |
#define | INTL_CODESET_MULT(codeset) |
#define | INTL_CAN_STEAL_CS(cs_from, cs_to) ((cs_from) == (cs_to) || (cs_to) == INTL_CODESET_RAW_BYTES) |
#define | INTL_CAN_COERCE_CS(cs_from, cs_to) true |
#define | INTL_NEXT_CHAR(ptr, s, codeset, current_char_size) |
Typedefs | |
typedef unsigned int | INTL_LANG |
typedef enum intl_builtin_lang | INTL_BUILTIN_LANG |
typedef enum intl_zone | INTL_ZONE |
typedef enum currency_check_mode | CURRENCY_CHECK_MODE |
typedef enum intl_utf8_validity | INTL_UTF8_VALIDITY |
typedef enum intl_codeset | INTL_CODESET |
Enumerations | |
enum | intl_builtin_lang { INTL_LANG_ENGLISH = 0, INTL_LANG_KOREAN, INTL_LANG_TURKISH, INTL_LANG_USER_DEF_START } |
enum | intl_zone { INTL_ZONE_US, INTL_ZONE_KR, INTL_ZONE_GB, INTL_ZONE_TR } |
enum | currency_check_mode { CURRENCY_CHECK_MODE_NONE = 0, CURRENCY_CHECK_MODE_CONSOLE = 0x1, CURRENCY_CHECK_MODE_UTF8 = 0x2, CURRENCY_CHECK_MODE_GRAMMAR = 0x4, CURRENCY_CHECK_MODE_ISO = 0x8, CURRENCY_CHECK_MODE_ESC_ISO = 0x10, CURRENCY_CHECK_MODE_ISO88591 = 0x16 } |
enum | intl_utf8_validity { INTL_UTF8_VALID, INTL_UTF8_INVALID, INTL_UTF8_TRUNCATED } |
enum | intl_codeset { INTL_CODESET_ERROR = -2, INTL_CODESET_NONE = -1, INTL_CODESET_ASCII, INTL_CODESET_RAW_BITS, INTL_CODESET_RAW_BYTES, INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_UTF8, INTL_CODESET_BINARY = INTL_CODESET_RAW_BYTES, INTL_CODESET_LAST = INTL_CODESET_UTF8 } |
Functions | |
int | intl_char_count (const unsigned char *src, int length_in_bytes, INTL_CODESET src_codeset, int *char_count) |
int | intl_char_size (const unsigned char *src, int length_in_chars, INTL_CODESET src_codeset, int *byte_count) |
int | intl_tolower_iso8859 (unsigned char *s, int length) |
int | intl_toupper_iso8859 (unsigned char *s, int length) |
const unsigned char * | intl_nextchar_euc (const unsigned char *s, int *curr_length) |
const unsigned char * | intl_prevchar_euc (const unsigned char *s, const unsigned char *s_start, int *prev_length) |
const unsigned char * | intl_nextchar_utf8 (const unsigned char *s, int *curr_length) |
const unsigned char * | intl_prevchar_utf8 (const unsigned char *s, const unsigned char *s_start, int *prev_length) |
INTL_ZONE | intl_zone (int category) |
int | intl_convert_charset (const unsigned char *src, int length_in_chars, INTL_CODESET src_codeset, unsigned char *dest, INTL_CODESET dest_codeset, int *unconverted) |
const unsigned char * | intl_prev_char (const unsigned char *s, const unsigned char *s_start, INTL_CODESET codeset, int *prev_char_size) |
const unsigned char * | intl_next_char (const unsigned char *s, INTL_CODESET codeset, int *current_char_size) |
int | intl_cmp_char (const unsigned char *s1, const unsigned char *s2, INTL_CODESET codeset, int *char_size) |
void | intl_pad_char (const INTL_CODESET codeset, unsigned char *pad_char, int *pad_size) |
int | intl_pad_size (INTL_CODESET codeset) |
int | intl_upper_string_size (const ALPHABET_DATA *alphabet, const unsigned char *src, int src_size, int src_length) |
int | intl_upper_string (const ALPHABET_DATA *alphabet, const unsigned char *src, unsigned char *dst, int length_in_chars) |
int | intl_lower_string_size (const ALPHABET_DATA *alphabet, const unsigned char *src, int src_size, int src_length) |
int | intl_lower_string (const ALPHABET_DATA *alphabet, const unsigned char *src, unsigned char *dst, int length_in_chars) |
int | intl_reverse_string (const unsigned char *src, unsigned char *dst, int length_in_chars, int size_in_bytes, INTL_CODESET codeset) |
bool | intl_is_max_bound_chr (INTL_CODESET codeset, const unsigned char *chr) |
bool | intl_is_min_bound_chr (INTL_CODESET codeset, const unsigned char *chr) |
int | intl_set_min_bound_chr (INTL_CODESET codeset, char *chr) |
int | intl_set_max_bound_chr (INTL_CODESET codeset, char *chr) |
int | intl_identifier_casecmp_w_size (const INTL_LANG lang_id, unsigned char *str1, unsigned char *str2, const int size_str1, const int size_str2) |
int | intl_case_match_tok (const INTL_LANG lang_id, const INTL_CODESET codeset, unsigned char *tok, unsigned char *src, const int size_tok, const int size_src, int *matched_size_src) |
int | intl_identifier_casecmp (const char *str1, const char *str2) |
int | intl_identifier_ncasecmp (const char *str1, const char *str2, const int len) |
int | intl_identifier_cmp (const char *str1, const char *str2) |
int | intl_identifier_namecmp (const char *str1, const char *str2) |
int | intl_identifier_lower_string_size (const char *src) |
int | intl_identifier_lower (const char *src, char *dst) |
int | intl_identifier_upper_string_size (const char *src) |
int | intl_identifier_upper (const char *src, char *dst) |
int | intl_identifier_fix (char *name, int ident_max_size, bool error_on_case_overflow) |
unsigned int | intl_identifier_mht_1strlowerhash (const void *key, const unsigned int ht_size) |
int | intl_put_char (unsigned char *dest, const unsigned char *char_p, const INTL_CODESET codeset) |
bool | intl_is_space (const char *str, const char *str_end, const INTL_CODESET codeset, int *space_size) |
const char * | intl_skip_spaces (const char *str, const char *str_end, const INTL_CODESET codeset) |
const char * | intl_backskip_spaces (const char *str_begin, const char *str_end, const INTL_CODESET codeset) |
char * | intl_mbs_chr (const char *mbs, wchar_t the_char) |
int | intl_mbs_spn (const char *mbs, const wchar_t *chars) |
int | intl_mbs_len (const char *mbs) |
const char * | intl_mbs_nth (const char *mbs, size_t n) |
char * | intl_mbs_ncpy (char *mbs1, const char *mbs2, size_t n) |
int | intl_mbs_casecmp (const char *mbs1, const char *mbs2) |
int | intl_mbs_ncasecmp (const char *mbs1, const char *mbs2, size_t n) |
INTL_UTF8_VALIDITY | intl_check_string (const char *buf, int size, char **pos, const INTL_CODESET codeset) |
bool | intl_is_bom_magic (const char *buf, const int size) |
int | intl_cp_to_utf8 (const unsigned int codepoint, unsigned char *utf8_seq) |
int | intl_cp_to_dbcs (const unsigned int codepoint, const unsigned char *byte_flag, unsigned char *seq) |
unsigned int | intl_utf8_to_cp (const unsigned char *utf8, const int size, unsigned char **next_char) |
unsigned int | intl_back_utf8_to_cp (const unsigned char *utf8_start, const unsigned char *utf8_last, unsigned char **last_byte__prev_char) |
unsigned int | intl_dbcs_to_cp (const unsigned char *seq, const int size, const unsigned char *byte_flag, unsigned char **next_char) |
int | intl_utf8_to_cp_list (const unsigned char *utf8, const int size, unsigned int *cp_array, const int max_array_size, int *array_count) |
int | intl_text_single_byte_to_utf8 (const char *in_buf, const int in_size, char **out_buf, int *out_size) |
int | intl_text_single_byte_to_utf8_ext (void *txt_conv, const unsigned char *in_buf, const int in_size, unsigned char **out_buf, int *out_size) |
int | intl_text_utf8_to_single_byte (const char *in_buf, const int in_size, char **out_buf, int *out_size) |
int | intl_text_dbcs_to_utf8 (const char *in_buf, const int in_size, char **out_buf, int *out_size) |
int | intl_text_dbcs_to_utf8_ext (void *t, const unsigned char *in_buf, const int in_size, unsigned char **out_buf, int *out_size) |
int | intl_text_utf8_to_dbcs (const char *in_buf, const int in_size, char **out_buf, int *out_size) |
int | intl_fast_iso88591_to_utf8 (const unsigned char *in_buf, const int in_size, unsigned char **out_buf, int *out_size) |
int | intl_euckr_to_iso88591 (const unsigned char *in_buf, const int in_size, unsigned char **out_buf, int *out_size) |
int | intl_euckr_to_utf8 (const unsigned char *in_buf, const int in_size, unsigned char **out_buf, int *out_size) |
int | intl_utf8_to_euckr (const unsigned char *in_buf, const int in_size, unsigned char **out_buf, int *out_size) |
int | intl_iso88591_to_utf8 (const unsigned char *in_buf, const int in_size, unsigned char **out_buf, int *out_size) |
int | intl_iso88591_to_euckr (const unsigned char *in_buf, const int in_size, unsigned char **out_buf, int *out_size) |
bool | intl_is_currency_symbol (const char *src, DB_CURRENCY *currency, int *symbol_size, const CURRENCY_CHECK_MODE check_mode) |
char * | intl_get_money_symbol (const DB_CURRENCY currency, INTL_CODESET codeset) |
char * | intl_get_money_ISO_symbol (const DB_CURRENCY currency) |
char * | intl_get_money_esc_ISO_symbol (const DB_CURRENCY currency) |
char * | intl_get_money_symbol_console (const DB_CURRENCY currency) |
char * | intl_get_money_symbol_grammar (const DB_CURRENCY currency) |
char * | intl_get_money_UTF8_symbol (const DB_CURRENCY currency) |
char * | intl_get_money_ISO88591_symbol (const DB_CURRENCY currency) |
int | intl_get_currency_symbol_position (const DB_CURRENCY currency) |
int | intl_count_utf8_chars (const unsigned char *s, int length_in_bytes) |
INTL_UTF8_VALIDITY | intl_check_utf8 (const unsigned char *buf, int size, char **pos) |
INTL_UTF8_VALIDITY | intl_check_euckr (const unsigned char *buf, int size, char **pos) |
int | intl_utf8_to_iso88591 (const unsigned char *in_buf, const int in_size, unsigned char **out_buf, int *out_size) |
void | intl_binary_to_utf8 (const unsigned char *in_buf, const int in_size, unsigned char **out_buf, int *out_size) |
void | intl_binary_to_euckr (const unsigned char *in_buf, const int in_size, unsigned char **out_buf, int *out_size) |
Variables | |
bool | intl_Mbs_support |
bool | intl_String_validation |
const unsigned char *const | intl_Len_utf8_char |
#define INTL_CAN_COERCE_CS | ( | cs_from, | |
cs_to | |||
) | true |
Definition at line 97 of file intl_support.h.
Referenced by build_att_coll_change_map(), db_char_string_coerce(), pt_common_collation(), pt_is_compatible_without_cast(), and pt_node_to_enumeration_expr().
#define INTL_CAN_STEAL_CS | ( | cs_from, | |
cs_to | |||
) | ((cs_from) == (cs_to) || (cs_to) == INTL_CODESET_RAW_BYTES) |
Definition at line 87 of file intl_support.h.
Referenced by tp_can_steal_string().
#define INTL_CODESET_MULT | ( | codeset | ) |
Definition at line 77 of file intl_support.h.
Referenced by boot_add_charsets(), cublocale::convert_to_wstring(), date_to_char(), db_get_like_optimization_bounds(), intl_identifier_fix(), qstr_coerce(), and qstr_grow_string().
#define INTL_GET_NEXTCHAR_UTF8 | ( | c, | |
l | |||
) |
Definition at line 71 of file intl_support.h.
Referenced by intl_identifier_mht_1strlowerhash(), and intl_nextchar_utf8().
#define INTL_NEXT_CHAR | ( | ptr, | |
s, | |||
codeset, | |||
current_char_size | |||
) |
Definition at line 99 of file intl_support.h.
Referenced by get_next_format(), intl_identifier_fix(), qstr_eval_like(), qstr_position(), and qstr_replace().
#define INTL_NEXTCHAR_UTF8 | ( | c | ) | (unsigned char*)((c) + intl_Len_utf8_char[*(unsigned char*)(c)]) |
Definition at line 67 of file intl_support.h.
#define MB_LEN_MAX 1 |
Definition at line 53 of file intl_support.h.
Referenced by cnv_bad_char(), co_conversion_spec(), co_signal(), co_signalv(), fmt_date_string(), fmt_minute_value(), fmt_time_string(), fmt_time_value(), fmt_timestamp_string(), fmt_timestamp_value(), intl_mbs_casecmp(), intl_mbs_chr(), intl_mbs_len(), intl_mbs_ncasecmp(), intl_mbs_ncpy(), intl_mbs_spn(), ko_date_string(), ko_time_string(), ko_time_value(), us_date_string(), us_time_string(), and us_time_value().
#define WEOF (wint_t)(-1) |
Definition at line 57 of file intl_support.h.
typedef enum currency_check_mode CURRENCY_CHECK_MODE |
Definition at line 162 of file intl_support.h.
typedef enum intl_builtin_lang INTL_BUILTIN_LANG |
Definition at line 141 of file intl_support.h.
typedef enum intl_codeset INTL_CODESET |
Definition at line 190 of file intl_support.h.
typedef unsigned int INTL_LANG |
Definition at line 132 of file intl_support.h.
typedef enum intl_utf8_validity INTL_UTF8_VALIDITY |
Definition at line 170 of file intl_support.h.
Definition at line 150 of file intl_support.h.
enum currency_check_mode |
Enumerator | |
---|---|
CURRENCY_CHECK_MODE_NONE | |
CURRENCY_CHECK_MODE_CONSOLE | |
CURRENCY_CHECK_MODE_UTF8 | |
CURRENCY_CHECK_MODE_GRAMMAR | |
CURRENCY_CHECK_MODE_ISO | |
CURRENCY_CHECK_MODE_ESC_ISO | |
CURRENCY_CHECK_MODE_ISO88591 |
Definition at line 152 of file intl_support.h.
enum intl_builtin_lang |
Enumerator | |
---|---|
INTL_LANG_ENGLISH | |
INTL_LANG_KOREAN | |
INTL_LANG_TURKISH | |
INTL_LANG_USER_DEF_START |
Definition at line 134 of file intl_support.h.
enum intl_codeset |
Definition at line 175 of file intl_support.h.
enum intl_utf8_validity |
Enumerator | |
---|---|
INTL_UTF8_VALID | |
INTL_UTF8_INVALID | |
INTL_UTF8_TRUNCATED |
Definition at line 164 of file intl_support.h.
enum intl_zone |
Enumerator | |
---|---|
INTL_ZONE_US | |
INTL_ZONE_KR | |
INTL_ZONE_GB | |
INTL_ZONE_TR |
Definition at line 143 of file intl_support.h.
unsigned int intl_back_utf8_to_cp | ( | const unsigned char * | utf8_start, |
const unsigned char * | utf8_last, | ||
unsigned char ** | last_byte__prev_char | ||
) |
Definition at line 3773 of file intl_support.c.
References assert, INTL_UTF8_MAX_CHAR_SIZE, intl_utf8_to_cp(), and NULL.
Referenced by lang_back_strmatch_utf8_uca_w_level(), and lang_get_uca_back_weight_l13().
const char* intl_backskip_spaces | ( | const char * | str_begin, |
const char * | str_end, | ||
const INTL_CODESET | codeset | ||
) |
Definition at line 3572 of file intl_support.c.
References assert, char_isspace(), INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, and NULL.
Referenced by db_to_date(), db_to_datetime(), db_to_number(), db_to_time(), and db_to_timestamp().
void intl_binary_to_euckr | ( | const unsigned char * | in_buf, |
const int | in_size, | ||
unsigned char ** | out_buf, | ||
int * | out_size | ||
) |
Definition at line 6140 of file intl_support.c.
References CAST_STRLEN, NULL, p, SS3, and UTF8_BYTE_IN_RANGE.
Referenced by qstr_coerce().
void intl_binary_to_utf8 | ( | const unsigned char * | in_buf, |
const int | in_size, | ||
unsigned char ** | out_buf, | ||
int * | out_size | ||
) |
Definition at line 5834 of file intl_support.c.
References assert, CAST_STRLEN, NULL, p, and UTF8_BYTE_IN_RANGE.
Referenced by cublocale::convert_to_wstring(), and qstr_coerce().
int intl_case_match_tok | ( | const INTL_LANG | lang_id, |
const INTL_CODESET | codeset, | ||
unsigned char * | tok, | ||
unsigned char * | src, | ||
const int | size_tok, | ||
const int | size_src, | ||
int * | matched_size_src | ||
) |
Definition at line 2455 of file intl_support.c.
References lang_locale_data::alphabet, assert, CAST_STRLEN, char_tolower_iso8859(), INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_UTF8, intl_strcasecmp_utf8_one_cp(), intl_utf8_to_cp(), lang_get_specific_locale(), and NULL.
Referenced by db_to_date(), db_to_datetime(), db_to_time(), db_to_timestamp(), and get_string_date_token_id().
int intl_char_count | ( | const unsigned char * | src, |
int | length_in_bytes, | ||
INTL_CODESET | src_codeset, | ||
int * | char_count | ||
) |
Definition at line 983 of file intl_support.c.
References assert, INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, intl_count_euc_chars(), and intl_count_utf8_chars().
Referenced by bind_value_print(), coerce_char_to_dbvalue(), db_compress_like_pattern(), db_get_like_optimization_bounds(), db_get_string_length(), db_string_instr(), db_string_like(), db_string_limit_size_string(), db_string_lower(), db_string_upper(), db_string_value(), intl_identifier_lower_string_size(), intl_identifier_upper_string_size(), intl_mbs_ncpy(), ldr_str_db_char(), ldr_str_db_varchar(), netval_to_dbval(), print_string_date_token(), pt_check_enum_data_type(), qo_rewrite_one_like_term(), qstr_replace(), cubload::to_db_generic_char(), and transfer_string().
int intl_char_size | ( | const unsigned char * | src, |
int | length_in_chars, | ||
INTL_CODESET | src_codeset, | ||
int * | byte_count | ||
) |
Definition at line 1022 of file intl_support.c.
References assert, INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, intl_count_euc_bytes(), intl_count_utf8_bytes(), prm_get_bool_value(), and SS3.
Referenced by db_get_next_like_pattern_character(), db_string_convert_to(), db_string_instr(), db_string_limit_size_string(), db_string_repeat(), db_string_substring(), db_string_truncate(), intl_identifier_ncasecmp(), intl_lower_string(), intl_strcasecmp_utf8_one_cp(), intl_tolower_utf8(), intl_toupper_utf8(), intl_upper_string(), lang_next_alpha_char_ko(), ldr_str_db_char(), ldr_str_db_varchar(), mr_data_lengthval_nchar(), mr_getmem_char(), mr_getmem_nchar(), mr_lengthval_varnchar_internal(), mr_readval_char_internal(), mr_readval_nchar_internal(), mr_writeval_nchar_internal(), mr_writeval_varnchar_internal(), print_string_date_token(), qstr_coerce(), qstr_concatenate(), qstr_grow_string(), qstr_pad(), qstr_substring(), qstr_translate(), cubload::to_db_generic_char(), transfer_string(), trim_leading(), and varchar_truncated().
INTL_UTF8_VALIDITY intl_check_euckr | ( | const unsigned char * | buf, |
int | size, | ||
char ** | pos | ||
) |
Definition at line 4199 of file intl_support.c.
References INTL_UTF8_INVALID, INTL_UTF8_TRUNCATED, INTL_UTF8_VALID, NULL, OUTPUT, p, SS3, strlen, and UTF8_BYTE_IN_RANGE.
Referenced by db_string_chr(), and intl_check_string().
INTL_UTF8_VALIDITY intl_check_string | ( | const char * | buf, |
int | size, | ||
char ** | pos, | ||
const INTL_CODESET | codeset | ||
) |
Definition at line 4276 of file intl_support.c.
References intl_check_euckr(), intl_check_utf8(), INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, intl_String_validation, and INTL_UTF8_VALID.
Referenced by cubload::semantic_helper::is_utf8_valid(), jsp_unpack_string_value(), and netval_to_dbval().
INTL_UTF8_VALIDITY intl_check_utf8 | ( | const unsigned char * | buf, |
int | size, | ||
char ** | pos | ||
) |
Definition at line 3911 of file intl_support.c.
References assert, INTL_UTF8_INVALID, INTL_UTF8_TRUNCATED, INTL_UTF8_VALID, NULL, OUTPUT, p, strlen, and UTF8_BYTE_IN_RANGE.
Referenced by db_string_chr(), and intl_check_string().
int intl_cmp_char | ( | const unsigned char * | s1, |
const unsigned char * | s2, | ||
INTL_CODESET | codeset, | ||
int * | char_size | ||
) |
Definition at line 1304 of file intl_support.c.
References assert, INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, intl_Len_utf8_char, intl_nextchar_euc(), prm_get_bool_value(), and SS3.
Referenced by db_get_next_like_pattern_character(), lang_back_strmatch_utf8_uca_w_level(), lang_strmatch_utf8_uca_w_level(), and qstr_eval_like().
int intl_convert_charset | ( | const unsigned char * | src, |
int | length_in_chars, | ||
INTL_CODESET | src_codeset, | ||
unsigned char * | dest, | ||
INTL_CODESET | dest_codeset, | ||
int * | unconverted | ||
) |
Definition at line 953 of file intl_support.c.
References ER_QSTR_BAD_SRC_CODESET, INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, and NO_ERROR.
Referenced by db_string_convert_to(), mr_data_lengthval_nchar(), mr_lengthval_varnchar_internal(), mr_readval_nchar_internal(), mr_readval_varnchar_internal(), mr_writeval_nchar_internal(), and mr_writeval_varnchar_internal().
int intl_count_utf8_chars | ( | const unsigned char * | s, |
int | length_in_bytes | ||
) |
Definition at line 2167 of file intl_support.c.
References assert, intl_nextchar_utf8(), and NULL.
Referenced by intl_char_count(), intl_identifier_lower(), intl_identifier_upper(), and read_cp_from_tag().
int intl_cp_to_dbcs | ( | const unsigned int | codepoint, |
const unsigned char * | byte_flag, | ||
unsigned char * | seq | ||
) |
Definition at line 3672 of file intl_support.c.
Referenced by dump_console_conversion(), and load_console_conv_data().
int intl_cp_to_utf8 | ( | const unsigned int | codepoint, |
unsigned char * | utf8_seq | ||
) |
Definition at line 3621 of file intl_support.c.
Referenced by add_opt_coll_contraction(), comp_func_coll_uca_exp(), dump_collation_codepoint(), dump_console_conversion(), dump_locale_alphabet(), intl_char_tolower_utf8(), intl_char_toupper_utf8(), intl_euckr_to_utf8(), intl_identifier_lower_string_size(), intl_identifier_upper_string_size(), intl_init_conv_iso8859_1_to_utf8(), intl_init_conv_iso8859_9_to_utf8(), lang_next_coll_char_utf8(), lang_next_coll_seq_utf8_w_contr(), load_console_conv_data(), locale_compile_locale(), unicode_compose_string(), and unicode_make_normalization_data().
unsigned int intl_dbcs_to_cp | ( | const unsigned char * | seq, |
const int | size, | ||
const unsigned char * | byte_flag, | ||
unsigned char ** | next_char | ||
) |
Definition at line 3820 of file intl_support.c.
Referenced by dump_console_conversion(), and intl_text_dbcs_to_utf8_ext().
int intl_euckr_to_iso88591 | ( | const unsigned char * | in_buf, |
const int | in_size, | ||
unsigned char ** | out_buf, | ||
int * | out_size | ||
) |
Definition at line 4942 of file intl_support.c.
References assert, CAST_STRLEN, jisx0212_mbtowc(), ksc5601_mbtowc(), and NULL.
Referenced by qstr_coerce().
int intl_euckr_to_utf8 | ( | const unsigned char * | in_buf, |
const int | in_size, | ||
unsigned char ** | out_buf, | ||
int * | out_size | ||
) |
Definition at line 5062 of file intl_support.c.
References assert, CAST_STRLEN, intl_cp_to_utf8(), jisx0212_mbtowc(), ksc5601_mbtowc(), and NULL.
Referenced by cublocale::convert_to_wstring(), and qstr_coerce().
int intl_fast_iso88591_to_utf8 | ( | const unsigned char * | in_buf, |
const int | in_size, | ||
unsigned char ** | out_buf, | ||
int * | out_size | ||
) |
Definition at line 4893 of file intl_support.c.
References assert, CAST_STRLEN, and NULL.
Referenced by cublocale::convert_to_wstring(), and qstr_coerce().
int intl_get_currency_symbol_position | ( | const DB_CURRENCY | currency | ) |
Definition at line 5738 of file intl_support.c.
References DB_CURRENCY_TL.
Referenced by csql_db_value_as_string().
char* intl_get_money_esc_ISO_symbol | ( | const DB_CURRENCY | currency | ) |
Definition at line 5771 of file intl_support.c.
References DB_CURRENCY_NULL, and moneysymbols_esc_iso_codes.
Referenced by db_value_printer::describe_money(), fprint_special_strings(), cubload::sa_object_loader::process_line(), cubload::server_object_loader::process_monetary_constant(), and pt_print_value().
char* intl_get_money_ISO88591_symbol | ( | const DB_CURRENCY | currency | ) |
Definition at line 5803 of file intl_support.c.
References DB_CURRENCY_NULL, and moneysymbols_iso88591_codes.
Referenced by intl_get_money_symbol().
char* intl_get_money_ISO_symbol | ( | const DB_CURRENCY | currency | ) |
Definition at line 5755 of file intl_support.c.
References DB_CURRENCY_NULL, and moneysymbols_iso_codes.
Referenced by locale_dump().
char* intl_get_money_symbol | ( | const DB_CURRENCY | currency, |
INTL_CODESET | codeset | ||
) |
Definition at line 5683 of file intl_support.c.
References INTL_CODESET_ISO88591, INTL_CODESET_UTF8, intl_get_money_ISO88591_symbol(), intl_get_money_symbol_console(), and intl_get_money_UTF8_symbol().
Referenced by make_number_to_char().
char* intl_get_money_symbol_console | ( | const DB_CURRENCY | currency | ) |
Definition at line 5703 of file intl_support.c.
References DB_CURRENCY_NULL, and moneysymbols_console.
Referenced by csql_db_value_as_string(), intl_get_money_symbol(), and lang_currency_symbol().
char* intl_get_money_symbol_grammar | ( | const DB_CURRENCY | currency | ) |
Definition at line 5719 of file intl_support.c.
References DB_CURRENCY_NULL, and moneysymbols_grammar.
char* intl_get_money_UTF8_symbol | ( | const DB_CURRENCY | currency | ) |
Definition at line 5787 of file intl_support.c.
References DB_CURRENCY_NULL, and moneysymbols_utf8.
Referenced by intl_get_money_symbol().
Definition at line 2740 of file intl_support.c.
References assert, intl_identifier_casecmp_w_size(), lang_id(), NULL, and strlen.
Referenced by add_fk_info_result(), add_using_index(), btree_index_next_scan(), build_attr_change_map(), build_query_graph_function_index(), catcls_get_or_value_from_indexes(), classobj_complist_search(), classobj_find_attribute(), classobj_find_attribute_list(), classobj_find_class_constraint(), classobj_find_component(), classobj_find_constraint_by_attrs(), classobj_find_method(), do_add_attribute(), do_check_partitioned_class(), do_create_user(), do_reorganize_partition_pre(), get_att_default_from_def(), get_attribute_with_name(), heap_get_btid_from_index_name(), is_attr_not_in_insert_list(), is_pt_name_in_group_having(), ldr_act_check_missing_non_null_attrs(), lookup_seg(), mht_compare_identifiers_equal(), mq_check_using_index(), mq_fetch_expression_for_real_class_update(), mq_generate_unique(), mq_lambda_node(), natural_join_equal_attr(), parser_parse_file(), parser_parse_string_with_escapes(), pt_add_type_to_set(), pt_attr_refers_to_self(), pt_check_alter_partition(), pt_check_attribute_domain(), pt_check_isolation_lvl(), pt_check_partitions(), pt_coerce_value_internal(), pt_data_type_to_db_domain(), pt_in_lck_array(), pt_init_one_statement_parser(), pt_lookup_entity(), pt_mark_function_index_expression(), pt_name_equal(), pt_name_occurs_in_from_list(), pt_resolve_group_having_alias_pt_name(), pt_str_compare(), pt_vclass_compatible(), qo_find_index_segs(), qo_find_node_indexes(), qo_get_attr_info_func_index(), qo_rewrite_index_hints(), qo_validate_index_attr_notnull(), qo_validate_index_term_notnull(), query_get_column_with_name(), replace_names_alter_chg_attr(), session_add_variable(), session_create_prepared_statement(), session_delete_prepared_statement(), session_drop_variable(), session_get_prepared_statement(), session_get_variable(), sm_get_descriptor_component(), smt_add_attribute_to_list(), smt_add_constraint(), smt_check_foreign_key(), update_fk_ref_partitioned_class(), and update_locksets_for_multiple_rename().
int intl_identifier_casecmp_w_size | ( | const INTL_LANG | lang_id, |
unsigned char * | str1, | ||
unsigned char * | str2, | ||
const int | size_str1, | ||
const int | size_str2 | ||
) |
Definition at line 2346 of file intl_support.c.
References assert, CAST_STRLEN, char_tolower_iso8859(), lang_locale_data::ident_alphabet, INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_UTF8, intl_strcasecmp_utf8_one_cp(), intl_utf8_to_cp(), lang_charset(), lang_get_specific_locale(), and NULL.
Referenced by intl_identifier_casecmp(), intl_identifier_namecmp(), and intl_identifier_ncasecmp().
Definition at line 2785 of file intl_support.c.
Referenced by pt_str_compare().
int intl_identifier_fix | ( | char * | name, |
int | ident_max_size, | ||
bool | error_on_case_overflow | ||
) |
Definition at line 3125 of file intl_support.c.
References assert, DB_MAX_IDENTIFIER_LENGTH, ER_GENERIC_ERROR, INTL_CODESET_MULT, intl_identifier_lower_string_size(), intl_identifier_upper_string_size(), INTL_NEXT_CHAR, lang_charset(), NO_ERROR, NULL, and strlen.
Referenced by csql_help_schema(), and sm_default_constraint_name().
int intl_identifier_lower | ( | const char * | src, |
char * | dst | ||
) |
Definition at line 2913 of file intl_support.c.
References char_tolower(), char_tolower_iso8859(), lang_locale_data::ident_alphabet, INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_UTF8, intl_count_utf8_chars(), intl_tolower_utf8(), lang_charset(), lang_locale(), REINTERPRET_CAST, and strlen.
Referenced by catalog_get_cardinality_by_name(), do_create_partition(), do_create_serial(), do_get_serial_obj_id(), cubload::load_args::parse_ignore_class_file(), pt_make_query_describe_w_identifier(), pt_make_query_show_columns(), pt_make_query_show_create_view(), pt_make_query_show_index(), pt_print_name(), sc_set_current_schema(), sm_default_constraint_name(), sm_downcase_name(), sm_produce_constraint_name(), and cubload::server_class_installer::to_lowercase_identifier().
int intl_identifier_lower_string_size | ( | const char * | src | ) |
Definition at line 2837 of file intl_support.c.
References assert, CAST_STRLEN, lang_locale_data::ident_alphabet, intl_char_count(), INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, intl_cp_to_utf8(), INTL_UTF8_MAX_CHAR_SIZE, intl_utf8_to_cp(), alphabet_data::l_count, lang_charset(), lang_locale(), alphabet_data::lower_cp, alphabet_data::lower_multiplier, REINTERPRET_CAST, and strlen.
Referenced by do_create_serial(), do_get_serial_obj_id(), intl_identifier_fix(), ldr_act_init_context(), cubload::load_args::parse_ignore_class_file(), pt_print_name(), cubload::session::session(), sm_default_constraint_name(), sm_downcase_name(), sm_produce_constraint_name(), and cubload::server_class_installer::to_lowercase_identifier().
Definition at line 3221 of file intl_support.c.
References assert, CAST_STRLEN, char_isupper_iso8859(), char_tolower(), char_tolower_iso8859(), lang_locale_data::ident_alphabet, INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, INTL_GET_NEXTCHAR_UTF8, intl_utf8_to_cp(), alphabet_data::l_count, lang_charset(), lang_locale(), alphabet_data::lower_cp, alphabet_data::lower_multiplier, NULL, and strlen.
Referenced by pt_associate_label_with_value().
Definition at line 2803 of file intl_support.c.
References assert, intl_identifier_casecmp_w_size(), lang_id(), NULL, and strlen.
Definition at line 2765 of file intl_support.c.
References intl_char_size(), intl_identifier_casecmp_w_size(), lang_charset(), and lang_id().
Referenced by ansisql_strcasecmp(), and ldr_is_ignore_class().
int intl_identifier_upper | ( | const char * | src, |
char * | dst | ||
) |
Definition at line 3050 of file intl_support.c.
References char_toupper(), char_toupper_iso8859(), lang_locale_data::ident_alphabet, INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_UTF8, intl_count_utf8_chars(), intl_toupper_utf8(), lang_charset(), lang_locale(), REINTERPRET_CAST, and strlen.
Referenced by au_find_user(), au_find_user_to_drop(), au_make_user(), boot_initialize_client(), pt_make_query_show_grants(), ssession_find_or_create_session(), and xboot_register_client().
int intl_identifier_upper_string_size | ( | const char * | src | ) |
Definition at line 2973 of file intl_support.c.
References assert, CAST_STRLEN, lang_locale_data::ident_alphabet, intl_char_count(), INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, intl_cp_to_utf8(), INTL_UTF8_MAX_CHAR_SIZE, intl_utf8_to_cp(), alphabet_data::l_count, lang_charset(), lang_locale(), REINTERPRET_CAST, strlen, alphabet_data::upper_cp, and alphabet_data::upper_multiplier.
Referenced by au_add_user_method(), au_find_user(), au_find_user_to_drop(), au_make_user(), boot_initialize_client(), intl_identifier_fix(), and pt_check_create_user().
Definition at line 4310 of file intl_support.c.
Referenced by csql_edit_read_file(), and start_csql().
bool intl_is_currency_symbol | ( | const char * | src, |
DB_CURRENCY * | currency, | ||
int * | symbol_size, | ||
const CURRENCY_CHECK_MODE | check_mode | ||
) |
Definition at line 5573 of file intl_support.c.
References assert, CURRENCY_CHECK_MODE_CONSOLE, CURRENCY_CHECK_MODE_ESC_ISO, CURRENCY_CHECK_MODE_GRAMMAR, CURRENCY_CHECK_MODE_ISO, CURRENCY_CHECK_MODE_ISO88591, CURRENCY_CHECK_MODE_UTF8, DB_CURRENCY_NULL, moneysymbols_console, moneysymbols_esc_iso_codes, moneysymbols_grammar, moneysymbols_iso88591_codes, moneysymbols_iso_codes, moneysymbols_utf8, NULL, and strlen.
Referenced by ldr_monetary_elem(), make_number(), number_to_char(), start_currency(), and cubload::to_db_monetary().
bool intl_is_max_bound_chr | ( | INTL_CODESET | codeset, |
const unsigned char * | chr | ||
) |
Definition at line 1896 of file intl_support.c.
References INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, and INTL_CODESET_UTF8.
Referenced by is_safe_last_char_for_like_optimization().
bool intl_is_min_bound_chr | ( | INTL_CODESET | codeset, |
const unsigned char * | chr | ||
) |
Definition at line 1939 of file intl_support.c.
Referenced by is_safe_last_char_for_like_optimization().
bool intl_is_space | ( | const char * | str, |
const char * | str_end, | ||
const INTL_CODESET | codeset, | ||
int * | space_size | ||
) |
Definition at line 3403 of file intl_support.c.
References assert, char_isspace(), INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, and NULL.
Referenced by db_conv(), is_str_valid_number(), and numeric_coerce_string_to_num().
int intl_iso88591_to_euckr | ( | const unsigned char * | in_buf, |
const int | in_size, | ||
unsigned char ** | out_buf, | ||
int * | out_size | ||
) |
Definition at line 5308 of file intl_support.c.
References assert, CAST_STRLEN, jisx0212_wctomb(), ksc5601_wctomb(), NULL, and RET_ILUNI.
Referenced by qstr_coerce().
int intl_iso88591_to_utf8 | ( | const unsigned char * | in_buf, |
const int | in_size, | ||
unsigned char ** | out_buf, | ||
int * | out_size | ||
) |
int intl_lower_string | ( | const ALPHABET_DATA * | alphabet, |
const unsigned char * | src, | ||
unsigned char * | dst, | ||
int | length_in_chars | ||
) |
Definition at line 1676 of file intl_support.c.
References assert, char_tolower_iso8859(), alphabet_data::codeset, intl_char_size(), INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, INTL_LANG_ENGLISH, INTL_LANG_KOREAN, intl_tolower_euc(), intl_tolower_utf8(), LOCALE_KOREAN, NULL, and prm_get_bool_value().
Referenced by db_string_lower(), intl_mbs_ncpy(), and print_string_date_token().
int intl_lower_string_size | ( | const ALPHABET_DATA * | alphabet, |
const unsigned char * | src, | ||
int | src_size, | ||
int | src_length | ||
) |
Definition at line 1627 of file intl_support.c.
References assert, CAST_STRLEN, alphabet_data::codeset, intl_char_tolower_utf8(), INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, INTL_UTF8_MAX_CHAR_SIZE, and NULL.
Referenced by db_string_lower().
Definition at line 358 of file intl_support.c.
References assert, intl_Mbs_support, MB_LEN_MAX, and NULL.
Referenced by boot_parse_add_volume_extensions(), fileio_request_user_response(), intl_mbs_spn(), net_client_request_with_callback(), pp_generic_case_cmp(), pr_find_type(), prm_find(), prm_keyword(), prm_print(), pt_find_function_type(), sysprm_compare_values(), sysprm_generate_new_value(), sysprm_print_sysprm_value(), and tran_free_list_upto_savepoint().
char* intl_mbs_chr | ( | const char * | mbs, |
wchar_t | the_char | ||
) |
Definition at line 149 of file intl_support.c.
References assert, intl_Mbs_support, MB_LEN_MAX, and NULL.
Referenced by co_conversion_spec(), co_find_conversion(), extract_att_name(), extract_bt_idx(), ko_date_value(), and sm_expand_method_files().
int intl_mbs_len | ( | const char * | mbs | ) |
Definition at line 183 of file intl_support.c.
References assert, intl_Mbs_support, MB_LEN_MAX, NULL, and strlen.
Referenced by bfmt_print(), bifmt_numeric_value(), co_signal(), ffmt_value(), fileio_request_user_response(), fmt_fractional_digits(), fmt_fractional_value(), fmt_integral_digits(), ifmt_new(), mfmt_value(), and num_fmt_print().
Definition at line 441 of file intl_support.c.
References assert, intl_Mbs_support, MB_LEN_MAX, and NULL.
Referenced by intl_mbs_spn(), is_local_am_str(), is_local_pm_str(), make_cst_item_value(), pt_compile_trigger_stmt(), qo_plan_get_cost_fn(), and qo_plan_set_cost_fn().
char* intl_mbs_ncpy | ( | char * | mbs1, |
const char * | mbs2, | ||
size_t | n | ||
) |
Definition at line 489 of file intl_support.c.
References assert, char_tolower(), char_toupper(), i, intl_char_count(), intl_lower_string(), intl_Mbs_support, intl_upper_string(), lang_charset(), MB_LEN_MAX, NULL, and strlen.
Referenced by extract_att_name(), sysprm_make_default_values(), sysprm_obtain_parameters(), and sysprm_validate_change_parameters().
Definition at line 219 of file intl_support.c.
References assert, intl_Mbs_support, NULL, and strlen.
Referenced by co_find_conversion(), co_signal(), and fmt_fractional_value().
Definition at line 269 of file intl_support.c.
References assert, intl_mbs_casecmp(), intl_mbs_ncasecmp(), intl_Mbs_support, MB_LEN_MAX, NULL, and strlen.
Referenced by bifmt_numeric_value(), co_find_conversion(), and co_signal().
const unsigned char* intl_next_char | ( | const unsigned char * | s, |
INTL_CODESET | codeset, | ||
int * | current_char_size | ||
) |
Definition at line 1218 of file intl_support.c.
References assert, INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, intl_nextchar_euc(), intl_nextchar_utf8(), prm_get_bool_value(), and SS3.
Definition at line 777 of file intl_support.c.
References assert, IS_8BIT, NULL, and SS3.
Referenced by intl_cmp_char(), intl_count_euc_bytes(), intl_count_euc_chars(), intl_next_char(), intl_put_char(), lang_split_key_euckr(), and lang_strmatch_ko().
Definition at line 2039 of file intl_support.c.
References INTL_GET_NEXTCHAR_UTF8.
Referenced by intl_count_utf8_bytes(), intl_count_utf8_chars(), intl_next_char(), and intl_reverse_string().
void intl_pad_char | ( | const INTL_CODESET | codeset, |
unsigned char * | pad_char, | ||
int * | pad_size | ||
) |
Definition at line 1444 of file intl_support.c.
References assert, INTL_CODESET_ASCII, INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BITS, INTL_CODESET_RAW_BYTES, and INTL_CODESET_UTF8.
Referenced by db_ascii(), db_hex(), db_string_unique_prefix(), is_number(), mr_writeval_nchar_internal(), pt_check_enum_data_type(), qstr_coerce(), qstr_eval_like(), qstr_pad(), qstr_pad_string(), qstr_trim(), and varchar_truncated().
int intl_pad_size | ( | INTL_CODESET | codeset | ) |
Definition at line 1486 of file intl_support.c.
References INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, and INTL_CODESET_UTF8.
Referenced by print_string_date_token(), and transfer_string().
const unsigned char* intl_prev_char | ( | const unsigned char * | s, |
const unsigned char * | s_start, | ||
INTL_CODESET | codeset, | ||
int * | prev_char_size | ||
) |
Definition at line 1128 of file intl_support.c.
References assert, INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, intl_prevchar_euc(), intl_prevchar_utf8(), prm_get_bool_value(), and SS3.
Referenced by db_conv(), qstr_position(), and qstr_trim_trailing().
const unsigned char* intl_prevchar_euc | ( | const unsigned char * | s, |
const unsigned char * | s_start, | ||
int * | prev_length | ||
) |
Definition at line 806 of file intl_support.c.
References assert, IS_8BIT, NULL, and SS3.
Referenced by intl_prev_char().
const unsigned char* intl_prevchar_utf8 | ( | const unsigned char * | s, |
const unsigned char * | s_start, | ||
int * | prev_length | ||
) |
Definition at line 2054 of file intl_support.c.
Referenced by intl_prev_char().
int intl_put_char | ( | unsigned char * | dest, |
const unsigned char * | char_p, | ||
const INTL_CODESET | codeset | ||
) |
Definition at line 3350 of file intl_support.c.
References assert, INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, intl_Len_utf8_char, intl_nextchar_euc(), and NULL.
Referenced by db_compress_like_pattern(), and db_get_like_optimization_bounds().
int intl_reverse_string | ( | const unsigned char * | src, |
unsigned char * | dst, | ||
int | length_in_chars, | ||
int | size_in_bytes, | ||
INTL_CODESET | codeset | ||
) |
Definition at line 1802 of file intl_support.c.
References assert, i, INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, intl_nextchar_utf8(), IS_8BIT, NULL, and SS3.
Referenced by db_string_reverse().
int intl_set_max_bound_chr | ( | INTL_CODESET | codeset, |
char * | chr | ||
) |
Definition at line 1982 of file intl_support.c.
References INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, and INTL_CODESET_UTF8.
Referenced by db_get_like_optimization_bounds().
int intl_set_min_bound_chr | ( | INTL_CODESET | codeset, |
char * | chr | ||
) |
Definition at line 1960 of file intl_support.c.
Referenced by db_get_like_optimization_bounds().
const char* intl_skip_spaces | ( | const char * | str, |
const char * | str_end, | ||
const INTL_CODESET | codeset | ||
) |
Definition at line 3488 of file intl_support.c.
References assert, char_isspace(), INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, and NULL.
Referenced by cubload::to_db_generic_char(), tp_atobi(), tp_atof(), tp_digit_number_str_to_bi(), and tp_hex_str_to_bi().
int intl_text_dbcs_to_utf8 | ( | const char * | in_buf, |
const int | in_size, | ||
char ** | out_buf, | ||
int * | out_size | ||
) |
Definition at line 4664 of file intl_support.c.
References intl_text_dbcs_to_utf8_ext(), and lang_get_txt_conv().
Referenced by init_user_locales().
int intl_text_dbcs_to_utf8_ext | ( | void * | t, |
const unsigned char * | in_buf, | ||
const int | in_size, | ||
unsigned char ** | out_buf, | ||
int * | out_size | ||
) |
Definition at line 4684 of file intl_support.c.
References ARG_FILE_LINE, assert, text_conversion::byte_flag, conv_cp_to_bytes::bytes, CAST_STRLEN, ER_ERROR_SEVERITY, ER_GENERIC_ERROR, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), intl_dbcs_to_cp(), NO_ERROR, NULL, conv_cp_to_bytes::size, text_conversion::text_first_cp, text_conversion::text_last_cp, and text_conversion::text_to_utf8.
Referenced by dump_console_conversion(), and intl_text_dbcs_to_utf8().
int intl_text_single_byte_to_utf8 | ( | const char * | in_buf, |
const int | in_size, | ||
char ** | out_buf, | ||
int * | out_size | ||
) |
Definition at line 4344 of file intl_support.c.
References intl_text_single_byte_to_utf8_ext(), and lang_get_txt_conv().
Referenced by init_user_locales().
int intl_text_single_byte_to_utf8_ext | ( | void * | txt_conv, |
const unsigned char * | in_buf, | ||
const int | in_size, | ||
unsigned char ** | out_buf, | ||
int * | out_size | ||
) |
Definition at line 4364 of file intl_support.c.
References ARG_FILE_LINE, assert, conv_cp_to_bytes::bytes, CAST_STRLEN, ER_ERROR_SEVERITY, ER_GENERIC_ERROR, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), NO_ERROR, NULL, conv_cp_to_bytes::size, text_conversion::text_first_cp, text_conversion::text_last_cp, and text_conversion::text_to_utf8.
Referenced by dump_console_conversion(), and intl_text_single_byte_to_utf8().
int intl_text_utf8_to_dbcs | ( | const char * | in_buf, |
const int | in_size, | ||
char ** | out_buf, | ||
int * | out_size | ||
) |
Definition at line 4789 of file intl_support.c.
References ARG_FILE_LINE, assert, conv_cp_to_bytes::bytes, CAST_STRLEN, ER_ERROR_SEVERITY, ER_GENERIC_ERROR, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), intl_utf8_to_cp(), lang_get_txt_conv(), NO_ERROR, NULL, conv_cp_to_bytes::size, text_conversion::utf8_first_cp, text_conversion::utf8_last_cp, and text_conversion::utf8_to_text.
Referenced by init_user_locales().
int intl_text_utf8_to_single_byte | ( | const char * | in_buf, |
const int | in_size, | ||
char ** | out_buf, | ||
int * | out_size | ||
) |
Definition at line 4462 of file intl_support.c.
References ARG_FILE_LINE, assert, conv_cp_to_bytes::bytes, CAST_STRLEN, ER_ERROR_SEVERITY, ER_GENERIC_ERROR, ER_OUT_OF_VIRTUAL_MEMORY, er_set(), intl_utf8_to_cp(), lang_get_txt_conv(), NO_ERROR, NULL, conv_cp_to_bytes::size, text_conversion::utf8_first_cp, and text_conversion::utf8_to_text.
Referenced by init_user_locales().
int intl_tolower_iso8859 | ( | unsigned char * | s, |
int | length | ||
) |
Definition at line 721 of file intl_support.c.
References assert, CHAR_BYTE_TO_LOWER, char_isupper_iso8859(), and NULL.
Referenced by check_env_lang_val().
int intl_toupper_iso8859 | ( | unsigned char * | s, |
int | length | ||
) |
Definition at line 747 of file intl_support.c.
References assert, CHAR_BYTE_TO_UPPER, char_islower_iso8859(), and NULL.
Referenced by check_env_lang_val().
int intl_upper_string | ( | const ALPHABET_DATA * | alphabet, |
const unsigned char * | src, | ||
unsigned char * | dst, | ||
int | length_in_chars | ||
) |
Definition at line 1565 of file intl_support.c.
References assert, char_toupper_iso8859(), alphabet_data::codeset, intl_char_size(), INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, intl_toupper_euc(), intl_toupper_utf8(), and NULL.
Referenced by db_string_upper(), intl_mbs_ncpy(), and print_string_date_token().
int intl_upper_string_size | ( | const ALPHABET_DATA * | alphabet, |
const unsigned char * | src, | ||
int | src_size, | ||
int | src_length | ||
) |
Definition at line 1516 of file intl_support.c.
References assert, CAST_STRLEN, alphabet_data::codeset, intl_char_toupper_utf8(), INTL_CODESET_ISO88591, INTL_CODESET_KSC5601_EUC, INTL_CODESET_RAW_BYTES, INTL_CODESET_UTF8, INTL_UTF8_MAX_CHAR_SIZE, and NULL.
Referenced by db_string_upper().
unsigned int intl_utf8_to_cp | ( | const unsigned char * | utf8, |
const int | size, | ||
unsigned char ** | next_char | ||
) |
Definition at line 3715 of file intl_support.c.
Referenced by apply_tailoring_rules(), dump_console_conversion(), dump_unicode_mapping(), end_case_rule(), intl_back_utf8_to_cp(), intl_case_match_tok(), intl_char_tolower_utf8(), intl_char_toupper_utf8(), intl_identifier_casecmp_w_size(), intl_identifier_lower_string_size(), intl_identifier_mht_1strlowerhash(), intl_identifier_upper_string_size(), intl_text_utf8_to_dbcs(), intl_text_utf8_to_single_byte(), intl_utf8_to_cp_list(), intl_utf8_to_euckr(), intl_utf8_to_iso88591(), lang_get_uca_w_l13(), lang_get_uca_w_l4(), lang_get_w_first_el(), lang_mht2str_utf8(), lang_mht2str_utf8_exp(), lang_next_coll_char_utf8(), lang_next_coll_seq_utf8_w_contr(), lang_str_utf8_trail_zero_weights(), lang_strmatch_utf8(), lang_strmatch_utf8_w_contr(), optimize_coll_contractions(), read_cp_from_tag(), unicode_compose_string(), unicode_decompose_string(), and unicode_string_need_decompose().
int intl_utf8_to_cp_list | ( | const unsigned char * | utf8, |
const int | size, | ||
unsigned int * | cp_array, | ||
const int | max_array_size, | ||
int * | array_count | ||
) |
Definition at line 3851 of file intl_support.c.
References assert, CAST_STRLEN, i, intl_utf8_to_cp(), and NULL.
Referenced by apply_tailoring_rules(), dump_collation_contr(), intl_strcasecmp_utf8_one_cp(), and unicode_process_alphabet().
int intl_utf8_to_euckr | ( | const unsigned char * | in_buf, |
const int | in_size, | ||
unsigned char ** | out_buf, | ||
int * | out_size | ||
) |
Definition at line 5217 of file intl_support.c.
References assert, CAST_STRLEN, intl_utf8_to_cp(), jisx0212_wctomb(), ksc5601_wctomb(), NULL, and RET_ILUNI.
Referenced by cublocale::convert_to_string(), and qstr_coerce().
int intl_utf8_to_iso88591 | ( | const unsigned char * | in_buf, |
const int | in_size, | ||
unsigned char ** | out_buf, | ||
int * | out_size | ||
) |
Definition at line 5168 of file intl_support.c.
References assert, CAST_STRLEN, intl_utf8_to_cp(), and NULL.
Referenced by cublocale::convert_to_string(), and qstr_coerce().
Definition at line 1777 of file intl_support.c.
References INTL_LANG_ENGLISH, INTL_LANG_KOREAN, INTL_ZONE_KR, INTL_ZONE_US, and lang_id().
Definition at line 2029 of file intl_support.c.
Referenced by intl_cmp_char(), intl_put_char(), and lang_strmatch_utf8_w_contr().
bool intl_Mbs_support |
Definition at line 86 of file intl_support.c.
Referenced by intl_mbs_casecmp(), intl_mbs_chr(), intl_mbs_len(), intl_mbs_ncasecmp(), intl_mbs_ncpy(), intl_mbs_nth(), intl_mbs_spn(), and sysprm_load_and_init_internal().
bool intl_String_validation |
Definition at line 87 of file intl_support.c.
Referenced by intl_check_string(), and sysprm_load_and_init_internal().