-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathibdCollations.h
305 lines (302 loc) · 10.8 KB
/
ibdCollations.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
/*
* Copyright (c) [2025] [Zhao Song]
*/
#ifndef IBDCOLLATIONS_H_
#define IBDCOLLATIONS_H_
#include <string>
#include <map>
namespace ibd_ninja {
struct collation {
std::string name;
int min;
int max;
};
std::map<int, collation> g_collation_map = {
{32, {"armscii8_general_ci", 1, 1}},
{64, {"armscii8_bin", 1, 1}},
{11, {"ascii_general_ci", 1, 1}},
{65, {"ascii_bin", 1, 1}},
{1, {"big5_chinese_ci", 1, 2}},
{84, {"big5_bin", 1, 2}},
{63, {"binary", 1, 1}},
{26, {"cp1250_general_ci", 1, 1}},
{34, {"cp1250_czech_cs", 1, 1}},
{44, {"cp1250_croatian_ci", 1, 1}},
{66, {"cp1250_bin", 1, 1}},
{99, {"cp1250_polish_ci", 1, 1}},
{14, {"cp1251_bulgarian_ci", 1, 1}},
{23, {"cp1251_ukrainian_ci", 1, 1}},
{50, {"cp1251_bin", 1, 1}},
{51, {"cp1251_general_ci", 1, 1}},
{52, {"cp1251_general_cs", 1, 1}},
{57, {"cp1256_general_ci", 1, 1}},
{67, {"cp1256_bin", 1, 1}},
{29, {"cp1257_lithuanian_ci", 1, 1}},
{58, {"cp1257_bin", 1, 1}},
{59, {"cp1257_general_ci", 1, 1}},
{4, {"cp850_general_ci", 1, 1}},
{80, {"cp850_bin", 1, 1}},
{40, {"cp852_general_ci", 1, 1}},
{81, {"cp852_bin", 1, 1}},
{36, {"cp866_general_ci", 1, 1}},
{68, {"cp866_bin", 1, 1}},
{95, {"cp932_japanese_ci", 1, 2}},
{96, {"cp932_bin", 1, 2}},
{3, {"dec8_swedish_ci", 1, 1}},
{69, {"dec8_bin", 1, 1}},
{97, {"eucjpms_japanese_ci", 1, 3}},
{98, {"eucjpms_bin", 1, 3}},
{19, {"euckr_korean_ci", 1, 2}},
{85, {"euckr_bin", 1, 2}},
{248, {"gb18030_chinese_ci", 1, 4}},
{249, {"gb18030_bin", 1, 4}},
{250, {"gb18030_unicode_520_ci", 1, 4}},
{24, {"gb2312_chinese_ci", 1, 2}},
{86, {"gb2312_bin", 1, 2}},
{28, {"gbk_chinese_ci", 1, 2}},
{87, {"gbk_bin", 1, 2}},
{92, {"geostd8_general_ci", 1, 1}},
{93, {"geostd8_bin", 1, 1}},
{25, {"greek_general_ci", 1, 1}},
{70, {"greek_bin", 1, 1}},
{16, {"hebrew_general_ci", 1, 1}},
{71, {"hebrew_bin", 1, 1}},
{6, {"hp8_english_ci", 1, 1}},
{72, {"hp8_bin", 1, 1}},
{37, {"keybcs2_general_ci", 1, 1}},
{73, {"keybcs2_bin", 1, 1}},
{7, {"koi8r_general_ci", 1, 1}},
{74, {"koi8r_bin", 1, 1}},
{22, {"koi8u_general_ci", 1, 1}},
{75, {"koi8u_bin", 1, 1}},
{5, {"latin1_german1_ci", 1, 1}},
{8, {"latin1_swedish_ci", 1, 1}},
{15, {"latin1_danish_ci", 1, 1}},
{31, {"latin1_german2_ci", 1, 1}},
{47, {"latin1_bin", 1, 1}},
{48, {"latin1_general_ci", 1, 1}},
{49, {"latin1_general_cs", 1, 1}},
{94, {"latin1_spanish_ci", 1, 1}},
{2, {"latin2_czech_cs", 1, 1}},
{9, {"latin2_general_ci", 1, 1}},
{21, {"latin2_hungarian_ci", 1, 1}},
{27, {"latin2_croatian_ci", 1, 1}},
{77, {"latin2_bin", 1, 1}},
{30, {"latin5_turkish_ci", 1, 1}},
{78, {"latin5_bin", 1, 1}},
{20, {"latin7_estonian_cs", 1, 1}},
{41, {"latin7_general_ci", 1, 1}},
{42, {"latin7_general_cs", 1, 1}},
{79, {"latin7_bin", 1, 1}},
{38, {"macce_general_ci", 1, 1}},
{43, {"macce_bin", 1, 1}},
{39, {"macroman_general_ci", 1, 1}},
{53, {"macroman_bin", 1, 1}},
{13, {"sjis_japanese_ci", 1, 2}},
{88, {"sjis_bin", 1, 2}},
{10, {"swe7_swedish_ci", 1, 1}},
{82, {"swe7_bin", 1, 1}},
{18, {"tis620_thai_ci", 1, 1}},
{89, {"tis620_bin", 1, 1}},
{35, {"ucs2_general_ci", 2, 2}},
{90, {"ucs2_bin", 2, 2}},
{128, {"ucs2_unicode_ci", 2, 2}},
{129, {"ucs2_icelandic_ci", 2, 2}},
{130, {"ucs2_latvian_ci", 2, 2}},
{131, {"ucs2_romanian_ci", 2, 2}},
{132, {"ucs2_slovenian_ci", 2, 2}},
{133, {"ucs2_polish_ci", 2, 2}},
{134, {"ucs2_estonian_ci", 2, 2}},
{135, {"ucs2_spanish_ci", 2, 2}},
{136, {"ucs2_swedish_ci", 2, 2}},
{137, {"ucs2_turkish_ci", 2, 2}},
{138, {"ucs2_czech_ci", 2, 2}},
{139, {"ucs2_danish_ci", 2, 2}},
{140, {"ucs2_lithuanian_ci", 2, 2}},
{141, {"ucs2_slovak_ci", 2, 2}},
{142, {"ucs2_spanish2_ci", 2, 2}},
{143, {"ucs2_roman_ci", 2, 2}},
{144, {"ucs2_persian_ci", 2, 2}},
{145, {"ucs2_esperanto_ci", 2, 2}},
{146, {"ucs2_hungarian_ci", 2, 2}},
{147, {"ucs2_sinhala_ci", 2, 2}},
{148, {"ucs2_german2_ci", 2, 2}},
{149, {"ucs2_croatian_ci", 2, 2}},
{150, {"ucs2_unicode_520_ci", 2, 2}},
{151, {"ucs2_vietnamese_ci", 2, 2}},
{159, {"ucs2_general_mysql500_ci", 2, 2}},
{12, {"ujis_japanese_ci", 1, 3}},
{91, {"ujis_bin", 1, 3}},
{54, {"utf16_general_ci", 2, 4}},
{55, {"utf16_bin", 2, 4}},
{101, {"utf16_unicode_ci", 2, 4}},
{102, {"utf16_icelandic_ci", 2, 4}},
{103, {"utf16_latvian_ci", 2, 4}},
{104, {"utf16_romanian_ci", 2, 4}},
{105, {"utf16_slovenian_ci", 2, 4}},
{106, {"utf16_polish_ci", 2, 4}},
{107, {"utf16_estonian_ci", 2, 4}},
{108, {"utf16_spanish_ci", 2, 4}},
{109, {"utf16_swedish_ci", 2, 4}},
{110, {"utf16_turkish_ci", 2, 4}},
{111, {"utf16_czech_ci", 2, 4}},
{112, {"utf16_danish_ci", 2, 4}},
{113, {"utf16_lithuanian_ci", 2, 4}},
{114, {"utf16_slovak_ci", 2, 4}},
{115, {"utf16_spanish2_ci", 2, 4}},
{116, {"utf16_roman_ci", 2, 4}},
{117, {"utf16_persian_ci", 2, 4}},
{118, {"utf16_esperanto_ci", 2, 4}},
{119, {"utf16_hungarian_ci", 2, 4}},
{120, {"utf16_sinhala_ci", 2, 4}},
{121, {"utf16_german2_ci", 2, 4}},
{122, {"utf16_croatian_ci", 2, 4}},
{123, {"utf16_unicode_520_ci", 2, 4}},
{124, {"utf16_vietnamese_ci", 2, 4}},
{56, {"utf16le_general_ci", 2, 4}},
{62, {"utf16le_bin", 2, 4}},
{60, {"utf32_general_ci", 4, 4}},
{61, {"utf32_bin", 4, 4}},
{160, {"utf32_unicode_ci", 4, 4}},
{161, {"utf32_icelandic_ci", 4, 4}},
{162, {"utf32_latvian_ci", 4, 4}},
{163, {"utf32_romanian_ci", 4, 4}},
{164, {"utf32_slovenian_ci", 4, 4}},
{165, {"utf32_polish_ci", 4, 4}},
{166, {"utf32_estonian_ci", 4, 4}},
{167, {"utf32_spanish_ci", 4, 4}},
{168, {"utf32_swedish_ci", 4, 4}},
{169, {"utf32_turkish_ci", 4, 4}},
{170, {"utf32_czech_ci", 4, 4}},
{171, {"utf32_danish_ci", 4, 4}},
{172, {"utf32_lithuanian_ci", 4, 4}},
{173, {"utf32_slovak_ci", 4, 4}},
{174, {"utf32_spanish2_ci", 4, 4}},
{175, {"utf32_roman_ci", 4, 4}},
{176, {"utf32_persian_ci", 4, 4}},
{177, {"utf32_esperanto_ci", 4, 4}},
{178, {"utf32_hungarian_ci", 4, 4}},
{179, {"utf32_sinhala_ci", 4, 4}},
{180, {"utf32_german2_ci", 4, 4}},
{181, {"utf32_croatian_ci", 4, 4}},
{182, {"utf32_unicode_520_ci", 4, 4}},
{183, {"utf32_vietnamese_ci", 4, 4}},
{33, {"utf8mb3_general_ci", 1, 3}},
{76, {"utf8mb3_tolower_ci", 1, 3}},
{83, {"utf8mb3_bin", 1, 3}},
{192, {"utf8mb3_unicode_ci", 1, 3}},
{193, {"utf8mb3_icelandic_ci", 1, 3}},
{194, {"utf8mb3_latvian_ci", 1, 3}},
{195, {"utf8mb3_romanian_ci", 1, 3}},
{196, {"utf8mb3_slovenian_ci", 1, 3}},
{197, {"utf8mb3_polish_ci", 1, 3}},
{198, {"utf8mb3_estonian_ci", 1, 3}},
{199, {"utf8mb3_spanish_ci", 1, 3}},
{200, {"utf8mb3_swedish_ci", 1, 3}},
{201, {"utf8mb3_turkish_ci", 1, 3}},
{202, {"utf8mb3_czech_ci", 1, 3}},
{203, {"utf8mb3_danish_ci", 1, 3}},
{204, {"utf8mb3_lithuanian_ci", 1, 3}},
{205, {"utf8mb3_slovak_ci", 1, 3}},
{206, {"utf8mb3_spanish2_ci", 1, 3}},
{207, {"utf8mb3_roman_ci", 1, 3}},
{208, {"utf8mb3_persian_ci", 1, 3}},
{209, {"utf8mb3_esperanto_ci", 1, 3}},
{210, {"utf8mb3_hungarian_ci", 1, 3}},
{211, {"utf8mb3_sinhala_ci", 1, 3}},
{212, {"utf8mb3_german2_ci", 1, 3}},
{213, {"utf8mb3_croatian_ci", 1, 3}},
{214, {"utf8mb3_unicode_520_ci", 1, 3}},
{215, {"utf8mb3_vietnamese_ci", 1, 3}},
{223, {"utf8mb3_general_mysql500_ci", 1, 3}},
{45, {"utf8mb4_general_ci", 1, 4}},
{46, {"utf8mb4_bin", 1, 4}},
{224, {"utf8mb4_unicode_ci", 1, 4}},
{225, {"utf8mb4_icelandic_ci", 1, 4}},
{226, {"utf8mb4_latvian_ci", 1, 4}},
{227, {"utf8mb4_romanian_ci", 1, 4}},
{228, {"utf8mb4_slovenian_ci", 1, 4}},
{229, {"utf8mb4_polish_ci", 1, 4}},
{230, {"utf8mb4_estonian_ci", 1, 4}},
{231, {"utf8mb4_spanish_ci", 1, 4}},
{232, {"utf8mb4_swedish_ci", 1, 4}},
{233, {"utf8mb4_turkish_ci", 1, 4}},
{234, {"utf8mb4_czech_ci", 1, 4}},
{235, {"utf8mb4_danish_ci", 1, 4}},
{236, {"utf8mb4_lithuanian_ci", 1, 4}},
{237, {"utf8mb4_slovak_ci", 1, 4}},
{238, {"utf8mb4_spanish2_ci", 1, 4}},
{239, {"utf8mb4_roman_ci", 1, 4}},
{240, {"utf8mb4_persian_ci", 1, 4}},
{241, {"utf8mb4_esperanto_ci", 1, 4}},
{242, {"utf8mb4_hungarian_ci", 1, 4}},
{243, {"utf8mb4_sinhala_ci", 1, 4}},
{244, {"utf8mb4_german2_ci", 1, 4}},
{245, {"utf8mb4_croatian_ci", 1, 4}},
{246, {"utf8mb4_unicode_520_ci", 1, 4}},
{247, {"utf8mb4_vietnamese_ci", 1, 4}},
{255, {"utf8mb4_0900_ai_ci", 1, 4}},
{256, {"utf8mb4_de_pb_0900_ai_ci", 1, 4}},
{257, {"utf8mb4_is_0900_ai_ci", 1, 4}},
{258, {"utf8mb4_lv_0900_ai_ci", 1, 4}},
{259, {"utf8mb4_ro_0900_ai_ci", 1, 4}},
{260, {"utf8mb4_sl_0900_ai_ci", 1, 4}},
{261, {"utf8mb4_pl_0900_ai_ci", 1, 4}},
{262, {"utf8mb4_et_0900_ai_ci", 1, 4}},
{263, {"utf8mb4_es_0900_ai_ci", 1, 4}},
{264, {"utf8mb4_sv_0900_ai_ci", 1, 4}},
{265, {"utf8mb4_tr_0900_ai_ci", 1, 4}},
{266, {"utf8mb4_cs_0900_ai_ci", 1, 4}},
{267, {"utf8mb4_da_0900_ai_ci", 1, 4}},
{268, {"utf8mb4_lt_0900_ai_ci", 1, 4}},
{269, {"utf8mb4_sk_0900_ai_ci", 1, 4}},
{270, {"utf8mb4_es_trad_0900_ai_ci", 1, 4}},
{271, {"utf8mb4_la_0900_ai_ci", 1, 4}},
{273, {"utf8mb4_eo_0900_ai_ci", 1, 4}},
{274, {"utf8mb4_hu_0900_ai_ci", 1, 4}},
{275, {"utf8mb4_hr_0900_ai_ci", 1, 4}},
{277, {"utf8mb4_vi_0900_ai_ci", 1, 4}},
{278, {"utf8mb4_0900_as_cs", 1, 4}},
{279, {"utf8mb4_de_pb_0900_as_cs", 1, 4}},
{280, {"utf8mb4_is_0900_as_cs", 1, 4}},
{281, {"utf8mb4_lv_0900_as_cs", 1, 4}},
{282, {"utf8mb4_ro_0900_as_cs", 1, 4}},
{283, {"utf8mb4_sl_0900_as_cs", 1, 4}},
{284, {"utf8mb4_pl_0900_as_cs", 1, 4}},
{285, {"utf8mb4_et_0900_as_cs", 1, 4}},
{286, {"utf8mb4_es_0900_as_cs", 1, 4}},
{287, {"utf8mb4_sv_0900_as_cs", 1, 4}},
{288, {"utf8mb4_tr_0900_as_cs", 1, 4}},
{289, {"utf8mb4_cs_0900_as_cs", 1, 4}},
{290, {"utf8mb4_da_0900_as_cs", 1, 4}},
{291, {"utf8mb4_lt_0900_as_cs", 1, 4}},
{292, {"utf8mb4_sk_0900_as_cs", 1, 4}},
{293, {"utf8mb4_es_trad_0900_as_cs", 1, 4}},
{294, {"utf8mb4_la_0900_as_cs", 1, 4}},
{296, {"utf8mb4_eo_0900_as_cs", 1, 4}},
{297, {"utf8mb4_hu_0900_as_cs", 1, 4}},
{298, {"utf8mb4_hr_0900_as_cs", 1, 4}},
{300, {"utf8mb4_vi_0900_as_cs", 1, 4}},
{303, {"utf8mb4_ja_0900_as_cs", 1, 4}},
{304, {"utf8mb4_ja_0900_as_cs_ks", 1, 4}},
{305, {"utf8mb4_0900_as_ci", 1, 4}},
{306, {"utf8mb4_ru_0900_ai_ci", 1, 4}},
{307, {"utf8mb4_ru_0900_as_cs", 1, 4}},
{308, {"utf8mb4_zh_0900_as_cs", 1, 4}},
{309, {"utf8mb4_0900_bin", 1, 1}},
{310, {"utf8mb4_nb_0900_ai_ci", 1, 4}},
{311, {"utf8mb4_nb_0900_as_cs", 1, 4}},
{312, {"utf8mb4_nn_0900_ai_ci", 1, 4}},
{313, {"utf8mb4_nn_0900_as_cs", 1, 4}},
{314, {"utf8mb4_sr_latn_0900_ai_ci", 1, 4}},
{315, {"utf8mb4_sr_latn_0900_as_cs", 1, 4}},
{316, {"utf8mb4_bs_0900_ai_ci", 1, 4}},
{317, {"utf8mb4_bs_0900_as_cs", 1, 4}},
{318, {"utf8mb4_bg_0900_ai_ci", 1, 4}},
{319, {"utf8mb4_bg_0900_as_cs", 1, 4}},
{320, {"utf8mb4_gl_0900_ai_ci", 1, 4}},
{321, {"utf8mb4_gl_0900_as_cs", 1, 4}},
{322, {"utf8mb4_mn_cyrl_0900_ai_ci", 1, 4}},
{323, {"utf8mb4_mn_cyrl_0900_as_cs", 1, 4}}};
} // namespace ibd_ninja
#endif // IBDCOLLATIONS_H_