MySQL 8.3.0
Source Code Documentation
ctype-euc_kr.cc File Reference
#include <cstddef>
#include <cstdint>
#include "my_compiler.h"
#include "mysql/strings/m_ctype.h"
#include "strings/m_ctype_internals.h"

Macros

#define iseuc_kr_head(c)   ((0x81 <= (uint8_t)(c) && (uint8_t)(c) <= 0xfe))
 
#define iseuc_kr_tail1(c)   ((uint8_t)(c) >= 0x41 && (uint8_t)(c) <= 0x5A)
 
#define iseuc_kr_tail2(c)   ((uint8_t)(c) >= 0x61 && (uint8_t)(c) <= 0x7A)
 
#define iseuc_kr_tail3(c)   ((uint8_t)(c) >= 0x81 && (uint8_t)(c) <= 0xFE)
 
#define iseuc_kr_tail(c)    (iseuc_kr_tail1(c) || iseuc_kr_tail2(c) || iseuc_kr_tail3(c))
 

Functions

static unsigned ismbchar_euc_kr (const CHARSET_INFO *cs, const char *p, const char *e)
 
static unsigned mbcharlen_euc_kr (const CHARSET_INFO *cs, unsigned c)
 
static int func_ksc5601_uni_onechar (int code)
 
static int func_uni_ksc5601_onechar (int code)
 
static int my_wc_mb_euc_kr (const CHARSET_INFO *cs, my_wc_t wc, uint8_t *s, uint8_t *e)
 
static int my_mb_wc_euc_kr (const CHARSET_INFO *cs, my_wc_t *pwc, const uint8_t *s, const uint8_t *e)
 
static size_t my_well_formed_len_euckr (const CHARSET_INFO *cs, const char *b, const char *e, size_t pos, int *error)
 

Variables

static const uint8_t ctype_euc_kr [257]
 
static const uint8_t to_lower_euc_kr []
 
static const uint8_t to_upper_euc_kr []
 
static const uint8_t sort_order_euc_kr []
 
static const MY_UNICASE_CHARACTER cA3 [256]
 
static const MY_UNICASE_CHARACTER cA5 [256]
 
static const MY_UNICASE_CHARACTER cA7 [256]
 
static const MY_UNICASE_CHARACTER cA8 [256]
 
static const MY_UNICASE_CHARACTER cA9 [256]
 
static const MY_UNICASE_CHARACTER cAC [256]
 
static const MY_UNICASE_CHARACTERmy_caseinfo_pages_euckr [256]
 
static const MY_UNICASE_INFO my_caseinfo_euckr
 
static const uint16_t tab_ksc5601_uni0 []
 
static const uint16_t tab_ksc5601_uni1 []
 
static const uint16_t tab_uni_ksc56010 []
 
static const uint16_t tab_uni_ksc56011 []
 
static const uint16_t tab_uni_ksc56012 []
 
static const uint16_t tab_uni_ksc56013 []
 
static const uint16_t tab_uni_ksc56014 []
 
static const uint16_t tab_uni_ksc56015 []
 
static const uint16_t tab_uni_ksc56016 []
 
static const uint16_t tab_uni_ksc56017 []
 
static const uint16_t tab_uni_ksc56018 []
 
static const uint16_t tab_uni_ksc56019 []
 
static const uint16_t tab_uni_ksc560110 []
 
static MY_COLLATION_HANDLER my_collation_ci_handler
 
static MY_CHARSET_HANDLER my_charset_handler
 
CHARSET_INFO my_charset_euckr_korean_ci
 
CHARSET_INFO my_charset_euckr_bin
 

Macro Definition Documentation

◆ iseuc_kr_head

#define iseuc_kr_head (   c)    ((0x81 <= (uint8_t)(c) && (uint8_t)(c) <= 0xfe))

◆ iseuc_kr_tail

#define iseuc_kr_tail (   c)     (iseuc_kr_tail1(c) || iseuc_kr_tail2(c) || iseuc_kr_tail3(c))

◆ iseuc_kr_tail1

#define iseuc_kr_tail1 (   c)    ((uint8_t)(c) >= 0x41 && (uint8_t)(c) <= 0x5A)

◆ iseuc_kr_tail2

#define iseuc_kr_tail2 (   c)    ((uint8_t)(c) >= 0x61 && (uint8_t)(c) <= 0x7A)

◆ iseuc_kr_tail3

#define iseuc_kr_tail3 (   c)    ((uint8_t)(c) >= 0x81 && (uint8_t)(c) <= 0xFE)

Function Documentation

◆ func_ksc5601_uni_onechar()

static int func_ksc5601_uni_onechar ( int  code)
static

◆ func_uni_ksc5601_onechar()

static int func_uni_ksc5601_onechar ( int  code)
static

