Skip to content

File intl_support.c

FileList > base > intl_support.c

Go to the source code of this file

  • #include "config.h"
  • #include <assert.h>
  • #include <stdio.h>
  • #include <string.h>
  • #include <errno.h>
  • #include <locale.h>
  • #include <ctype.h>
  • #include <wctype.h>
  • #include "error_manager.h"
  • #include "intl_support.h"
  • #include "language_support.h"
  • #include "chartype.h"
  • #include "system_parameter.h"
  • #include "charset_converters.h"
  • #include "memory_wrapper.hpp"

Public Attributes

Type Name
TEXT_CONVERSION con_Iso_8859_1_conv = /* multi line expression */
TEXT_CONVERSION con_Iso_8859_9_conv = /* multi line expression */
const unsigned char *const intl_Len_utf8_char = [**len\_utf8\_char**](intl__support_8c.md#variable-len_utf8_char)
bool intl_Mbs_support = [**true**](broker__monitor_8c.md#function-timeout)
bool intl_String_validation = [**false**](broker__monitor_8c.md#function-timeout)

Public Static Attributes

Type Name
CONV_CP_TO_BYTES iso8859_1_To_utf8_conv
CONV_CP_TO_BYTES iso8859_9_To_utf8_conv
const unsigned char len_utf8_char = /* multi line expression */
char moneysymbols_console = /* multi line expression */
char moneysymbols_esc_iso_codes = /* multi line expression */
char moneysymbols_grammar = /* multi line expression */
char moneysymbols_iso88591_codes = /* multi line expression */
char moneysymbols_iso_codes = /* multi line expression */
char moneysymbols_utf8 = /* multi line expression */
CONV_CP_TO_BYTES utf8_Cp_to_iso_8859_9_conv

Public Functions

Type Name
unsigned int intl_back_utf8_to_cp (const unsigned char * utf8_start, const unsigned char * utf8_last, unsigned char ** last_byte__prev_char)
const char * intl_backskip_spaces (const char * str_begin, const char * str_end, const INTL_CODESET codeset)
void intl_binary_to_euckr (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)
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_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_char_size_pseudo_kor (const unsigned char * src, int length_in_chars, INTL_CODESET src_codeset, int * byte_count)
INTL_UTF8_VALIDITY intl_check_euckr (const unsigned char * buf, int size, char ** pos)
INTL_UTF8_VALIDITY intl_check_string (const char * buf, int size, char ** pos, const INTL_CODESET codeset)
INTL_UTF8_VALIDITY intl_check_utf8 (const unsigned char * buf, int size, char ** pos)
int intl_cmp_char (const unsigned char * s1, const unsigned char * s2, INTL_CODESET codeset, int * char_size)
int intl_cmp_char_pseudo_kor (const unsigned char * s1, const unsigned char * s2, INTL_CODESET codeset, int * char_size)
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)
int intl_count_utf8_chars (const unsigned char * s, int length_in_bytes)
int intl_cp_to_dbcs (const unsigned int codepoint, const unsigned char * byte_flag, unsigned char * seq)
int intl_cp_to_utf8 (const unsigned int codepoint, unsigned char * utf8_seq)
unsigned int intl_dbcs_to_cp (const unsigned char * seq, const int size, const unsigned char * byte_flag, unsigned char ** next_char)
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_fast_iso88591_to_utf8 (const unsigned char * in_buf, const int in_size, unsigned char ** out_buf, int * out_size)
int intl_get_currency_symbol_position (const DB_CURRENCY currency)
char * intl_get_money_ISO88591_symbol (const DB_CURRENCY currency)
char * intl_get_money_ISO_symbol (const DB_CURRENCY currency)
char * intl_get_money_UTF8_symbol (const DB_CURRENCY currency)
char * intl_get_money_esc_ISO_symbol (const DB_CURRENCY currency)
char * intl_get_money_symbol (const DB_CURRENCY currency, INTL_CODESET codeset)
char * intl_get_money_symbol_console (const DB_CURRENCY currency)
char * intl_get_money_symbol_grammar (const DB_CURRENCY currency)
int intl_identifier_casecmp (const char * str1, const char * str2)
int intl_identifier_casecmp_for_dblink (const char * dblink_col_name, const char * remote_col_name)
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_identifier_cmp (const char * str1, const char * str2)
int intl_identifier_fix (char * name, int ident_max_size, bool error_on_case_overflow)
int intl_identifier_lower (const char * src, char * dst)
int intl_identifier_lower_string_size (const char * src)
unsigned int intl_identifier_mht_1strlowerhash (const void * key, const unsigned int ht_size)
int intl_identifier_namecmp (const char * str1, const char * str2)
int intl_identifier_ncasecmp (const char * str1, const char * str2, const int len)
int intl_identifier_upper (const char * src, char * dst)
int intl_identifier_upper_string_size (const char * src)
bool intl_is_currency_symbol (const char * src, DB_CURRENCY * currency, int * symbol_size, const CURRENCY_CHECK_MODE check_mode)
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)
bool intl_is_space (const char * str, const char * str_end, const INTL_CODESET codeset, int * space_size)
int intl_iso88591_to_euckr (const unsigned char * in_buf, const int in_size, unsigned char ** out_buf, int * out_size)
int intl_kor_cmp (unsigned char * s1, unsigned char * s2, int size)
INTL_LANG intl_language (int category)
int intl_lower_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_mbs_casecmp (const char * mbs1, const char * mbs2)
char * intl_mbs_chr (const char * mbs, wchar_t wc)
int intl_mbs_cmp (const char * mbs1, const char * mbs2)
int intl_mbs_len (const char * mbs)
int intl_mbs_lower (const char * mbs1, char * mbs2)
int intl_mbs_namecmp (const char * mbs1, const char * mbs2)
int intl_mbs_ncasecmp (const char * mbs1, const char * mbs2, size_t n)
char * intl_mbs_ncpy (char * mbs1, const char * mbs2, size_t n)
int intl_mbs_nlower (char * dest, const char * src, const int max_len)
const char * intl_mbs_nth (const char * mbs, size_t n)
int intl_mbs_spn (const char * mbs, const wchar_t * chars)
int intl_mbs_upper (const char * mbs1, char * mbs2)
const unsigned char * intl_next_char (const unsigned char * s, INTL_CODESET codeset, int * current_char_size)
unsigned char * intl_next_char_pseudo_kor (const unsigned char * s, INTL_CODESET codeset, int * current_char_size)
const unsigned char * intl_nextchar_euc (const unsigned char * s, int * curr_char_length)
const unsigned char * intl_nextchar_utf8 (const unsigned char * s, int * curr_char_length)
void intl_pad_char (const INTL_CODESET codeset, unsigned char * pad_char, int * pad_size)
int intl_pad_size (INTL_CODESET codeset)
const unsigned char * intl_prev_char (const unsigned char * s, const unsigned char * s_start, INTL_CODESET codeset, int * prev_char_size)
unsigned char * intl_prev_char_pseudo_kor (const unsigned char * s, const unsigned char * s_start, INTL_CODESET codeset, int * prev_char_size)
const unsigned char * intl_prevchar_euc (const unsigned char * s, const unsigned char * s_start, int * prev_char_length)
const unsigned char * intl_prevchar_utf8 (const unsigned char * s, const unsigned char * s_start, int * prev_char_length)
int intl_put_char (unsigned char * dest, const unsigned char * char_p, const INTL_CODESET codeset)
int intl_reverse_string (const unsigned char * src, unsigned char * dst, int length_in_chars, int size_in_bytes, INTL_CODESET codeset)
int intl_set_max_bound_chr (INTL_CODESET codeset, char * chr)
int intl_set_min_bound_chr (INTL_CODESET codeset, char * chr)
const char * intl_skip_spaces (const char * str, const char * str_end, const INTL_CODESET codeset)
int intl_strncat (unsigned char * dest, const unsigned char * src, int len)
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_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 * 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_text_utf8_to_single_byte (const char * in_buf, const int in_size, char ** out_buf, int * out_size)
int intl_tolower_iso8859 (unsigned char * s, int length)
int intl_toupper_iso8859 (unsigned char * s, int length)
int intl_upper_string (const ALPHABET_DATA * alphabet, const unsigned char * src, unsigned char * dst, int length_in_chars)
int intl_upper_string_size (const ALPHABET_DATA * alphabet, const unsigned char * src, int src_size, int src_length)
unsigned int intl_utf8_to_cp (const unsigned char * utf8, const int size, 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_utf8_to_euckr (const unsigned char * in_buf, const int in_size, unsigned char ** out_buf, int * out_size)
int intl_utf8_to_iso88591 (const unsigned char * in_buf, const int in_size, unsigned char ** out_buf, int * out_size)
INTL_ZONE intl_zone (int category)

Public Static Functions

Type Name
int intl_char_tolower_utf8 (const ALPHABET_DATA * a, const unsigned char * s, const int size, unsigned char * d, unsigned char ** next)
int intl_char_toupper_utf8 (const ALPHABET_DATA * a, const unsigned char * s, const int size, unsigned char * d, unsigned char ** next)
wchar_t * intl_copy_lowercase (const wchar_t * ws, size_t n)
int intl_count_euc_bytes (const unsigned char * s, int length_in_chars)
int intl_count_euc_chars (const unsigned char * s, int length_in_bytes)
int intl_count_utf8_bytes (const unsigned char * s, int length_in_chars)
void intl_init_conv_iso8859_1_to_utf8 (void)
void intl_init_conv_iso8859_9_to_utf8 (void)
int intl_is_korean (unsigned char ch)
int intl_strcasecmp_utf8_one_cp (const ALPHABET_DATA * alphabet, unsigned char * str1, unsigned char * str2, const int size_str1, const int size_str2, unsigned int cp1, unsigned int cp2, int * skip_size1, int * skip_size2)
int intl_tolower_euc (const unsigned char * src, unsigned char * d, int byte_size)
int intl_tolower_utf8 (const ALPHABET_DATA * a, const unsigned char * s, unsigned char * d, int length_in_chars, int * d_size)
int intl_toupper_euc (const unsigned char * src, unsigned char * d, int byte_size)
int intl_toupper_utf8 (const ALPHABET_DATA * a, const unsigned char * s, unsigned char * d, int length_in_chars, int * d_size)

Macros

Type Name
define ISO_8859_9_FIRST_CP 0x11e
define ISO_8859_9_LAST_CP 0x15f
define IS_8BIT (c) ((c) &gt;&gt; 7)
define IS_PSEUDO_KOREAN (ch) /* multi line expression */
define LOCALE_C "C"
define LOCALE_KOREAN "korean"
define OUTPUT (charp_out) [**if**](dynamic__load_8c.md#function-if) (pos != [**NULL**](freelistheap_8h.md#define-null)) \*pos = ([**char**](broker__monitor_8c.md#function-timeout) \*) [**charp\_out**](broker__monitor_8c.md#function-timeout)
define OUTPUT (charp_out) [**if**](dynamic__load_8c.md#function-if) (pos != [**NULL**](freelistheap_8h.md#define-null)) \*pos = ([**char**](broker__monitor_8c.md#function-timeout) \*) [**charp\_out**](broker__monitor_8c.md#function-timeout)
define SS3 143
define UTF8_BYTE_IN_RANGE (b, r1, r2) (!(b &lt; [**r1**](broker__monitor_8c.md#function-timeout) \|\| b &gt; [**r2**](broker__monitor_8c.md#function-timeout)))
define strlen (s1) (([**int**](broker__monitor_8c.md#function-timeout)) strlen([**s1**](broker__monitor_8c.md#function-timeout)))

Public Attributes Documentation

variable con_Iso_8859_1_conv

TEXT_CONVERSION con_Iso_8859_1_conv;

variable con_Iso_8859_9_conv

TEXT_CONVERSION con_Iso_8859_9_conv;

variable intl_Len_utf8_char

const unsigned char* const intl_Len_utf8_char;

variable intl_Mbs_support

bool intl_Mbs_support;

variable intl_String_validation

bool intl_String_validation;

Public Static Attributes Documentation

variable iso8859_1_To_utf8_conv

CONV_CP_TO_BYTES iso8859_1_To_utf8_conv[256];

variable iso8859_9_To_utf8_conv

CONV_CP_TO_BYTES iso8859_9_To_utf8_conv[256];

variable len_utf8_char

const unsigned char len_utf8_char[256];

variable moneysymbols_console

char moneysymbols_console[][4];

variable moneysymbols_esc_iso_codes

char moneysymbols_esc_iso_codes[][5];

variable moneysymbols_grammar

char moneysymbols_grammar[][5];

variable moneysymbols_iso88591_codes

char moneysymbols_iso88591_codes[][4];

variable moneysymbols_iso_codes

char moneysymbols_iso_codes[][4];

variable moneysymbols_utf8

char moneysymbols_utf8[][4];

variable utf8_Cp_to_iso_8859_9_conv

CONV_CP_TO_BYTES utf8_Cp_to_iso_8859_9_conv[0x15f - 0x11e+1];

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

INTL_UTF8_VALIDITY intl_check_euckr (
    const  unsigned  char * buf,
    int size,
    char ** pos
) 

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

INTL_UTF8_VALIDITY intl_check_utf8 (
    const  unsigned  char * buf,
    int size,
    char ** pos
) 

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

int intl_count_utf8_chars (
    const  unsigned  char * s,
    int length_in_bytes
) 

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

int intl_cp_to_utf8 (
    const  unsigned  int codepoint,
    unsigned  char * utf8_seq
) 

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

int intl_get_currency_symbol_position (
    const  DB_CURRENCY currency
) 

function intl_get_money_ISO88591_symbol

char * intl_get_money_ISO88591_symbol (
    const  DB_CURRENCY currency
) 

function intl_get_money_ISO_symbol

char * intl_get_money_ISO_symbol (
    const  DB_CURRENCY currency
) 

function intl_get_money_UTF8_symbol

char * intl_get_money_UTF8_symbol (
    const  DB_CURRENCY currency
) 

function intl_get_money_esc_ISO_symbol

char * intl_get_money_esc_ISO_symbol (
    const  DB_CURRENCY currency
) 

function intl_get_money_symbol

char * intl_get_money_symbol (
    const  DB_CURRENCY currency,
    INTL_CODESET codeset
) 

function intl_get_money_symbol_console

char * intl_get_money_symbol_console (
    const  DB_CURRENCY currency
) 

function intl_get_money_symbol_grammar

char * intl_get_money_symbol_grammar (
    const  DB_CURRENCY currency
) 

function intl_identifier_casecmp

int intl_identifier_casecmp (
    const  char * str1,
    const  char * str2
) 

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

int intl_identifier_cmp (
    const  char * str1,
    const  char * str2
) 

function intl_identifier_fix

int intl_identifier_fix (
    char * name,
    int ident_max_size,
    bool error_on_case_overflow
) 

function intl_identifier_lower

int intl_identifier_lower (
    const  char * src,
    char * dst
) 

function intl_identifier_lower_string_size

int intl_identifier_lower_string_size (
    const  char * src
) 

function intl_identifier_mht_1strlowerhash

unsigned  int intl_identifier_mht_1strlowerhash (
    const  void * key,
    const  unsigned  int ht_size
) 

function intl_identifier_namecmp

int intl_identifier_namecmp (
    const  char * str1,
    const  char * str2
) 

function intl_identifier_ncasecmp

int intl_identifier_ncasecmp (
    const  char * str1,
    const  char * str2,
    const  int len
) 

function intl_identifier_upper

int intl_identifier_upper (
    const  char * src,
    char * dst
) 

function intl_identifier_upper_string_size

int intl_identifier_upper_string_size (
    const  char * src
) 

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

bool intl_is_max_bound_chr (
    INTL_CODESET codeset,
    const  unsigned  char * chr
) 

function intl_is_min_bound_chr

bool intl_is_min_bound_chr (
    INTL_CODESET codeset,
    const  unsigned  char * 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_kor_cmp

int intl_kor_cmp (
    unsigned  char * s1,
    unsigned  char * s2,
    int size
) 

function intl_language

INTL_LANG intl_language (
    int category
) 

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

int intl_mbs_casecmp (
    const  char * mbs1,
    const  char * mbs2
) 

function intl_mbs_chr

char * intl_mbs_chr (
    const  char * mbs,
    wchar_t wc
) 

function intl_mbs_cmp

int intl_mbs_cmp (
    const  char * mbs1,
    const  char * mbs2
) 

function intl_mbs_len

int intl_mbs_len (
    const  char * mbs
) 

function intl_mbs_lower

int intl_mbs_lower (
    const  char * mbs1,
    char * mbs2
) 

function intl_mbs_namecmp

int intl_mbs_namecmp (
    const  char * mbs1,
    const  char * mbs2
) 

function intl_mbs_ncasecmp

int intl_mbs_ncasecmp (
    const  char * mbs1,
    const  char * mbs2,
    size_t n
) 

function intl_mbs_ncpy

char * intl_mbs_ncpy (
    char * mbs1,
    const  char * mbs2,
    size_t n
) 

function intl_mbs_nlower

int intl_mbs_nlower (
    char * dest,
    const  char * src,
    const  int max_len
) 

function intl_mbs_nth

const  char * intl_mbs_nth (
    const  char * mbs,
    size_t n
) 

function intl_mbs_spn

int intl_mbs_spn (
    const  char * mbs,
    const  wchar_t * chars
) 

function intl_mbs_upper

int intl_mbs_upper (
    const  char * mbs1,
    char * mbs2
) 

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

const  unsigned  char * intl_nextchar_euc (
    const  unsigned  char * s,
    int * curr_char_length
) 

function intl_nextchar_utf8

const  unsigned  char * intl_nextchar_utf8 (
    const  unsigned  char * s,
    int * curr_char_length
) 

function intl_pad_char

void intl_pad_char (
    const  INTL_CODESET codeset,
    unsigned  char * pad_char,
    int * pad_size
) 

function intl_pad_size

int intl_pad_size (
    INTL_CODESET codeset
) 

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_char_length
) 

function intl_prevchar_utf8

const  unsigned  char * intl_prevchar_utf8 (
    const  unsigned  char * s,
    const  unsigned  char * s_start,
    int * prev_char_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

int intl_set_max_bound_chr (
    INTL_CODESET codeset,
    char * chr
) 

function intl_set_min_bound_chr

int intl_set_min_bound_chr (
    INTL_CODESET codeset,
    char * chr
) 

function intl_skip_spaces

const  char * intl_skip_spaces (
    const  char * str,
    const  char * str_end,
    const  INTL_CODESET codeset
) 

function intl_strncat

int intl_strncat (
    unsigned  char * dest,
    const  unsigned  char * src,
    int len
) 

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 * t,
    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

int intl_tolower_iso8859 (
    unsigned  char * s,
    int length
) 

function intl_toupper_iso8859

int intl_toupper_iso8859 (
    unsigned  char * s,
    int length
) 

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

INTL_ZONE intl_zone (
    int category
) 

Public Static Functions Documentation

function intl_char_tolower_utf8

static int intl_char_tolower_utf8 (
    const  ALPHABET_DATA * a,
    const  unsigned  char * s,
    const  int size,
    unsigned  char * d,
    unsigned  char ** next
) 

function intl_char_toupper_utf8

static int intl_char_toupper_utf8 (
    const  ALPHABET_DATA * a,
    const  unsigned  char * s,
    const  int size,
    unsigned  char * d,
    unsigned  char ** next
) 

function intl_copy_lowercase

static wchar_t * intl_copy_lowercase (
    const  wchar_t * ws,
    size_t n
) 

function intl_count_euc_bytes

static int intl_count_euc_bytes (
    const  unsigned  char * s,
    int length_in_chars
) 

function intl_count_euc_chars

static int intl_count_euc_chars (
    const  unsigned  char * s,
    int length_in_bytes
) 

function intl_count_utf8_bytes

static int intl_count_utf8_bytes (
    const  unsigned  char * s,
    int length_in_chars
) 

function intl_init_conv_iso8859_1_to_utf8

static void intl_init_conv_iso8859_1_to_utf8 (
    void
) 

function intl_init_conv_iso8859_9_to_utf8

static void intl_init_conv_iso8859_9_to_utf8 (
    void
) 

function intl_is_korean

static int intl_is_korean (
    unsigned  char ch
) 

function intl_strcasecmp_utf8_one_cp

static int intl_strcasecmp_utf8_one_cp (
    const  ALPHABET_DATA * alphabet,
    unsigned  char * str1,
    unsigned  char * str2,
    const  int size_str1,
    const  int size_str2,
    unsigned  int cp1,
    unsigned  int cp2,
    int * skip_size1,
    int * skip_size2
) 

function intl_tolower_euc

static int intl_tolower_euc (
    const  unsigned  char * src,
    unsigned  char * d,
    int byte_size
) 

function intl_tolower_utf8

static int intl_tolower_utf8 (
    const  ALPHABET_DATA * a,
    const  unsigned  char * s,
    unsigned  char * d,
    int length_in_chars,
    int * d_size
) 

function intl_toupper_euc

static int intl_toupper_euc (
    const  unsigned  char * src,
    unsigned  char * d,
    int byte_size
) 

function intl_toupper_utf8

static int intl_toupper_utf8 (
    const  ALPHABET_DATA * a,
    const  unsigned  char * s,
    unsigned  char * d,
    int length_in_chars,
    int * d_size
) 

Macro Definition Documentation

define ISO_8859_9_FIRST_CP

#define ISO_8859_9_FIRST_CP `0x11e`

define ISO_8859_9_LAST_CP

#define ISO_8859_9_LAST_CP `0x15f`

define IS_8BIT

#define IS_8BIT (
    c
) `((c) >> 7)`

define IS_PSEUDO_KOREAN

#define IS_PSEUDO_KOREAN (
    ch
) `/* multi line expression */`

define LOCALE_C

#define LOCALE_C `"C"`

define LOCALE_KOREAN

#define LOCALE_KOREAN `"korean"`

define OUTPUT

#define OUTPUT (
    charp_out
) `if (pos != NULL ) *pos = ( char *) charp_out`

define OUTPUT

#define OUTPUT (
    charp_out
) `if (pos != NULL ) *pos = ( char *) charp_out`

define SS3

#define SS3 `143`

define UTF8_BYTE_IN_RANGE

#define UTF8_BYTE_IN_RANGE (
    b,
    r1,
    r2
) `(!(b < r1 || b > r2 ))`

define strlen

#define strlen (
    s1
) `(( int ) strlen( s1 ))`


The documentation for this class was generated from the following file cubrid/src/base/intl_support.c