@@ -9302,21 +9302,68 @@ static const unsigned long myhtml_encoding_map_x_mac_cyrillic[] = {
93029302 1096, 1097, 1098, 1099, 1100, 1101, 1102, 8364,
93039303};
93049304
9305- static const myhtml_encoding_custom_f myhtml_encoding_function_index[] = {
9306- myhtml_encoding_decode_utf_8, NULL, NULL, myhtml_encoding_decode_utf_8, myhtml_encoding_decode_utf_16le,
9307- myhtml_encoding_decode_utf_16be, myhtml_encoding_decode_x_user_defined,
9308- myhtml_encoding_decode_big5, myhtml_encoding_decode_euc_kr, myhtml_encoding_decode_gb18030,
9309- myhtml_encoding_decode_ibm866, myhtml_encoding_decode_iso_8859_10, myhtml_encoding_decode_iso_8859_13,
9310- myhtml_encoding_decode_iso_8859_14, myhtml_encoding_decode_iso_8859_15, myhtml_encoding_decode_iso_8859_16,
9311- myhtml_encoding_decode_iso_8859_2, myhtml_encoding_decode_iso_8859_3, myhtml_encoding_decode_iso_8859_4,
9312- myhtml_encoding_decode_iso_8859_5, myhtml_encoding_decode_iso_8859_6, myhtml_encoding_decode_iso_8859_7,
9313- myhtml_encoding_decode_iso_8859_8, myhtml_encoding_decode_koi8_r, myhtml_encoding_decode_koi8_u,
9314- myhtml_encoding_decode_macintosh, myhtml_encoding_decode_windows_1250, myhtml_encoding_decode_windows_1251,
9315- myhtml_encoding_decode_windows_1252, myhtml_encoding_decode_windows_1253, myhtml_encoding_decode_windows_1254,
9316- myhtml_encoding_decode_windows_1255, myhtml_encoding_decode_windows_1256, myhtml_encoding_decode_windows_1257,
9317- myhtml_encoding_decode_windows_1258, myhtml_encoding_decode_windows_874, myhtml_encoding_decode_x_mac_cyrillic,
9318- myhtml_encoding_decode_iso_2022_jp, myhtml_encoding_decode_gbk, myhtml_encoding_decode_shift_jis,
9319- myhtml_encoding_decode_euc_jp, myhtml_encoding_decode_iso_8859_8_i
9305+ //static const myhtml_encoding_custom_f myhtml_encoding_function_index[] = {
9306+ // myhtml_encoding_decode_utf_8, NULL, NULL, myhtml_encoding_decode_utf_8, myhtml_encoding_decode_utf_16le,
9307+ // myhtml_encoding_decode_utf_16be, myhtml_encoding_decode_x_user_defined,
9308+ // myhtml_encoding_decode_big5, myhtml_encoding_decode_euc_kr, myhtml_encoding_decode_gb18030,
9309+ // myhtml_encoding_decode_ibm866, myhtml_encoding_decode_iso_8859_10, myhtml_encoding_decode_iso_8859_13,
9310+ // myhtml_encoding_decode_iso_8859_14, myhtml_encoding_decode_iso_8859_15, myhtml_encoding_decode_iso_8859_16,
9311+ // myhtml_encoding_decode_iso_8859_2, myhtml_encoding_decode_iso_8859_3, myhtml_encoding_decode_iso_8859_4,
9312+ // myhtml_encoding_decode_iso_8859_5, myhtml_encoding_decode_iso_8859_6, myhtml_encoding_decode_iso_8859_7,
9313+ // myhtml_encoding_decode_iso_8859_8, myhtml_encoding_decode_koi8_r, myhtml_encoding_decode_koi8_u,
9314+ // myhtml_encoding_decode_macintosh, myhtml_encoding_decode_windows_1250, myhtml_encoding_decode_windows_1251,
9315+ // myhtml_encoding_decode_windows_1252, myhtml_encoding_decode_windows_1253, myhtml_encoding_decode_windows_1254,
9316+ // myhtml_encoding_decode_windows_1255, myhtml_encoding_decode_windows_1256, myhtml_encoding_decode_windows_1257,
9317+ // myhtml_encoding_decode_windows_1258, myhtml_encoding_decode_windows_874, myhtml_encoding_decode_x_mac_cyrillic,
9318+ // myhtml_encoding_decode_iso_2022_jp, myhtml_encoding_decode_gbk, myhtml_encoding_decode_shift_jis,
9319+ // myhtml_encoding_decode_euc_jp, myhtml_encoding_decode_iso_8859_8_i
9320+ //};
9321+
9322+ static const myhtml_encoding_custom_f myhtml_encoding_function_index[] =
9323+ {
9324+ myhtml_encoding_decode_utf_8, // MyHTML_ENCODING_DEFAULT
9325+ NULL,
9326+ NULL,
9327+ myhtml_encoding_decode_utf_8, // MyHTML_ENCODING_UTF_8
9328+ myhtml_encoding_decode_utf_16le, // MyHTML_ENCODING_UTF_16LE
9329+ myhtml_encoding_decode_utf_16be, // MyHTML_ENCODING_UTF_16BE
9330+ myhtml_encoding_decode_x_user_defined, // MyHTML_ENCODING_X_USER_DEFINED
9331+ myhtml_encoding_decode_big5, // MyHTML_ENCODING_BIG5
9332+ myhtml_encoding_decode_euc_jp, // MyHTML_ENCODING_EUC_JP
9333+ myhtml_encoding_decode_euc_kr, // MyHTML_ENCODING_EUC_KR
9334+ myhtml_encoding_decode_gb18030, // MyHTML_ENCODING_GB18030
9335+ myhtml_encoding_decode_gbk, // MyHTML_ENCODING_GBK
9336+ myhtml_encoding_decode_ibm866, // MyHTML_ENCODING_IBM866
9337+ myhtml_encoding_decode_iso_2022_jp, // MyHTML_ENCODING_ISO_2022_JP
9338+ myhtml_encoding_decode_iso_8859_10, // MyHTML_ENCODING_ISO_8859_10
9339+ myhtml_encoding_decode_iso_8859_13, // MyHTML_ENCODING_ISO_8859_13
9340+ myhtml_encoding_decode_iso_8859_14, // MyHTML_ENCODING_ISO_8859_14
9341+ myhtml_encoding_decode_iso_8859_15, // MyHTML_ENCODING_ISO_8859_15
9342+ myhtml_encoding_decode_iso_8859_16, // MyHTML_ENCODING_ISO_8859_16
9343+ myhtml_encoding_decode_iso_8859_2, // MyHTML_ENCODING_ISO_8859_2
9344+ myhtml_encoding_decode_iso_8859_3, // MyHTML_ENCODING_ISO_8859_3
9345+ myhtml_encoding_decode_iso_8859_4, // MyHTML_ENCODING_ISO_8859_4
9346+ myhtml_encoding_decode_iso_8859_5, // MyHTML_ENCODING_ISO_8859_5
9347+ myhtml_encoding_decode_iso_8859_6, // MyHTML_ENCODING_ISO_8859_6
9348+ myhtml_encoding_decode_iso_8859_7, // MyHTML_ENCODING_ISO_8859_7
9349+ myhtml_encoding_decode_iso_8859_8, // MyHTML_ENCODING_ISO_8859_8
9350+ myhtml_encoding_decode_iso_8859_8_i, // MyHTML_ENCODING_ISO_8859_8_I
9351+ myhtml_encoding_decode_koi8_r, // MyHTML_ENCODING_KOI8_R
9352+ myhtml_encoding_decode_koi8_u, // MyHTML_ENCODING_KOI8_U
9353+ myhtml_encoding_decode_macintosh, // MyHTML_ENCODING_MACINTOSH
9354+ myhtml_encoding_decode_shift_jis, // MyHTML_ENCODING_SHIFT_JIS
9355+ myhtml_encoding_decode_windows_1250, // MyHTML_ENCODING_WINDOWS_1250
9356+ myhtml_encoding_decode_windows_1251, // MyHTML_ENCODING_WINDOWS_1251
9357+ myhtml_encoding_decode_windows_1252, // MyHTML_ENCODING_WINDOWS_1252
9358+ myhtml_encoding_decode_windows_1253, // MyHTML_ENCODING_WINDOWS_1253
9359+ myhtml_encoding_decode_windows_1254, // MyHTML_ENCODING_WINDOWS_1254
9360+ myhtml_encoding_decode_windows_1255, // MyHTML_ENCODING_WINDOWS_1255
9361+ myhtml_encoding_decode_windows_1256, // MyHTML_ENCODING_WINDOWS_1256
9362+ myhtml_encoding_decode_windows_1257, // MyHTML_ENCODING_WINDOWS_1257
9363+ myhtml_encoding_decode_windows_1258, // MyHTML_ENCODING_WINDOWS_1258
9364+ myhtml_encoding_decode_windows_874, // MyHTML_ENCODING_WINDOWS_874
9365+ myhtml_encoding_decode_x_mac_cyrillic, // MyHTML_ENCODING_X_MAC_CYRILLIC
9366+ NULL,
93209367};
93219368
93229369#ifdef __cplusplus
0 commit comments