![]() |
MySQL 8.0.44
Source Code Documentation
|
#include <assert.h>#include <stddef.h>#include <sys/types.h>#include "m_ctype.h"#include "my_compiler.h"#include "my_inttypes.h"#include "template_utils.h"Macros | |
| #define | isujis(c) ((0xa1 <= ((c)&0xff) && ((c)&0xff) <= 0xfe)) |
| #define | iskata(c) ((0xa1 <= ((c)&0xff) && ((c)&0xff) <= 0xdf)) |
| #define | isujis_ss2(c) (((c)&0xff) == 0x8e) |
| #define | isujis_ss3(c) (((c)&0xff) == 0x8f) |
Functions | |
| static uint | ismbchar_ujis (const CHARSET_INFO *cs, const char *p, const char *e) |
| static uint | mbcharlen_ujis (const CHARSET_INFO *cs, uint c) |
| static size_t | my_well_formed_len_ujis (const CHARSET_INFO *cs, const char *beg, const char *end, size_t pos, int *error) |
| static size_t | my_numcells_eucjp (const CHARSET_INFO *cs, const char *str, const char *str_end) |
| static int | my_mb_wc_euc_jp (const CHARSET_INFO *cs, my_wc_t *pwc, const uchar *s, const uchar *e) |
| Scans an UJIS character from the input string and converts to Unicode code point. More... | |
| static int | my_wc_mb_euc_jp (const CHARSET_INFO *cs, my_wc_t wc, uchar *s, uchar *e) |
| Puts the given Unicode character into an UJIS string. More... | |
| static const MY_UNICASE_CHARACTER * | get_case_info_for_ch (const CHARSET_INFO *cs, uint plane, uint page, uint offs) |
| static size_t | my_casefold_ujis (const CHARSET_INFO *cs, char *src, size_t srclen, char *dst, size_t dstlen, const uchar *map, size_t is_upper) |
| size_t | my_casedn_ujis (const CHARSET_INFO *cs, char *src, size_t srclen, char *dst, size_t dstlen) |
| size_t | my_caseup_ujis (const CHARSET_INFO *cs, char *src, size_t srclen, char *dst, size_t dstlen) |
| #define iskata | ( | c | ) | ((0xa1 <= ((c)&0xff) && ((c)&0xff) <= 0xdf)) |
| #define isujis | ( | c | ) | ((0xa1 <= ((c)&0xff) && ((c)&0xff) <= 0xfe)) |
| #define isujis_ss2 | ( | c | ) | (((c)&0xff) == 0x8e) |
| #define isujis_ss3 | ( | c | ) | (((c)&0xff) == 0x8f) |
|
static |
|
static |
|
static |
| size_t my_casedn_ujis | ( | const CHARSET_INFO * | cs, |
| char * | src, | ||
| size_t | srclen, | ||
| char * | dst, | ||
| size_t | dstlen | ||
| ) |
|
static |
| size_t my_caseup_ujis | ( | const CHARSET_INFO * | cs, |
| char * | src, | ||
| size_t | srclen, | ||
| char * | dst, | ||
| size_t | dstlen | ||
| ) |
|
static |
Scans an UJIS character from the input string and converts to Unicode code point.
| [in] | cs | Character set info, unused |
| [out] | pwc | Unicode code point |
| [in] | s | Beginning of the input string |
| [in] | e | End of the input string |
| MY_CS_TOOSMALL | If the string was too short to scan a character |
| 1 | If a 1-byte character was scanned |
| 2 | If a 2-byte character was scanned |
| 3 | If a 3-byte character was scanned |
| -2 | If a 2-byte unassigned character was scanned |
| -3 | If a 3-byte unassigned character was scanned |
| MY_CS_ILSEQ | If a wrong byte sequence was found |
|
static |
|
static |
Puts the given Unicode character into an UJIS string.
| [in] | cs | Character set info, unused |
| [in] | wc | Unicode code point |
| [in] | s | Beginning of the out string |
| [in] | e | End of the out string |
| MY_CS_TOOSMALL | If the string was too short to put a character |
| 1 | If a 1-byte character was put |
| 2 | If a 2-byte character was put |
| MY_CS_ILUNI | If the Unicode character does not exist in UJIS |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| CHARSET_INFO my_charset_ujis_bin |
| CHARSET_INFO my_charset_ujis_japanese_ci |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |