MySQL 8.0.40
Source Code Documentation
|
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <algorithm>
#include <map>
#include <set>
#include "m_string.h"
#include "my_compiler.h"
#include "strings/mb_wc.h"
#include "strings/uca900_data.h"
Classes | |
struct | MY_UCA_ITEM |
struct | MY_UCA |
Macros | |
#define | MY_UCA_MAXWEIGHT_TO_PARSE 64 |
#define | MY_UCA_MAXCE_TO_PARSE 18 |
#define | MY_UCA_MAXWEIGHT_TO_DUMP 24 |
#define | MY_UCA_MAXCE_TO_DUMP 8 |
#define | MY_UCA_VERSION_SIZE 32 |
#define | MY_UCA_CE_SIZE 3 |
#define | MY_UCA_MAX_CONTRACTION 6 |
#define | MY_UCA_MAXCHAR (0x10FFFF + 1) |
#define | MY_UCA_CHARS_PER_PAGE 256 |
#define | MY_UCA_PSHIFT 8 |
#define | MY_UCA_NPAGES MY_UCA_MAXCHAR / MY_UCA_CHARS_PER_PAGE |
#define | HANGUL_JAMO_MAX_LENGTH 3 |
Typedefs | |
typedef unsigned char | uchar |
typedef unsigned short | uint16 |
typedef unsigned int | uint |
typedef unsigned long | my_wc_t |
Enumerations | |
enum | OPT_DUMP { DUCET_DUMP , JA_DUMP , ZH_DUMP , DUMP_ERROR } |
Functions | |
static int | load_uca_file (MY_UCA *uca, int maxchar, int *pageloaded, FILE *infile) |
static int | my_decompose_hangul_syllable (my_wc_t syllable, my_wc_t *jamo) |
void | my_put_jamo_weights (const my_wc_t *hangul_jamo, int jamo_cnt, MY_UCA_ITEM *item, const MY_UCA *uca) |
static void | set_implicit_weights (MY_UCA_ITEM *item, int code) |
static void | set_implicit_weights (MY_UCA *uca, const int *pageloaded) |
static void | get_page_statistics (const MY_UCA *uca, int page, int *maxnum) |
static char * | prefix_name (const MY_UCA *uca) |
static char * | page_name (const MY_UCA *uca, int page, bool pageloaded) |
static void | print_one_page (const MY_UCA *uca, int page, const char *page_name_prefix, int maxnum, FILE *outfile) |
int | read_in_lang_data (char *inbytes, int maxbytes, FILE *infile) |
int | dump_ja_hans (MY_UCA *uca, FILE *infile, FILE *outfile) |
uint16 | change_zh_implicit (uint16 weight) |
my_wc_t | convert_implicit_to_ch (uint16 first, uint16 second) |
int | dump_zh_hans (MY_UCA *uca, int *pageloaded, FILE *infile, FILE *outfile) |
OPT_DUMP | handle_options (int ac, char **av, char **infilename, char **outfilename) |
int | dump_ducet (MY_UCA *uca, int *pageloaded, FILE *infile, FILE *outfile) |
int | main (int ac, char **av) |
#define HANGUL_JAMO_MAX_LENGTH 3 |
#define MY_UCA_CE_SIZE 3 |
#define MY_UCA_CHARS_PER_PAGE 256 |
#define MY_UCA_MAX_CONTRACTION 6 |
#define MY_UCA_MAXCE_TO_DUMP 8 |
#define MY_UCA_MAXCE_TO_PARSE 18 |
#define MY_UCA_MAXCHAR (0x10FFFF + 1) |
#define MY_UCA_MAXWEIGHT_TO_DUMP 24 |
#define MY_UCA_MAXWEIGHT_TO_PARSE 64 |
#define MY_UCA_NPAGES MY_UCA_MAXCHAR / MY_UCA_CHARS_PER_PAGE |
#define MY_UCA_PSHIFT 8 |
#define MY_UCA_VERSION_SIZE 32 |
typedef unsigned long my_wc_t |
typedef unsigned char uchar |
typedef unsigned int uint |
typedef unsigned short uint16 |
enum OPT_DUMP |
int dump_ducet | ( | MY_UCA * | uca, |
int * | pageloaded, | ||
FILE * | infile, | ||
FILE * | outfile | ||
) |
int dump_ja_hans | ( | MY_UCA * | uca, |
FILE * | infile, | ||
FILE * | outfile | ||
) |
int dump_zh_hans | ( | MY_UCA * | uca, |
int * | pageloaded, | ||
FILE * | infile, | ||
FILE * | outfile | ||
) |
|
static |
OPT_DUMP handle_options | ( | int | ac, |
char ** | av, | ||
char ** | infilename, | ||
char ** | outfilename | ||
) |
|
static |
int main | ( | int | ac, |
char ** | av | ||
) |
void my_put_jamo_weights | ( | const my_wc_t * | hangul_jamo, |
int | jamo_cnt, | ||
MY_UCA_ITEM * | item, | ||
const MY_UCA * | uca | ||
) |
|
static |
|
static |
|
static |
int read_in_lang_data | ( | char * | inbytes, |
int | maxbytes, | ||
FILE * | infile | ||
) |
|
static |
|
static |