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

Macros

#define iseucjpms(c)   ((0xa1 <= ((c)&0xff) && ((c)&0xff) <= 0xfe))
 
#define iskata(c)   ((0xa1 <= ((c)&0xff) && ((c)&0xff) <= 0xdf))
 
#define iseucjpms_ss2(c)   (((c)&0xff) == 0x8e)
 
#define iseucjpms_ss3(c)   (((c)&0xff) == 0x8f)
 

Functions

static unsigned ismbchar_eucjpms (const CHARSET_INFO *cs, const char *p, const char *e)
 
static unsigned mbcharlen_eucjpms (const CHARSET_INFO *cs, unsigned c)
 
static int my_mb_wc_eucjpms (const CHARSET_INFO *cs, my_wc_t *pwc, const uint8_t *s, const uint8_t *e)
 Scans an EUCJPMS character from the input string and converts to Unicode code point. More...
 
static int my_wc_mb_eucjpms (const CHARSET_INFO *cs, my_wc_t wc, uint8_t *s, uint8_t *e)
 Puts the given Unicode character into an EUCJPMS string. More...
 
static size_t my_well_formed_len_eucjpms (const CHARSET_INFO *cs, const char *beg, const char *end, size_t pos, int *error)
 
static size_t my_numcells_eucjpms (const CHARSET_INFO *cs, const char *str, const char *str_end)
 

Variables

static const uint8_t ctype_eucjpms [257]
 
static const uint8_t to_lower_eucjpms []
 
static const uint8_t to_upper_eucjpms []
 
static const uint8_t sort_order_eucjpms []
 
static const MY_UNICASE_CHARACTER cA2 [256]
 
static const MY_UNICASE_CHARACTER cA3 [256]
 
static const MY_UNICASE_CHARACTER cA6 [256]
 
static const MY_UNICASE_CHARACTER cA7 [256]
 
static const MY_UNICASE_CHARACTER cAD [256]
 
static const MY_UNICASE_CHARACTER c8FA6 [256]
 
static const MY_UNICASE_CHARACTER c8FA7 [256]
 
static const MY_UNICASE_CHARACTER c8FA9 [256]
 
static const MY_UNICASE_CHARACTER c8FAA [256]
 
static const MY_UNICASE_CHARACTER c8FAB [256]
 
static const MY_UNICASE_CHARACTER c8FF3 [256]
 
static const MY_UNICASE_CHARACTER c8FF4 [256]
 
static const MY_UNICASE_CHARACTERmy_caseinfo_pages_eucjpms [512]
 
static MY_UNICASE_INFO my_caseinfo_eucjpms
 
static const uint16_t jisx0208_eucjpms_to_unicode [65536]
 
static const uint16_t unicode_to_jisx0208_eucjpms [65536]
 
static const uint16_t jisx0212_eucjpms_to_unicode [65536]
 
static const uint16_t unicode_to_jisx0212_eucjpms [65536]
 
static MY_COLLATION_HANDLER my_collation_ci_handler
 
static MY_CHARSET_HANDLER my_charset_handler
 
CHARSET_INFO my_charset_eucjpms_japanese_ci
 
CHARSET_INFO my_charset_eucjpms_bin
 

Macro Definition Documentation

◆ iseucjpms

#define iseucjpms (   c)    ((0xa1 <= ((c)&0xff) && ((c)&0xff) <= 0xfe))

◆ iseucjpms_ss2

#define iseucjpms_ss2 (   c)    (((c)&0xff) == 0x8e)

◆ iseucjpms_ss3

#define iseucjpms_ss3 (   c)    (((c)&0xff) == 0x8f)

◆ iskata

#define iskata (   c)    ((0xa1 <= ((c)&0xff) && ((c)&0xff) <= 0xdf))

Function Documentation

◆ ismbchar_eucjpms()

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

◆ mbcharlen_eucjpms()

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

◆ my_mb_wc_eucjpms()

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

Scans an EUCJPMS character from the input string and converts to Unicode code point.

Parameters
[in]csCharacter set info, unused
[out]pwcUnicode code point
[in]sBeginning of the input string
[in]eEnd of the input string
Return values
MY_CS_TOOSMALLIf the string was too short to scan a character
1If a 1-byte character was scanned
2If a 2-byte character was scanned
3If a 3-byte character was scanned
-2If a 2-byte unassigned character was scanned
-3If a 3-byte unassigned character was scanned
MY_CS_ILSEQIf a wrong byte sequence was found

◆ my_numcells_eucjpms()

static size_t my_numcells_eucjpms ( const CHARSET_INFO cs,
const char *  str,
const char *  str_end 
)
static

◆ my_wc_mb_eucjpms()

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

Puts the given Unicode character into an EUCJPMS string.

Parameters
[in]csCharacter set info, unused
[in]wcUnicode code point
[in]sBeginning of the out string
[in]eEnd of the out string
Return values
MY_CS_TOOSMALLIf the string was too short to put a character
1If a 1-byte character was put
2If a 2-byte character was put
MY_CS_ILUNIIf the Unicode character does not exist in EUCJPMS

◆ my_well_formed_len_eucjpms()

static size_t my_well_formed_len_eucjpms ( const CHARSET_INFO cs,
const char *  beg,
const char *  end,
size_t  pos,
int *  error 
)
static

Variable Documentation

◆ c8FA6

const MY_UNICASE_CHARACTER c8FA6[256]
static

◆ c8FA7

const MY_UNICASE_CHARACTER c8FA7[256]
static

◆ c8FA9

const MY_UNICASE_CHARACTER c8FA9[256]
static

◆ c8FAA

const MY_UNICASE_CHARACTER c8FAA[256]
static

◆ c8FAB

const MY_UNICASE_CHARACTER c8FAB[256]
static

◆ c8FF3

const MY_UNICASE_CHARACTER c8FF3[256]
static

◆ c8FF4

const MY_UNICASE_CHARACTER c8FF4[256]
static

◆ cA2

const MY_UNICASE_CHARACTER cA2[256]
static

◆ cA3

const MY_UNICASE_CHARACTER cA3[256]
static

◆ cA6

const MY_UNICASE_CHARACTER cA6[256]
static

◆ cA7

const MY_UNICASE_CHARACTER cA7[256]
static

◆ cAD

const MY_UNICASE_CHARACTER cAD[256]
static

◆ ctype_eucjpms

const uint8_t ctype_eucjpms[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,
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,
0000, 0000, 0020, 0020, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000,
0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, 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,
}

◆ jisx0208_eucjpms_to_unicode

const uint16_t jisx0208_eucjpms_to_unicode[65536]
static

◆ jisx0212_eucjpms_to_unicode

const uint16_t jisx0212_eucjpms_to_unicode[65536]
static

◆ my_caseinfo_eucjpms

MY_UNICASE_INFO my_caseinfo_eucjpms
static
Initial value:
= {0x0FFFF,
static const MY_UNICASE_CHARACTER * my_caseinfo_pages_eucjpms[512]
Definition: ctype-eucjpms.cc:3422

◆ my_caseinfo_pages_eucjpms

const MY_UNICASE_CHARACTER* my_caseinfo_pages_eucjpms[512]
static

◆ my_charset_eucjpms_bin

CHARSET_INFO my_charset_eucjpms_bin

◆ my_charset_eucjpms_japanese_ci

CHARSET_INFO my_charset_eucjpms_japanese_ci

◆ my_charset_handler

MY_CHARSET_HANDLER my_charset_handler
static
Initial value:
= {nullptr,
static int my_wc_mb_eucjpms(const CHARSET_INFO *cs, my_wc_t wc, uint8_t *s, uint8_t *e)
Puts the given Unicode character into an EUCJPMS string.
Definition: ctype-eucjpms.cc:36377
static size_t my_well_formed_len_eucjpms(const CHARSET_INFO *cs, const char *beg, const char *end, size_t pos, int *error)
Definition: ctype-eucjpms.cc:36424
static size_t my_numcells_eucjpms(const CHARSET_INFO *cs, const char *str, const char *str_end)
Definition: ctype-eucjpms.cc:36467
static unsigned mbcharlen_eucjpms(const CHARSET_INFO *cs, unsigned c)
Definition: ctype-eucjpms.cc:304
static int my_mb_wc_eucjpms(const CHARSET_INFO *cs, my_wc_t *pwc, const uint8_t *s, const uint8_t *e)
Scans an EUCJPMS character from the input string and converts to Unicode code point.
Definition: ctype-eucjpms.cc:36323
static unsigned ismbchar_eucjpms(const CHARSET_INFO *cs, const char *p, const char *e)
Definition: ctype-eucjpms.cc:289
int my_mb_ctype_mb(const CHARSET_INFO *cs, int *ctype, const uint8_t *s, const uint8_t *e)
Definition: ctype-mb.cc:1322
size_t my_numchars_mb(const CHARSET_INFO *cs, const char *pos, const char *end)
Definition: ctype-mb.cc:315
size_t my_casedn_str_mb(const CHARSET_INFO *cs, char *str)
Definition: ctype-mb.cc:58
size_t my_charpos_mb3(const CHARSET_INFO *cs, const char *pos, const char *end, size_t length)
Definition: ctype-mb.cc:326
size_t my_caseup_str_mb(const CHARSET_INFO *cs, char *str)
Definition: ctype-mb.cc:41
long long my_strtoll10_8bit(const CHARSET_INFO *cs, const char *nptr, const char **endptr, int *error)
Definition: ctype-simple.cc:1125
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:1221
double my_strntod_8bit(const CHARSET_INFO *cs, const char *str, size_t length, const char **end, int *err)
Definition: ctype-simple.cc:636
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:461
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:686
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:650
size_t my_lengthsp_8bit(const CHARSET_INFO *cs, const char *ptr, size_t length)
Definition: ctype-simple.cc:927
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:539
size_t my_snprintf_8bit(const CHARSET_INFO *cs, char *to, size_t n, const char *fmt,...)
Definition: ctype-simple.cc:278
void my_fill_8bit(const CHARSET_INFO *cs, char *s, size_t l, int fill)
Definition: ctype-simple.cc:898
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:389
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:311
size_t my_scan_8bit(const CHARSET_INFO *cs, const char *str, const char *end, int sq)
Definition: ctype-simple.cc:876
size_t my_casedn_ujis(const CHARSET_INFO *cs, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-ujis.cc:35769
size_t my_caseup_ujis(const CHARSET_INFO *cs, char *src, size_t srclen, char *dst, size_t dstlen)
Definition: ctype-ujis.cc:35779

◆ 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:357
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:308
int my_strcasecmp_mb(const CHARSET_INFO *cs, const char *s, const char *t)
Definition: ctype-mb.cc:194
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:496
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:657
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:133
bool my_propagate_simple(const CHARSET_INFO *cs, const uint8_t *str, size_t length)
Definition: ctype-simple.cc:1474
size_t my_strnxfrmlen_simple(const CHARSET_INFO *cs, size_t len)
Definition: ctype-simple.cc:62
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:288
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:175

◆ sort_order_eucjpms

const uint8_t sort_order_eucjpms[]
static

◆ to_lower_eucjpms

const uint8_t to_lower_eucjpms[]
static

◆ to_upper_eucjpms

const uint8_t to_upper_eucjpms[]
static

◆ unicode_to_jisx0208_eucjpms

const uint16_t unicode_to_jisx0208_eucjpms[65536]
static

◆ unicode_to_jisx0212_eucjpms

const uint16_t unicode_to_jisx0212_eucjpms[65536]
static