MySQL 8.0.39
Source Code Documentation
|
#include <stddef.h>
#include <sys/types.h>
#include <algorithm>
#include "m_ctype.h"
#include "my_compiler.h"
#include "my_inttypes.h"
#include "my_macros.h"
Macros | |
#define | isgbkhead(c) (0x81 <= (uchar)(c) && (uchar)(c) <= 0xfe) |
#define | isgbktail(c) |
#define | isgbkcode(c, d) (isgbkhead(c) && isgbktail(d)) |
#define | gbkcode(c, d) ((((uint)(uchar)(c)) << 8) | (uchar)(d)) |
#define | gbkhead(e) ((uchar)(e >> 8)) |
#define | gbktail(e) ((uchar)(e & 0xff)) |
Functions | |
static uint16 | gbksortorder (uint16 i) |
static int | my_strnncoll_gbk_internal (const uchar **a_res, const uchar **b_res, size_t length) |
static int | my_strnncoll_gbk (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_gbk (const CHARSET_INFO *cs, const uchar *a, size_t a_length, const uchar *b, size_t b_length) |
static size_t | my_strnxfrm_gbk (const CHARSET_INFO *cs, uchar *dst, size_t dstlen, uint nweights, const uchar *src, size_t srclen, uint flags) |
static uint | ismbchar_gbk (const CHARSET_INFO *cs, const char *p, const char *e) |
static uint | mbcharlen_gbk (const CHARSET_INFO *cs, uint c) |
static int | func_gbk_uni_onechar (int code) |
static int | func_uni_gbk_onechar (int code) |
static int | my_wc_mb_gbk (const CHARSET_INFO *cs, my_wc_t wc, uchar *s, uchar *e) |
static int | my_mb_wc_gbk (const CHARSET_INFO *cs, my_wc_t *pwc, const uchar *s, const uchar *e) |
static size_t | my_well_formed_len_gbk (const CHARSET_INFO *cs, const char *b, const char *e, size_t pos, int *error) |
#define gbkhead | ( | e | ) | ((uchar)(e >> 8)) |
#define gbktail | ( | e | ) | ((uchar)(e & 0xff)) |
#define isgbktail | ( | c | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
CHARSET_INFO my_charset_gbk_bin |
CHARSET_INFO my_charset_gbk_chinese_ci |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |