MySQL 8.0.40
Source Code Documentation
|
#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 | iscp932head(c) ((0x81 <= (c) && (c) <= 0x9f) || ((0xe0 <= (c)) && (c) <= 0xfc)) |
#define | iscp932tail(c) ((0x40 <= (c) && (c) <= 0x7e) || (0x80 <= (c) && (c) <= 0xfc)) |
#define | cp932code(c, d) ((((uint)(uchar)(c)) << 8) | (uint)(uchar)(d)) |
Functions | |
static uint | ismbchar_cp932 (const CHARSET_INFO *cs, const char *p, const char *e) |
static uint | mbcharlen_cp932 (const CHARSET_INFO *cs, uint c) |
static int | my_strnncoll_cp932_internal (const CHARSET_INFO *cs, const uchar **a_res, size_t a_length, const uchar **b_res, size_t b_length) |
static int | my_strnncoll_cp932 (const CHARSET_INFO *cs, const uchar *a, size_t a_length, const uchar *b, size_t b_length, bool b_is_prefix) |
static int | my_strnncollsp_cp932 (const CHARSET_INFO *cs, const uchar *a, size_t a_length, const uchar *b, size_t b_length) |
static int | my_mb_wc_cp932 (const CHARSET_INFO *cs, my_wc_t *pwc, const uchar *s, const uchar *e) |
Scans a CP932 character from the input string and converts to Unicode code point. More... | |
static int | my_wc_mb_cp932 (const CHARSET_INFO *cs, my_wc_t wc, uchar *s, uchar *e) |
Puts the given Unicode character into a CP932 string. More... | |
static size_t | my_numcells_cp932 (const CHARSET_INFO *cs, const char *str, const char *str_end) |
static size_t | my_well_formed_len_cp932 (const CHARSET_INFO *cs, const char *b, const char *e, size_t pos, int *error) |
Variables | |
static const uchar | ctype_cp932 [257] |
static const uchar | to_lower_cp932 [] |
static const uchar | to_upper_cp932 [] |
static const uchar | sort_order_cp932 [] |
static const MY_UNICASE_CHARACTER | c81 [256] |
static const MY_UNICASE_CHARACTER | c82 [256] |
static const MY_UNICASE_CHARACTER | c83 [256] |
static const MY_UNICASE_CHARACTER | c84 [256] |
static const MY_UNICASE_CHARACTER | c87 [256] |
static const MY_UNICASE_CHARACTER | cEE [256] |
static const MY_UNICASE_CHARACTER | cFA [256] |
static const MY_UNICASE_CHARACTER * | my_caseinfo_pages_cp932 [256] |
MY_UNICASE_INFO | my_caseinfo_cp932 = {0xFFFF, my_caseinfo_pages_cp932} |
static const uint16 | cp932_to_unicode [65536] |
static const uint16 | unicode_to_cp932 [65536] |
static MY_COLLATION_HANDLER | my_collation_ci_handler |
static MY_CHARSET_HANDLER | my_charset_handler |
CHARSET_INFO | my_charset_cp932_japanese_ci |
CHARSET_INFO | my_charset_cp932_bin |
#define iscp932head | ( | c | ) | ((0x81 <= (c) && (c) <= 0x9f) || ((0xe0 <= (c)) && (c) <= 0xfc)) |
#define iscp932tail | ( | c | ) | ((0x40 <= (c) && (c) <= 0x7e) || (0x80 <= (c) && (c) <= 0xfc)) |
|
static |
|
static |
|
static |
Scans a CP932 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 |
-2 | If a 2-byte unassigned character was scanned |
MY_CS_ILSEQ | If a wrong byte sequence was found |
|
static |
|
static |
|
static |
|
static |
|
static |
Puts the given Unicode character into a CP932 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 CP932 |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
MY_UNICASE_INFO my_caseinfo_cp932 = {0xFFFF, my_caseinfo_pages_cp932} |
|
static |
CHARSET_INFO my_charset_cp932_bin |
CHARSET_INFO my_charset_cp932_japanese_ci |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |