MySQL 8.0.29
Source Code Documentation
ctype-euc_kr.cc File Reference
#include <stddef.h>
#include <sys/types.h>
#include "m_ctype.h"
#include "my_compiler.h"
#include "my_inttypes.h"

Macros

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

Functions

static uint ismbchar_euc_kr (const CHARSET_INFO *cs, const char *p, const char *e)
 
static uint mbcharlen_euc_kr (const CHARSET_INFO *cs, uint 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, uchar *s, uchar *e)
 
static int my_mb_wc_euc_kr (const CHARSET_INFO *cs, my_wc_t *pwc, const uchar *s, const uchar *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 uchar ctype_euc_kr [257]
 
static const uchar to_lower_euc_kr []
 
static const uchar to_upper_euc_kr []
 
static const uchar 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 tab_ksc5601_uni0 []
 
static const uint16 tab_ksc5601_uni1 []
 
static const uint16 tab_uni_ksc56010 []
 
static const uint16 tab_uni_ksc56011 []
 
static const uint16 tab_uni_ksc56012 []
 
static const uint16 tab_uni_ksc56013 []
 
static const uint16 tab_uni_ksc56014 []
 
static const uint16 tab_uni_ksc56015 []
 
static const uint16 tab_uni_ksc56016 []
 
static const uint16 tab_uni_ksc56017 []
 
static const uint16 tab_uni_ksc56018 []
 
static const uint16 tab_uni_ksc56019 []
 
static const uint16 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 <= (uchar)(c) && (uchar)(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)    ((uchar)(c) >= 0x41 && (uchar)(c) <= 0x5A)

◆ iseuc_kr_tail2

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

◆ iseuc_kr_tail3

#define iseuc_kr_tail3 (   c)    ((uchar)(c) >= 0x81 && (uchar)(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 uint ismbchar_euc_kr ( const CHARSET_INFO cs,
const char *  p,
const char *  e 
)
static

◆ mbcharlen_euc_kr()

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

◆ my_mb_wc_euc_kr()

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

◆ my_wc_mb_euc_kr()