◆ ismbchar_euc_kr()

static unsigned ismbchar_euc_kr ( const CHARSET_INFO cs,
const char *  p,
const char *  e 
)
static

◆ mbcharlen_euc_kr()

static unsigned mbcharlen_euc_kr ( const CHARSET_INFO cs,
unsigned  c 
)
static

◆ my_mb_wc_euc_kr()

static int my_mb_wc_euc_kr ( const CHARSET_INFO cs,
my_wc_t pwc,
const uint8_t *  s,
const uint8_t *  e 
)
static

◆ my_wc_mb_euc_kr()

static int my_wc_mb_euc_kr ( const CHARSET_INFO cs,
my_wc_t  wc,
uint8_t *  s,
uint8_t *  e 
)
static

◆ my_well_formed_len_euckr()

static size_t my_well_formed_len_euckr ( const CHARSET_INFO cs,
const char *  b,
const char *  e,
size_t  pos,
int *  error 
)
static

Variable Documentation

◆ cA3

const MY_UNICASE_CHARACTER cA3[256]
static

◆ cA5

const MY_UNICASE_CHARACTER cA5[256]
static

◆ cA7

const MY_UNICASE_CHARACTER cA7[256]
static

◆ cA8

const MY_UNICASE_CHARACTER cA8[256]
static

◆ cA9

const MY_UNICASE_CHARACTER cA9[256]
static

◆ cAC

const MY_UNICASE_CHARACTER cAC[256]
static

◆ ctype_euc_kr

const uint8_t ctype_euc_kr[257]
static
Initial value:
= {
0,
0040, 0040, 0040, 0040, 0040, 0040, 0040, 0040,
0040, 0050, 0050, 0050, 0050, 0050, 0040, 0040,
0040, 0040, 0040, 0040, 0040, 0040, 0040, 0040,
0040, 0040, 0040, 0040, 0040, 0040, 0040, 0040,
0110, 0020, 0020, 0020, 0020, 0020, 0020, 0020,
0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020,
0204, 0204, 0204, 0204, 0204, 0204, 0204, 0204,
0204, 0204, 0020, 0020, 0020, 0020, 0020, 0020,
0020, 0201, 0201, 0201, 0201, 0201, 0201, 0001,
0001, 0001, 0001, 0001, 0001, 0001, 0001, 0001,
0001, 0001, 0001, 0001, 0001, 0001, 0001, 0001,
0001, 0001, 0001, 0020, 0020, 0020, 0020, 0020,
0020, 0202, 0202, 0202, 0202, 0202, 0202, 0002,
0002, 0002, 0002, 0002, 0002, 0002, 0002, 0002,
0002, 0002, 0002, 0002, 0002, 0002, 0002, 0002,
0002, 0002, 0002, 0020, 0020, 0020, 0020, 0040,
0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020,
0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020,
0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020,
0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020,
0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020,
0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020,
0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020,
0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020,
0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020,
0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020, 0020,
0020, 0020, 0020, 0020, 0020, 0020, 0020, 0000,
}

◆ my_caseinfo_euckr

