1
- /* C code produced by gperf version 3.0.3 */
2
- /* Command-line: gperf */
1
+ /* ANSI- C code produced by gperf version 3.1 */
2
+ /* Command-line: /usr/bin/ gperf */
3
3
/* Computed positions: -k'1,3,$' */
4
4
5
5
#if !((' ' == 32 ) && ('!' == 33 ) && ('"' == 34 ) && ('#' == 35 ) \
26
26
&& ('w' == 119 ) && ('x' == 120 ) && ('y' == 121 ) && ('z' == 122 ) \
27
27
&& ('{' == 123 ) && ('|' == 124 ) && ('}' == 125 ) && ('~' == 126 ))
28
28
/* The character set is not based on ISO-646. */
29
- error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu [email protected] >."
29
+ # error "gperf generated tables don't work with this execution character set. Please report a bug to <
[email protected] >."
30
30
#endif
31
31
32
32
struct mysql2_mysql_enc_name_to_rb_map { const char * name ; const char * rb_name ; };
33
- /* maximum key range = 66 , duplicates = 0 */
33
+ /* maximum key range = 71 , duplicates = 0 */
34
34
35
35
#ifdef __GNUC__
36
36
__inline
@@ -40,123 +40,118 @@ inline
40
40
#endif
41
41
#endif
42
42
static unsigned int
43
- mysql2_mysql_enc_name_to_rb_hash (str , len )
44
- register const char * str ;
45
- register unsigned int len ;
43
+ mysql2_mysql_enc_name_to_rb_hash (register const char * str , register size_t len )
46
44
{
47
45
static const unsigned char asso_values [] =
48
46
{
49
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
50
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
51
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
52
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
53
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 40 , 5 ,
54
- 0 , 69 , 0 , 40 , 25 , 20 , 10 , 55 , 69 , 69 ,
55
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
56
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
57
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
58
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 35 , 5 , 0 ,
59
- 10 , 0 , 20 , 0 , 5 , 5 , 69 , 0 , 10 , 15 ,
60
- 0 , 0 , 69 , 69 , 25 , 5 , 5 , 0 , 69 , 30 ,
61
- 69 , 0 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
62
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
63
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
64
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
65
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
66
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
67
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
68
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
69
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
70
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
71
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
72
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
73
- 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 , 69 ,
74
- 69 , 69 , 69 , 69 , 69 , 69
47
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
48
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
49
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
50
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
51
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 15 , 5 ,
52
+ 0 , 30 , 5 , 25 , 40 , 10 , 20 , 50 , 74 , 74 ,
53
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
54
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
55
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
56
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 40 , 5 , 0 ,
57
+ 15 , 10 , 0 , 0 , 0 , 5 , 74 , 0 , 25 , 5 ,
58
+ 0 , 5 , 74 , 74 , 20 , 5 , 5 , 0 , 74 , 45 ,
59
+ 74 , 0 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
60
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
61
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
62
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
63
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
64
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
65
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
66
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
67
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
68
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
69
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
70
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
71
+ 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 , 74 ,
72
+ 74 , 74 , 74 , 74 , 74 , 74
75
73
};
76
74
return len + asso_values [(unsigned char )str [2 ]] + asso_values [(unsigned char )str [0 ]] + asso_values [(unsigned char )str [len - 1 ]];
77
75
}
78
76
79
- #ifdef __GNUC__
80
- __inline
81
- #ifdef __GNUC_STDC_INLINE__
82
- __attribute__ ((__gnu_inline__ ))
83
- #endif
84
- #endif
85
77
const struct mysql2_mysql_enc_name_to_rb_map *
86
- mysql2_mysql_enc_name_to_rb (str , len )
87
- register const char * str ;
88
- register unsigned int len ;
78
+ mysql2_mysql_enc_name_to_rb (register const char * str , register size_t len )
89
79
{
90
80
enum
91
81
{
92
- TOTAL_KEYWORDS = 39 ,
82
+ TOTAL_KEYWORDS = 42 ,
93
83
MIN_WORD_LENGTH = 3 ,
94
84
MAX_WORD_LENGTH = 8 ,
95
85
MIN_HASH_VALUE = 3 ,
96
- MAX_HASH_VALUE = 68
86
+ MAX_HASH_VALUE = 73
97
87
};
98
88
99
89
static const struct mysql2_mysql_enc_name_to_rb_map wordlist [] =
100
90
{
101
91
{"" }, {"" }, {"" },
102
92
{"gbk" , "GBK" },
103
93
{"" },
104
- {"greek " , "ISO-8859-7 " },
94
+ {"utf32 " , "UTF-32 " },
105
95
{"gb2312" , "GB2312" },
106
96
{"keybcs2" , NULL },
107
97
{"" },
108
98
{"ucs2" , "UTF-16BE" },
109
99
{"koi8u" , "KOI8-R" },
110
100
{"binary" , "ASCII-8BIT" },
111
- {"eucjpms " , "eucJP-ms " },
112
- {"" },
101
+ {"utf8mb4 " , "UTF-8 " },
102
+ {"macroman" , "macRoman " },
113
103
{"ujis" , "eucJP-ms" },
114
- {"cp852 " , "CP852 " },
104
+ {"greek " , "ISO-8859-7 " },
115
105
{"cp1251" , "Windows-1251" },
116
- {"geostd8 " , NULL },
106
+ {"utf16le " , "UTF-16LE" },
117
107
{"" },
118
108
{"sjis" , "Shift_JIS" },
119
109
{"macce" , "macCentEuro" },
110
+ {"cp1257" , "Windows-1257" },
111
+ {"eucjpms" , "eucJP-ms" },
112
+ {"" },
113
+ {"utf8" , "UTF-8" },
114
+ {"cp852" , "CP852" },
115
+ {"cp1250" , "Windows-1250" },
116
+ {"gb18030" , "GB18030" },
117
+ {"" },
118
+ {"swe7" , NULL },
119
+ {"koi8r" , "KOI8-R" },
120
+ {"tis620" , "TIS-620" },
121
+ {"geostd8" , NULL },
122
+ {"" },
123
+ {"big5" , "Big5" },
124
+ {"euckr" , "EUC-KR" },
120
125
{"latin2" , "ISO-8859-2" },
126
+ {"utf8mb3" , "UTF-8" },
121
127
{"" },
122
- {"macroman" , "macRoman" },
123
128
{"dec8" , NULL },
124
- {"utf32 " , "UTF-32 " },
129
+ {"cp850 " , "CP850 " },
125
130
{"latin1" , "UTF-8" },
126
- {"utf8mb4" , "UTF-8 " },
131
+ {"" },
127
132
{"hp8" , NULL },
128
- {"swe7" , NULL },
129
- {"euckr" , "EUC-KR" },
130
- {"cp1257" , "Windows-1257" },
131
- {"" }, {"" },
132
- {"utf8" , "UTF-8" },
133
- {"koi8r" , "KOI8-R" },
134
- {"cp1256" , "Windows-1256" },
135
- {"" }, {"" }, {"" },
136
- {"cp866" , "IBM866" },
133
+ {"" },
134
+ {"utf16" , "UTF-16" },
137
135
{"latin7" , "ISO-8859-13" },
138
136
{"" }, {"" }, {"" },
139
137
{"ascii" , "US-ASCII" },
140
- {"hebrew" , "ISO-8859-8" },
141
- {"" }, {"" },
142
- {"big5" , "Big5" },
143
- {"utf16" , "UTF-16" },
144
- {"cp1250" , "Windows-1250" },
145
- {"" }, {"" }, {"" },
146
- {"cp850" , "CP850" },
147
- {"tis620" , "TIS-620" },
138
+ {"cp1256" , "Windows-1256" },
148
139
{"" }, {"" }, {"" },
149
140
{"cp932" , "Windows-31J" },
141
+ {"hebrew" , "ISO-8859-8" },
142
+ {"" }, {"" }, {"" }, {"" },
150
143
{"latin5" , "ISO-8859-9" },
151
- {"" }, {"" }, {"" }, {"" }, {"" }, {"" },
144
+ {"" }, {"" }, {"" },
145
+ {"cp866" , "IBM866" },
146
+ {"" }, {"" }, {"" }, {"" }, {"" }, {"" }, {"" },
152
147
{"armscii8" , NULL }
153
148
};
154
149
155
150
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH )
156
151
{
157
- register int key = mysql2_mysql_enc_name_to_rb_hash (str , len );
152
+ register unsigned int key = mysql2_mysql_enc_name_to_rb_hash (str , len );
158
153
159
- if (key <= MAX_HASH_VALUE && key >= 0 )
154
+ if (key <= MAX_HASH_VALUE )
160
155
{
161
156
register const char * s = wordlist [key ].name ;
162
157
0 commit comments