static int my_wc_mb_euc_kr ( const CHARSET_INFO cs,
my_wc_t  wc,
uchar s,
uchar 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 uchar 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:1831

◆ 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 int my_mb_wc_euc_kr(const CHARSET_INFO *cs, my_wc_t *pwc, const uchar *s, const uchar *e)
Definition: ctype-euc_kr.cc:9370
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:9391
static uint mbcharlen_euc_kr(const CHARSET_INFO *cs, uint c)
Definition: ctype-euc_kr.cc:278
static int my_wc_mb_euc_kr(const CHARSET_INFO *cs, my_wc_t wc, uchar *s, uchar *e)
Definition: ctype-euc_kr.cc:9349
static uint ismbchar_euc_kr(const CHARSET_INFO *cs, const char *p, const char *e)
Definition: ctype-euc_kr.cc:268
size_t my_caseup_mb_varlen(const CHARSET_INFO *, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-mb.cc:185
size_t my_casedn_str_mb(const CHARSET_INFO *, char *)
Definition: ctype-mb.cc:60
double my_strntod_8bit(const CHARSET_INFO *, const char *s, size_t l, const char **e, int *err)
Definition: ctype-simple.cc:645
size_t my_snprintf_8bit(const CHARSET_INFO *, char *to, size_t n, const char *fmt,...)
Definition: ctype-simple.cc:280
ulonglong my_strntoull10rnd_8bit(const CHARSET_INFO *cs, const char *str, size_t length, int unsigned_fl, const char **endptr, int *error)
Definition: ctype-simple.cc:1234
ulong my_strntoul_8bit(const CHARSET_INFO *, const char *s, size_t l, int base, const char **e, int *err)
Definition: ctype-simple.cc:396
void my_fill_8bit(const CHARSET_INFO *cs, char *to, size_t l, int fill)
Definition: ctype-simple.cc:906
size_t my_casedn_mb(const CHARSET_INFO *, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-mb.cc:114
size_t my_caseup_str_mb(const CHARSET_INFO *, char *)
Definition: ctype-mb.cc:43
size_t my_longlong10_to_str_8bit(const CHARSET_INFO *, char *to, size_t l, int radix, longlong val)
Definition: ctype-simple.cc:694
size_t my_numchars_mb(const CHARSET_INFO *, const char *b, const char *e)
Definition: ctype-mb.cc:319
int my_mb_ctype_mb(const CHARSET_INFO *, int *, const uchar *, const uchar *)
Definition: ctype-mb.cc:1323
long my_strntol_8bit(const CHARSET_INFO *, const char *s, size_t l, int base, const char **e, int *err)
Definition: ctype-simple.cc:317
size_t my_lengthsp_8bit(const CHARSET_INFO *cs, const char *ptr, size_t length)
Definition: ctype-simple.cc:935
size_t my_charpos_mb(const CHARSET_INFO *, const char *b, const char *e, size_t pos)
Definition: ctype-mb.cc:330
longlong my_strtoll10_8bit(const CHARSET_INFO *cs, const char *nptr, const char **endptr, int *error)
Definition: ctype-simple.cc:1138
size_t my_numcells_8bit(const CHARSET_INFO *, const char *b, const char *e)
Definition: ctype-simple.cc:916
size_t my_long10_to_str_8bit(const CHARSET_INFO *, char *to, size_t l, int radix, long int val)
Definition: ctype-simple.cc:658
ulonglong my_strntoull_8bit(const CHARSET_INFO *, const char *s, size_t l, int base, const char **e, int *err)
Definition: ctype-simple.cc:548
size_t my_scan_8bit(const CHARSET_INFO *cs, const char *b, const char *e, int sq)
Definition: ctype-simple.cc:884
longlong my_strntoll_8bit(const CHARSET_INFO *, const char *s, size_t l, int base, const char **e, int *err)
Definition: ctype-simple.cc:469

◆ my_collation_ci_handler

MY_COLLATION_HANDLER my_collation_ci_handler
static
Initial value:
= {
nullptr,
nullptr,
size_t my_strnxfrmlen_simple(const CHARSET_INFO *, size_t)
Definition: ctype-simple.cc:63
int my_strnncoll_simple(const CHARSET_INFO *, const uchar *, size_t, const uchar *, size_t, bool)
Definition: ctype-simple.cc:136
uint my_instr_mb(const CHARSET_INFO *, const char *b, size_t b_length, const char *s, size_t s_length, my_match_t *match, uint nmatch)
Definition: ctype-mb.cc:361
int my_wildcmp_mb(const CHARSET_INFO *, 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:312
void my_hash_sort_simple(const CHARSET_INFO *cs, const uchar *key, size_t len, uint64 *nr1, uint64 *nr2)
Definition: ctype-simple.cc:290
int my_strcasecmp_mb(const CHARSET_INFO *cs, const char *, const char *)
Definition: ctype-mb.cc:196
size_t my_strnxfrm_mb(const CHARSET_INFO *, uchar *dst, size_t dstlen, uint nweights, const uchar *src, size_t srclen, uint flags)
Definition: ctype-mb.cc:501
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:660
bool my_propagate_simple(const CHARSET_INFO *cs, const uchar *str, size_t len)
Definition: ctype-simple.cc:1483
int my_strnncollsp_simple(const CHARSET_INFO *, const uchar *, size_t, const uchar *, size_t)
Definition: ctype-simple.cc:178

◆ sort_order_euc_kr

const uchar sort_order_euc_kr[]
static

◆ tab_ksc5601_uni0

const uint16 tab_ksc5601_uni0[]
static

◆ tab_ksc5601_uni1

const uint16 tab_ksc5601_uni1[]
static

◆ tab_uni_ksc56010

const uint16 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, 0, 0, 0, 0xA8A8, 0xA9A8, 0xA8A9, 0xA9A9,
0, 0, 0, 0, 0, 0, 0xA9B0, 0xA8AF, 0xA9AF,
0, 0, 0, 0, 0, 0, 0xA8AB, 0xA9AB, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0xA8AE,
0xA9AE}

◆ tab_uni_ksc56011

const uint16 tab_uni_ksc56011[]
static

◆ tab_uni_ksc560110

const uint16 tab_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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, 0xA1CB, 0xA1CC,
0xA1FE, 0xA3FE, 0, 0xA1CD, 0xA3DC}

◆ tab_uni_ksc56012

const uint16 tab_uni_ksc56012[]
static

◆ tab_uni_ksc56013

const uint16 tab_uni_ksc56013[]
static

◆ tab_uni_ksc56014

const uint16 tab_uni_ksc56014[]
static

◆ tab_uni_ksc56015

const uint16 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 tab_uni_ksc56016[]
static

◆ tab_uni_ksc56017

const uint16 tab_uni_ksc56017[]
static

◆ tab_uni_ksc56018

const uint16 tab_uni_ksc56018[]
static

◆ tab_uni_ksc56019

const uint16 tab_uni_ksc56019[]
static

◆ to_lower_euc_kr

const uchar to_lower_euc_kr[]
static

◆ to_upper_euc_kr

const uchar to_upper_euc_kr[]
static