const MY_UNICASE_INFO my_caseinfo_euckr
static
Initial value:
= {0xFFFF,
static const MY_UNICASE_CHARACTER * my_caseinfo_pages_euckr[256]
Definition: ctype-euc_kr.cc:1838

◆ my_caseinfo_pages_euckr

const MY_UNICASE_CHARACTER* my_caseinfo_pages_euckr[256]
static

◆ my_charset_euckr_bin

CHARSET_INFO my_charset_euckr_bin

◆ my_charset_euckr_korean_ci

CHARSET_INFO my_charset_euckr_korean_ci

◆ my_charset_handler

MY_CHARSET_HANDLER my_charset_handler
static
Initial value:
= {
nullptr,
static unsigned mbcharlen_euc_kr(const CHARSET_INFO *cs, unsigned c)
Definition: ctype-euc_kr.cc:284
static size_t my_well_formed_len_euckr(const CHARSET_INFO *cs, const char *b, const char *e, size_t pos, int *error)
Definition: ctype-euc_kr.cc:9398
static int my_wc_mb_euc_kr(const CHARSET_INFO *cs, my_wc_t wc, uint8_t *s, uint8_t *e)
Definition: ctype-euc_kr.cc:9356
static int my_mb_wc_euc_kr(const CHARSET_INFO *cs, my_wc_t *pwc, const uint8_t *s, const uint8_t *e)
Definition: ctype-euc_kr.cc:9377
static unsigned ismbchar_euc_kr(const CHARSET_INFO *cs, const char *p, const char *e)
Definition: ctype-euc_kr.cc:274
int my_mb_ctype_mb(const CHARSET_INFO *cs, int *ctype, const uint8_t *s, const uint8_t *e)
Definition: ctype-mb.cc:1321
size_t my_numchars_mb(const CHARSET_INFO *cs, const char *pos, const char *end)
Definition: ctype-mb.cc:314
size_t my_casedn_mb(const CHARSET_INFO *cs, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-mb.cc:111
size_t my_casedn_str_mb(const CHARSET_INFO *cs, char *str)
Definition: ctype-mb.cc:57
size_t my_caseup_mb_varlen(const CHARSET_INFO *cs, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-mb.cc:182
size_t my_charpos_mb3(const CHARSET_INFO *cs, const char *pos, const char *end, size_t length)
Definition: ctype-mb.cc:325
size_t my_caseup_str_mb(const CHARSET_INFO *cs, char *str)
Definition: ctype-mb.cc:40
size_t my_numcells_8bit(const CHARSET_INFO *cs, const char *b, const char *e)
Definition: ctype-simple.cc:907
long long my_strtoll10_8bit(const CHARSET_INFO *cs, const char *nptr, const char **endptr, int *error)
Definition: ctype-simple.cc:1124
unsigned long long my_strntoull10rnd_8bit(const CHARSET_INFO *cs, const char *str, size_t length, int unsigned_flag, const char **endptr, int *error)
Definition: ctype-simple.cc:1220
double my_strntod_8bit(const CHARSET_INFO *cs, const char *str, size_t length, const char **end, int *err)
Definition: ctype-simple.cc:635
long long my_strntoll_8bit(const CHARSET_INFO *cs, const char *nptr, size_t l, int base, const char **endptr, int *err)
Definition: ctype-simple.cc:460
size_t my_longlong10_to_str_8bit(const CHARSET_INFO *cs, char *dst, size_t len, int radix, long long val)
Definition: ctype-simple.cc:685
size_t my_long10_to_str_8bit(const CHARSET_INFO *cs, char *dst, size_t len, int radix, long int val)
Definition: ctype-simple.cc:649
size_t my_lengthsp_8bit(const CHARSET_INFO *cs, const char *ptr, size_t length)
Definition: ctype-simple.cc:926
unsigned long long my_strntoull_8bit(const CHARSET_INFO *cs, const char *nptr, size_t l, int base, const char **endptr, int *err)
Definition: ctype-simple.cc:538
size_t my_snprintf_8bit(const CHARSET_INFO *cs, char *to, size_t n, const char *fmt,...)
Definition: ctype-simple.cc:277
void my_fill_8bit(const CHARSET_INFO *cs, char *s, size_t l, int fill)
Definition: ctype-simple.cc:897
unsigned long my_strntoul_8bit(const CHARSET_INFO *cs, const char *nptr, size_t l, int base, const char **endptr, int *err)
Definition: ctype-simple.cc:388
long my_strntol_8bit(const CHARSET_INFO *cs, const char *nptr, size_t l, int base, const char **endptr, int *err)
Definition: ctype-simple.cc:310
size_t my_scan_8bit(const CHARSET_INFO *cs, const char *str, const char *end, int sq)
Definition: ctype-simple.cc:875

◆ my_collation_ci_handler

MY_COLLATION_HANDLER my_collation_ci_handler
static
Initial value:
= {
nullptr,
nullptr,
unsigned my_instr_mb(const CHARSET_INFO *cs, const char *b, size_t b_length, const char *s, size_t s_length, my_match_t *match, unsigned nmatch)
Definition: ctype-mb.cc:356
int my_wildcmp_mb(const CHARSET_INFO *cs, const char *str, const char *str_end, const char *wildstr, const char *wildend, int escape, int w_one, int w_many)
Definition: ctype-mb.cc:307
int my_strcasecmp_mb(const CHARSET_INFO *cs, const char *s, const char *t)
Definition: ctype-mb.cc:193
size_t my_strnxfrm_mb(const CHARSET_INFO *cs, uint8_t *dst, size_t dstlen, unsigned nweights, const uint8_t *src, size_t srclen, unsigned flags)
Definition: ctype-mb.cc:495
bool my_like_range_mb(const CHARSET_INFO *cs, const char *ptr, size_t ptr_length, char escape, char w_one, char w_many, size_t res_length, char *min_str, char *max_str, size_t *min_length, size_t *max_length)
Definition: ctype-mb.cc:656
int my_strnncoll_simple(const CHARSET_INFO *cs, const uint8_t *s, size_t slen, const uint8_t *t, size_t tlen, bool t_is_prefix)
Definition: ctype-simple.cc:132
bool my_propagate_simple(const CHARSET_INFO *cs, const uint8_t *str, size_t length)
Definition: ctype-simple.cc:1473
size_t my_strnxfrmlen_simple(const CHARSET_INFO *cs, size_t len)
Definition: ctype-simple.cc:61
void my_hash_sort_simple(const CHARSET_INFO *cs, const uint8_t *key, size_t len, uint64_t *nr1, uint64_t *nr2)
Definition: ctype-simple.cc:287
int my_strnncollsp_simple(const CHARSET_INFO *cs, const uint8_t *a, size_t a_length, const uint8_t *b, size_t b_length)
Definition: ctype-simple.cc:174

◆ sort_order_euc_kr

const uint8_t sort_order_euc_kr[]
static

◆ tab_ksc5601_uni0

const uint16_t tab_ksc5601_uni0[]
static

◆ tab_ksc5601_uni1

const uint16_t tab_ksc5601_uni1[]
static

◆ tab_uni_ksc56010

const uint16_t tab_uni_ksc56010[]
static
Initial value:
= {
0xA2AE, 0, 0, 0xA2B4, 0, 0, 0xA1D7, 0xA1A7, 0,
0xA8A3, 0, 0, 0xA1A9, 0xA2E7, 0, 0xA1C6, 0xA1BE, 0xA9F7,
0xA9F8, 0xA2A5, 0, 0xA2D2, 0xA1A4, 0xA2AC, 0xA9F6, 0xA8AC, 0,
0xA8F9, 0xA8F6, 0xA8FA, 0xA2AF, 0, 0, 0, 0, 0,
0, 0xA8A1, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0xA8A2, 0, 0, 0, 0, 0, 0,
0xA1BF, 0xA8AA, 0, 0, 0, 0, 0, 0xA8AD, 0xA9AC,
0, 0, 0, 0, 0, 0, 0xA9A1, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0xA9A3, 0,
0, 0, 0, 0, 0, 0xA1C0, 0xA9AA, 0, 0,
0, 0, 0, 0xA9AD, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0xA9A2, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0xA8A4, 0xA9A4,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0xA9A5, 0xA8A6, 0xA9A6, 0, 0, 0, 0, 0xA9A7, 0,
0, 0, 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 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0xA1CB, 0xA1CC,
0xA1FE, 0xA3FE, 0, 0xA1CD, 0xA3DC}

◆ tab_uni_ksc56012

const uint16_t tab_uni_ksc56012[]
static

◆ tab_uni_ksc56013

const uint16_t tab_uni_ksc56013[]
static

◆ tab_uni_ksc56014

const uint16_t tab_uni_ksc56014[]
static

◆ tab_uni_ksc56015

const uint16_t tab_uni_ksc56015[]
static
Initial value:
= {
0xA7C9, 0xA7CA, 0xA7CB, 0xA7CC, 0xA7CD, 0, 0, 0, 0xA7BA,
0xA7BB, 0xA7DC, 0xA7DD, 0xA7DE, 0xA7B6, 0xA7B7, 0xA7B8, 0xA7D4, 0xA7D5,
0xA7D6, 0xA7D7, 0xA7D8, 0xA7A1, 0xA7A2, 0xA7A3, 0xA7A5, 0xA7AB, 0xA7AC,
0xA7AD, 0xA7AE, 0xA7AF, 0xA7B0, 0xA7B1, 0xA7B2, 0xA7B3, 0xA7B4, 0xA7A7,
0xA7A8, 0xA7A9, 0xA7AA, 0xA7BD, 0xA7BE, 0xA7E5, 0xA7E6, 0xA7E7, 0xA7E8,
0xA7E1, 0xA7E2, 0xA7E3, 0xA7BF, 0xA7C0, 0xA7C1, 0xA7C2, 0xA7C3, 0xA7C4,
0xA7C5, 0xA7C6, 0xA7C7, 0xA7C8, 0xA7CE, 0xA7CF, 0xA7D0, 0xA7D1, 0xA7D2,
0xA7D3, 0xA7DA, 0xA7DB, 0xA2E3, 0xA7EC, 0xA7A6, 0xA7E0, 0xA7EF, 0xA2E1,
0xA7BC, 0xA7ED, 0xA7B5, 0, 0, 0, 0, 0xA7B9, 0xA7EA,
0, 0, 0xA7EB, 0, 0, 0xA7DF, 0, 0xA2E4, 0,
0, 0xA7E4, 0xA7EE, 0xA7E9}

◆ tab_uni_ksc56016

const uint16_t tab_uni_ksc56016[]
static

◆ tab_uni_ksc56017

const uint16_t tab_uni_ksc56017[]
static

◆ tab_uni_ksc56018

const uint16_t tab_uni_ksc56018[]
static

◆ tab_uni_ksc56019

const uint16_t tab_uni_ksc56019[]
static

◆ to_lower_euc_kr

const uint8_t to_lower_euc_kr[]
static

◆ to_upper_euc_kr

const uint8_t to_upper_euc_kr[]
static