File intl_support.h¶
FileList > base > intl_support.h
Go to the source code of this file
#include <stdlib.h>#include <string.h>#include <locale.h>#include <limits.h>#include <assert.h>#include "dbtype_def.h"#include "locale_support.h"
Public Types¶
| Type | Name |
|---|---|
| typedef enum currency_check_mode | CURRENCY_CHECK_MODE |
| typedef enum intl_builtin_lang | INTL_BUILTIN_LANG |
| typedef enum intl_codeset | INTL_CODESET |
| typedef unsigned int | INTL_LANG |
| typedef enum intl_utf8_validity | INTL_UTF8_VALIDITY |
| typedef enum intl_zone | INTL_ZONE |
| enum | currency_check_mode |
| enum | intl_builtin_lang |
| enum | intl_codeset |
| enum | intl_utf8_validity |
| enum | intl_zone |
Public Attributes¶
| Type | Name |
|---|---|
| const unsigned char *const | intl_Len_utf8_char |
| bool | intl_Mbs_support |
| bool | intl_String_validation |
Public Functions¶
Macros¶
| Type | Name |
|---|---|
| define | INTL_CAN_COERCE_CS (cs_from, cs_to) [**true**](broker__monitor_8c.md#function-timeout) |
| define | INTL_CAN_STEAL_CS (cs_from, cs_to) (([**cs\_from**](broker__monitor_8c.md#function-timeout)) == ([**cs\_to**](broker__monitor_8c.md#function-timeout)) \|\| ([**cs\_to**](broker__monitor_8c.md#function-timeout)) == INTL\_CODESET\_RAW\_BYTES) |
| define | INTL_CODESET_MULT (codeset) /* multi line expression */ |
| define | INTL_GET_NEXTCHAR_UTF8 (c, l) /* multi line expression */ |
| define | INTL_NEXTCHAR_UTF8 (c) ([**unsigned**](broker__monitor_8c.md#function-timeout) [**char**](broker__monitor_8c.md#function-timeout)\*)((c) + [**intl\_Len\_utf8\_char**](intl__support_8c.md#variable-intl_len_utf8_char)[\*([**unsigned**](broker__monitor_8c.md#function-timeout) [**char**](broker__monitor_8c.md#function-timeout)\*)(c)]) |
| define | INTL_NEXT_CHAR (ptr, s, codeset, current_char_size) /* multi line expression */ |
| define | MB_LEN_MAX 1 |
| define | WEOF ([**wint\_t**](broker__monitor_8c.md#function-timeout))(-1) |
Public Types Documentation¶
typedef CURRENCY_CHECK_MODE¶
typedef INTL_BUILTIN_LANG¶
typedef INTL_CODESET¶
typedef INTL_LANG¶
typedef INTL_UTF8_VALIDITY¶
typedef INTL_ZONE¶
enum currency_check_mode¶
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_builtin_lang¶
enum intl_builtin_lang {
INTL_LANG_ENGLISH = 0,
INTL_LANG_KOREAN,
INTL_LANG_TURKISH,
INTL_LANG_USER_DEF_START
};
enum intl_codeset¶
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
};
enum intl_utf8_validity¶
enum intl_zone¶
Public Attributes Documentation¶
variable intl_Len_utf8_char¶
variable intl_Mbs_support¶
variable intl_String_validation¶
Public Functions Documentation¶
function intl_back_utf8_to_cp¶
unsigned int intl_back_utf8_to_cp (
const unsigned char * utf8_start,
const unsigned char * utf8_last,
unsigned char ** last_byte__prev_char
)
function intl_backskip_spaces¶
const char * intl_backskip_spaces (
const char * str_begin,
const char * str_end,
const INTL_CODESET codeset
)
function intl_binary_to_euckr¶
void intl_binary_to_euckr (
const unsigned char * in_buf,
const int in_size,
unsigned char ** out_buf,
int * out_size
)
function intl_binary_to_utf8¶
void intl_binary_to_utf8 (
const unsigned char * in_buf,
const int in_size,
unsigned char ** out_buf,
int * out_size
)
function intl_case_match_tok¶
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
)
function intl_char_count¶
int intl_char_count (
const unsigned char * src,
int length_in_bytes,
INTL_CODESET src_codeset,
int * char_count
)
function intl_char_size¶
int intl_char_size (
const unsigned char * src,
int length_in_chars,
INTL_CODESET src_codeset,
int * byte_count
)
function intl_char_size_pseudo_kor¶
int intl_char_size_pseudo_kor (
const unsigned char * src,
int length_in_chars,
INTL_CODESET src_codeset,
int * byte_count
)
function intl_check_euckr¶
function intl_check_string¶
INTL_UTF8_VALIDITY intl_check_string (
const char * buf,
int size,
char ** pos,
const INTL_CODESET codeset
)
function intl_check_utf8¶
function intl_cmp_char¶
int intl_cmp_char (
const unsigned char * s1,
const unsigned char * s2,
INTL_CODESET codeset,
int * char_size
)
function intl_cmp_char_pseudo_kor¶
int intl_cmp_char_pseudo_kor (
const unsigned char * s1,
const unsigned char * s2,
INTL_CODESET codeset,
int * char_size
)
function intl_convert_charset¶
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
)
function intl_count_utf8_chars¶
function intl_cp_to_dbcs¶
int intl_cp_to_dbcs (
const unsigned int codepoint,
const unsigned char * byte_flag,
unsigned char * seq
)
function intl_cp_to_utf8¶
function intl_dbcs_to_cp¶
unsigned int intl_dbcs_to_cp (
const unsigned char * seq,
const int size,
const unsigned char * byte_flag,
unsigned char ** next_char
)
function intl_euckr_to_iso88591¶
int intl_euckr_to_iso88591 (
const unsigned char * in_buf,
const int in_size,
unsigned char ** out_buf,
int * out_size
)
function intl_euckr_to_utf8¶
int intl_euckr_to_utf8 (
const unsigned char * in_buf,
const int in_size,
unsigned char ** out_buf,
int * out_size
)
function intl_fast_iso88591_to_utf8¶
int intl_fast_iso88591_to_utf8 (
const unsigned char * in_buf,
const int in_size,
unsigned char ** out_buf,
int * out_size
)
function intl_get_currency_symbol_position¶
function intl_get_money_ISO88591_symbol¶
function intl_get_money_ISO_symbol¶
function intl_get_money_UTF8_symbol¶
function intl_get_money_esc_ISO_symbol¶
function intl_get_money_symbol¶
function intl_get_money_symbol_console¶
function intl_get_money_symbol_grammar¶
function intl_identifier_casecmp¶
function intl_identifier_casecmp_for_dblink¶
int intl_identifier_casecmp_for_dblink (
const char * dblink_col_name,
const char * remote_col_name
)
function intl_identifier_casecmp_w_size¶
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
)
function intl_identifier_cmp¶
function intl_identifier_fix¶
function intl_identifier_lower¶
function intl_identifier_lower_string_size¶
function intl_identifier_mht_1strlowerhash¶
function intl_identifier_namecmp¶
function intl_identifier_ncasecmp¶
function intl_identifier_upper¶
function intl_identifier_upper_string_size¶
function intl_is_currency_symbol¶
bool intl_is_currency_symbol (
const char * src,
DB_CURRENCY * currency,
int * symbol_size,
const CURRENCY_CHECK_MODE check_mode
)
function intl_is_max_bound_chr¶
function intl_is_min_bound_chr¶
function intl_is_space¶
bool intl_is_space (
const char * str,
const char * str_end,
const INTL_CODESET codeset,
int * space_size
)
function intl_iso88591_to_euckr¶
int intl_iso88591_to_euckr (
const unsigned char * in_buf,
const int in_size,
unsigned char ** out_buf,
int * out_size
)
function intl_iso88591_to_utf8¶
int intl_iso88591_to_utf8 (
const unsigned char * in_buf,
const int in_size,
unsigned char ** out_buf,
int * out_size
)
function intl_language¶
function intl_lower_string¶
int intl_lower_string (
const ALPHABET_DATA * alphabet,
const unsigned char * src,
unsigned char * dst,
int length_in_chars
)
function intl_lower_string_size¶
int intl_lower_string_size (
const ALPHABET_DATA * alphabet,
const unsigned char * src,
int src_size,
int src_length
)
function intl_mbs_casecmp¶
function intl_mbs_chr¶
function intl_mbs_cmp¶
function intl_mbs_len¶
function intl_mbs_lower¶
function intl_mbs_namecmp¶
function intl_mbs_ncasecmp¶
function intl_mbs_ncpy¶
function intl_mbs_nlower¶
function intl_mbs_nth¶
function intl_mbs_spn¶
function intl_mbs_upper¶
function intl_next_char¶
const unsigned char * intl_next_char (
const unsigned char * s,
INTL_CODESET codeset,
int * current_char_size
)
function intl_next_char_pseudo_kor¶
unsigned char * intl_next_char_pseudo_kor (
const unsigned char * s,
INTL_CODESET codeset,
int * current_char_size
)
function intl_nextchar_euc¶
function intl_nextchar_utf8¶
function intl_pad_char¶
function intl_pad_size¶
function intl_prev_char¶
const unsigned char * intl_prev_char (
const unsigned char * s,
const unsigned char * s_start,
INTL_CODESET codeset,
int * prev_char_size
)
function intl_prev_char_pseudo_kor¶
unsigned char * intl_prev_char_pseudo_kor (
const unsigned char * s,
const unsigned char * s_start,
INTL_CODESET codeset,
int * prev_char_size
)
function intl_prevchar_euc¶
const unsigned char * intl_prevchar_euc (
const unsigned char * s,
const unsigned char * s_start,
int * prev_length
)
function intl_prevchar_utf8¶
const unsigned char * intl_prevchar_utf8 (
const unsigned char * s,
const unsigned char * s_start,
int * prev_length
)
function intl_put_char¶
int intl_put_char (
unsigned char * dest,
const unsigned char * char_p,
const INTL_CODESET codeset
)
function intl_reverse_string¶
int intl_reverse_string (
const unsigned char * src,
unsigned char * dst,
int length_in_chars,
int size_in_bytes,
INTL_CODESET codeset
)
function intl_set_max_bound_chr¶
function intl_set_min_bound_chr¶
function intl_skip_spaces¶
const char * intl_skip_spaces (
const char * str,
const char * str_end,
const INTL_CODESET codeset
)
function intl_strncat¶
function intl_text_dbcs_to_utf8¶
int intl_text_dbcs_to_utf8 (
const char * in_buf,
const int in_size,
char ** out_buf,
int * out_size
)
function intl_text_dbcs_to_utf8_ext¶
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
)
function intl_text_single_byte_to_utf8¶
int intl_text_single_byte_to_utf8 (
const char * in_buf,
const int in_size,
char ** out_buf,
int * out_size
)
function intl_text_single_byte_to_utf8_ext¶
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
)
function intl_text_utf8_to_dbcs¶
int intl_text_utf8_to_dbcs (
const char * in_buf,
const int in_size,
char ** out_buf,
int * out_size
)
function intl_text_utf8_to_single_byte¶
int intl_text_utf8_to_single_byte (
const char * in_buf,
const int in_size,
char ** out_buf,
int * out_size
)
function intl_tolower_iso8859¶
function intl_toupper_iso8859¶
function intl_upper_string¶
int intl_upper_string (
const ALPHABET_DATA * alphabet,
const unsigned char * src,
unsigned char * dst,
int length_in_chars
)
function intl_upper_string_size¶
int intl_upper_string_size (
const ALPHABET_DATA * alphabet,
const unsigned char * src,
int src_size,
int src_length
)
function intl_utf8_to_cp¶
unsigned int intl_utf8_to_cp (
const unsigned char * utf8,
const int size,
unsigned char ** next_char
)
function intl_utf8_to_cp_list¶
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
)
function intl_utf8_to_euckr¶
int intl_utf8_to_euckr (
const unsigned char * in_buf,
const int in_size,
unsigned char ** out_buf,
int * out_size
)
function intl_utf8_to_iso88591¶
int intl_utf8_to_iso88591 (
const unsigned char * in_buf,
const int in_size,
unsigned char ** out_buf,
int * out_size
)
function intl_zone¶
Macro Definition Documentation¶
define INTL_CAN_COERCE_CS¶
define INTL_CAN_STEAL_CS¶
#define INTL_CAN_STEAL_CS (
cs_from,
cs_to
) `(( cs_from ) == ( cs_to ) || ( cs_to ) == INTL_CODESET_RAW_BYTES )`
define INTL_CODESET_MULT¶
define INTL_GET_NEXTCHAR_UTF8¶
define INTL_NEXTCHAR_UTF8¶
#define INTL_NEXTCHAR_UTF8 (
c
) `( unsigned char *)((c) + intl_Len_utf8_char [*( unsigned char *)(c)])`
define INTL_NEXT_CHAR¶
define MB_LEN_MAX¶
define WEOF¶
The documentation for this class was generated from the following file cubrid/src/base/intl_support.h