Skip to content

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

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_iso88591_to_utf8 (const unsigned char * in_buf, const int in_size, unsigned char ** out_buf, int * out_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 the_char)
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_length)
const unsigned char * intl_nextchar_utf8 (const unsigned char * s, int * curr_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_length)
const unsigned char * intl_prevchar_utf8 (const unsigned char * s, const unsigned char * s_start, int * prev_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 * txt_conv, 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)

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 enum currency_check_mode CURRENCY_CHECK_MODE;

typedef INTL_BUILTIN_LANG

typedef enum intl_builtin_lang INTL_BUILTIN_LANG;

typedef INTL_CODESET

typedef enum intl_codeset INTL_CODESET;

typedef INTL_LANG

typedef unsigned int INTL_LANG;

typedef INTL_UTF8_VALIDITY

typedef enum intl_utf8_validity INTL_UTF8_VALIDITY;

typedef INTL_ZONE

typedef enum intl_zone 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_utf8_validity {
    INTL_UTF8_VALID,
    INTL_UTF8_INVALID,
    INTL_UTF8_TRUNCATED
};

enum intl_zone

enum intl_zone {
    INTL_ZONE_US,
    INTL_ZONE_KR,
    INTL_ZONE_GB,
    INTL_ZONE_TR
};

Public Attributes Documentation

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 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_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

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

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

function intl_nextchar_utf8

const  unsigned  char * intl_nextchar_utf8 (
    const  unsigned  char * s,
    int * curr_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_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

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

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
) 

Macro Definition Documentation

define INTL_CAN_COERCE_CS

#define INTL_CAN_COERCE_CS (
    cs_from,
    cs_to
) `true`

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_CODESET_MULT (
    codeset
) `/* multi line expression */`

define INTL_GET_NEXTCHAR_UTF8

#define INTL_GET_NEXTCHAR_UTF8 (
    c,
    l
) `/* multi line expression */`

define INTL_NEXTCHAR_UTF8

#define INTL_NEXTCHAR_UTF8 (
    c
) `( unsigned  char *)((c) + intl_Len_utf8_char [*( unsigned  char *)(c)])`

define INTL_NEXT_CHAR

#define INTL_NEXT_CHAR (
    ptr,
    s,
    codeset,
    current_char_size
) `/* multi line expression */`

define MB_LEN_MAX

#define MB_LEN_MAX `1`

define WEOF

#define WEOF `( wint_t )(-1)`


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