mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
Making mbstring compile under WIn32
This commit is contained in:
parent
810f3a5711
commit
7d88c35ffd
66
ext/mbstring/cp932_table.h
Normal file
66
ext/mbstring/cp932_table.h
Normal file
@ -0,0 +1,66 @@
|
||||
/*
|
||||
* cp932 table
|
||||
*/
|
||||
static const unsigned short cp932ext3_eucjp_table[] = {
|
||||
/* ku 115 */
|
||||
0xF3F3,0xF3F4,0xF3F5,0xF3F6,0xF3F7,0xF3F8,0xF3F9,0xF3FA,
|
||||
0xF3FB,0xF3FC,0xF3FD,0xF3FE,0xF4A1,0xF4A2,0xF4A3,0xF4A4,
|
||||
0xF4A5,0xF4A6,0xF4A7,0xF4A8,0x224C,0xA2C3,0xF4A9,0xF4AA,
|
||||
0xF4AB,0xF4AC,0xF4AD,0x2268,0xD4E3,0xDCDF,0xE4E9,0xE3F8,
|
||||
0xD9A1,0xB1BB,0xF4AE,0xC2AD,0xC3FC,0xE4D0,0xC2BF,0xBCF4,
|
||||
0xB0A9,0xB0C8,0xF4AF,0xB0D2,0xB0D4,0xB0E3,0xB0EE,0xB1A7,
|
||||
0xB1A3,0xB1AC,0xB1A9,0xB1BE,0xB1DF,0xB1D8,0xB1C8,0xB1D7,
|
||||
0xB1E3,0xB1F4,0xB1E1,0xB2A3,0xF4B0,0xB2BB,0xB2E6,0xB2ED,
|
||||
0xB2F5,0xB2FC,0xF4B1,0xB3B5,0xB3D8,0xB3DB,0xB3E5,0xB3EE,
|
||||
0xB3FB,0xF4B2,0xF4B3,0xB4C0,0xB4C7,0xB4D0,0xB4DE,0xF4B4,
|
||||
0xB5AA,0xF4B5,0xB5AF,0xB5C4,0xB5E8,0xF4B6,0xB7C2,0xB7E4,
|
||||
0xB7E8,0xB7E7,0xF4B7,0xF4B8,0xF4B9,0xB8CE,
|
||||
|
||||
/* ku 116 */
|
||||
0xB8E1,0xB8F5,0xB8F7,0xB8F8,0xB8FC,0xB9AF,0xB9B7,0xBABE,
|
||||
0xBADB,0xCDAA,0xBAE1,0xF4BA,0xBAEB,0xBBB3,0xBBB8,0xF4BB,
|
||||
0xBBCA,0xF4BC,0xF4BD,0xBBD0,0xBBDE,0xBBF4,0xBBF5,0xBBF9,
|
||||
0xBCE4,0xBCED,0xBCFE,0xF4BE,0xBDC2,0xBDE7,0xF4BF,0xBDF0,
|
||||
0xBEB0,0xBEAC,0xF4C0,0xBEB3,0xBEBD,0xBECD,0xBEC9,0xBEE4,
|
||||
0xBFA8,0xBFC9,0xC0C4,0xC0E4,0xC0F4,0xC1A6,0xF4C1,0xC1F5,
|
||||
0xC1FC,0xF4C2,0xC1F8,0xC2AB,0xC2A1,0xC2A5,0xF4C3,0xC2B8,
|
||||
0xC2BA,0xF4C4,0xC2C4,0xC2D2,0xC2D7,0xC2DB,0xC2DE,0xC2ED,
|
||||
0xC2F0,0xF4C5,0xC3A1,0xC3B5,0xC3C9,0xC3B9,0xF4C6,0xC3D8,
|
||||
0xC3FE,0xF4C7,0xC4CC,0xF4C8,0xC4D9,0xC4EA,0xC4FD,0xF4C9,
|
||||
0xC5A7,0xC5B5,0xC5B6,0xF4CA,0xC5D5,0xC6B8,0xC6D7,0xC6E0,
|
||||
0xC6EA,0xC6E3,0xC7A1,0xC7AB,0xC7C7,0xC7C3,
|
||||
|
||||
/* ku 117 */
|
||||
0xC7CB,0xC7CF,0xC7D9,0xF4CB,0xF4CC,0xC7E6,0xC7EE,0xC7FC,
|
||||
0xC7EB,0xC7F0,0xC8B1,0xC8E5,0xC8F8,0xC9A6,0xC9AB,0xC9AD,
|
||||
0xF4CD,0xC9CA,0xC9D3,0xC9E9,0xC9E3,0xC9FC,0xC9F4,0xC9F5,
|
||||
0xF4CE,0xCAB3,0xCABD,0xCAEF,0xCAF1,0xCBAE,0xF4CF,0xCBCA,
|
||||
0xCBE6,0xCBEA,0xCBF0,0xCBF4,0xCBEE,0xCCA5,0xCBF9,0xCCAB,
|
||||
0xCCAE,0xCCAD,0xCCB2,0xCCC2,0xCCD0,0xCCD9,0xF4D0,0xCDBB,
|
||||
0xF4D1,0xCEBB,0xF4D2,0xCEBA,0xCEC3,0xF4D3,0xCEF2,0xB3DD,
|
||||
0xCFD5,0xCFE2,0xCFE9,0xCFED,0xF4D4,0xF4D5,0xF4D6,0xF4D7,
|
||||
0xD0E5,0xF4D8,0xD0E9,0xD1E8,0xF4D9,0xF4DA,0xD1EC,0xD2BB,
|
||||
0xF4DB,0xD3E1,0xD3E8,0xD4A7,0xF4DC,0xF4DD,0xD4D4,0xD4F2,
|
||||
0xD5AE,0xF4DE,0xD7DE,0xF4DF,0xD8A2,0xD8B7,0xD8C1,0xD8D1,
|
||||
0xD8F4,0xD9C6,0xD9C8,0xD9D1,0xF4E0,0xF4E1,
|
||||
|
||||
/* ku 118 */
|
||||
0xF4E2,0xF4E3,0xF4E4,0xDCD3,0xDDC8,0xDDD4,0xDDEA,0xDDFA,
|
||||
0xDEA4,0xDEB0,0xF4E5,0xDEB5,0xDECB,0xF4E6,0xDFB9,0xF4E7,
|
||||
0xDFC3,0xF4E8,0xF4E9,0xE0D9,0xF4EA,0xF4EB,0xE1E2,0xF4EC,
|
||||
0xF4ED,0xF4EE,0xE2C7,0xE3A8,0xE3A6,0xE3A9,0xE3AF,0xE3B0,
|
||||
0xE3AA,0xE3AB,0xE3BC,0xE3C1,0xE3BF,0xE3D5,0xE3D8,0xE3D6,
|
||||
0xE3DF,0xE3E3,0xE3E1,0xE3D4,0xE3E9,0xE4A6,0xE3F1,0xE3F2,
|
||||
0xE4CB,0xE4C1,0xE4C3,0xE4BE,0xF4EF,0xE4C0,0xE4C7,0xE4BF,
|
||||
0xE4E0,0xE4DE,0xE4D1,0xF4F0,0xE4DC,0xE4D2,0xE4DB,0xE4D4,
|
||||
0xE4FA,0xE4EF,0xE5B3,0xE5BF,0xE5C9,0xE5D0,0xE5E2,0xE5EA,
|
||||
0xE5EB,0xF4F1,0xF4F2,0xF4F3,0xE6E8,0xE6EF,0xE7AC,0xF4F4,
|
||||
0xE7AE,0xF4F5,0xE7B1,0xF4F6,0xE7B2,0xE8B1,0xE8B6,0xF4F7,
|
||||
0xF4F8,0xE8DD,0xF4F9,0xF4FA,0xE9D1,0xF4FB,
|
||||
|
||||
/* ku 119 */
|
||||
0xE9ED,0xEACD,0xF4FC,0xEADB,0xEAE6,0xEAEA,0xEBA5,0xEBFB,
|
||||
0xEBFA,0xF4FD,0xECD6,0xF4FE
|
||||
};
|
||||
|
||||
static const int cp932ext3_eucjp_table_size = (sizeof (cp932ext3_eucjp_table) / sizeof (unsigned short));
|
@ -101,31 +101,7 @@
|
||||
#define mbfl_prealloc realloc
|
||||
#define mbfl_pfree free
|
||||
|
||||
/* unicode table */
|
||||
static const unsigned short cp1252_ucs_table[];
|
||||
static const unsigned short iso8859_2_ucs_table[];
|
||||
static const unsigned short iso8859_3_ucs_table[];
|
||||
static const unsigned short iso8859_4_ucs_table[];
|
||||
static const unsigned short iso8859_5_ucs_table[];
|
||||
static const unsigned short iso8859_6_ucs_table[];
|
||||
static const unsigned short iso8859_7_ucs_table[];
|
||||
static const unsigned short iso8859_8_ucs_table[];
|
||||
static const unsigned short iso8859_9_ucs_table[];
|
||||
static const unsigned short iso8859_10_ucs_table[];
|
||||
static const unsigned short iso8859_13_ucs_table[];
|
||||
static const unsigned short iso8859_14_ucs_table[];
|
||||
static const unsigned short iso8859_15_ucs_table[];
|
||||
|
||||
/* charactor property table */
|
||||
#define MBFL_CHP_CTL 0x01
|
||||
#define MBFL_CHP_DIGIT 0x02
|
||||
#define MBFL_CHP_UALPHA 0x04
|
||||
#define MBFL_CHP_LALPHA 0x08
|
||||
#define MBFL_CHP_MMHQENC 0x10 /* must Q-encoding in MIME Header encoded-word */
|
||||
#define MBFL_CHP_MSPECIAL 0x20 /* RFC822 Special characters */
|
||||
|
||||
static const unsigned char mbfl_charprop_table[];
|
||||
|
||||
#include "unicode_table.h"
|
||||
|
||||
/* language structure */
|
||||
static const char *mbfl_language_uni_aliases[] = {"universal", "none", NULL};
|
||||
@ -134,7 +110,7 @@ static mbfl_language mbfl_language_uni = {
|
||||
mbfl_no_language_uni,
|
||||
"uni",
|
||||
"uni",
|
||||
&mbfl_language_uni_aliases,
|
||||
(const char *(*)[])&mbfl_language_uni_aliases,
|
||||
mbfl_no_encoding_utf8,
|
||||
mbfl_no_encoding_base64,
|
||||
mbfl_no_encoding_base64
|
||||
@ -234,7 +210,7 @@ static mbfl_encoding mbfl_encoding_pass = {
|
||||
mbfl_no_encoding_pass,
|
||||
"pass",
|
||||
NULL,
|
||||
&mbfl_encoding_pass_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_pass_aliases,
|
||||
NULL,
|
||||
0
|
||||
};
|
||||
@ -245,7 +221,7 @@ static mbfl_encoding mbfl_encoding_auto = {
|
||||
mbfl_no_encoding_auto,
|
||||
"auto",
|
||||
NULL,
|
||||
&mbfl_encoding_auto_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_auto_aliases,
|
||||
NULL,
|
||||
0
|
||||
};
|
||||
@ -319,7 +295,7 @@ static mbfl_encoding mbfl_encoding_qprint = {
|
||||
mbfl_no_encoding_qprint,
|
||||
"Quoted-Printable",
|
||||
"Quoted-Printable",
|
||||
&mbfl_encoding_qprint_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_qprint_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_SBCS
|
||||
};
|
||||
@ -348,7 +324,7 @@ static mbfl_encoding mbfl_encoding_ucs2 = {
|
||||
mbfl_no_encoding_ucs2,
|
||||
"UCS-2",
|
||||
"UCS-2",
|
||||
&mbfl_encoding_ucs2_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_ucs2_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_WCS2BE
|
||||
};
|
||||
@ -377,7 +353,7 @@ static mbfl_encoding mbfl_encoding_ucs4 = {
|
||||
mbfl_no_encoding_ucs4,
|
||||
"UCS-4",
|
||||
"UCS-4",
|
||||
&mbfl_encoding_ucs4_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_ucs4_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_WCS4BE
|
||||
};
|
||||
@ -406,7 +382,7 @@ static mbfl_encoding mbfl_encoding_utf32 = {
|
||||
mbfl_no_encoding_utf32,
|
||||
"UTF-32",
|
||||
"UTF-32",
|
||||
&mbfl_encoding_utf32_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_utf32_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_WCS4BE
|
||||
};
|
||||
@ -435,7 +411,7 @@ static mbfl_encoding mbfl_encoding_utf16 = {
|
||||
mbfl_no_encoding_utf16,
|
||||
"UTF-16",
|
||||
"UTF-16",
|
||||
&mbfl_encoding_utf16_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_utf16_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_MWC2BE
|
||||
};
|
||||
@ -464,7 +440,7 @@ static mbfl_encoding mbfl_encoding_utf8 = {
|
||||
mbfl_no_encoding_utf8,
|
||||
"UTF-8",
|
||||
"UTF-8",
|
||||
&mbfl_encoding_utf8_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_utf8_aliases,
|
||||
mblen_table_utf8,
|
||||
MBFL_ENCTYPE_MBCS
|
||||
};
|
||||
@ -475,7 +451,7 @@ static mbfl_encoding mbfl_encoding_utf7 = {
|
||||
mbfl_no_encoding_utf7,
|
||||
"UTF-7",
|
||||
"UTF-7",
|
||||
&mbfl_encoding_utf7_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_utf7_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_MBCS | MBFL_ENCTYPE_SHFTCODE
|
||||
};
|
||||
@ -504,7 +480,7 @@ static mbfl_encoding mbfl_encoding_euc_jp = {
|
||||
mbfl_no_encoding_euc_jp,
|
||||
"EUC-JP",
|
||||
"EUC-JP",
|
||||
&mbfl_encoding_euc_jp_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_euc_jp_aliases,
|
||||
mblen_table_eucjp,
|
||||
MBFL_ENCTYPE_MBCS
|
||||
};
|
||||
@ -515,7 +491,7 @@ static mbfl_encoding mbfl_encoding_sjis = {
|
||||
mbfl_no_encoding_sjis,
|
||||
"SJIS",
|
||||
"Shift_JIS",
|
||||
&mbfl_encoding_sjis_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_sjis_aliases,
|
||||
mblen_table_sjis,
|
||||
MBFL_ENCTYPE_MBCS
|
||||
};
|
||||
@ -526,7 +502,7 @@ static mbfl_encoding mbfl_encoding_eucjp_win = {
|
||||
mbfl_no_encoding_eucjp_win,
|
||||
"eucJP-win",
|
||||
"EUC-JP",
|
||||
&mbfl_encoding_eucjp_win_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_eucjp_win_aliases,
|
||||
mblen_table_eucjp,
|
||||
MBFL_ENCTYPE_MBCS
|
||||
};
|
||||
@ -537,7 +513,7 @@ static mbfl_encoding mbfl_encoding_sjis_win = {
|
||||
mbfl_no_encoding_sjis_win,
|
||||
"SJIS-win",
|
||||
"Shift_JIS",
|
||||
&mbfl_encoding_sjis_win_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_sjis_win_aliases,
|
||||
mblen_table_sjis,
|
||||
MBFL_ENCTYPE_MBCS
|
||||
};
|
||||
@ -566,7 +542,7 @@ static mbfl_encoding mbfl_encoding_cp1252 = {
|
||||
mbfl_no_encoding_cp1252,
|
||||
"Windows-1252",
|
||||
"Windows-1252",
|
||||
&mbfl_encoding_cp1252_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_cp1252_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_SBCS
|
||||
};
|
||||
@ -577,7 +553,7 @@ static mbfl_encoding mbfl_encoding_8859_1 = {
|
||||
mbfl_no_encoding_8859_1,
|
||||
"ISO-8859-1",
|
||||
"ISO-8859-1",
|
||||
&mbfl_encoding_8859_1_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_8859_1_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_SBCS
|
||||
};
|
||||
@ -588,7 +564,7 @@ static mbfl_encoding mbfl_encoding_8859_2 = {
|
||||
mbfl_no_encoding_8859_2,
|
||||
"ISO-8859-2",
|
||||
"ISO-8859-2",
|
||||
&mbfl_encoding_8859_2_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_8859_2_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_SBCS
|
||||
};
|
||||
@ -599,7 +575,7 @@ static mbfl_encoding mbfl_encoding_8859_3 = {
|
||||
mbfl_no_encoding_8859_3,
|
||||
"ISO-8859-3",
|
||||
"ISO-8859-3",
|
||||
&mbfl_encoding_8859_3_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_8859_3_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_SBCS
|
||||
};
|
||||
@ -610,7 +586,7 @@ static mbfl_encoding mbfl_encoding_8859_4 = {
|
||||
mbfl_no_encoding_8859_4,
|
||||
"ISO-8859-4",
|
||||
"ISO-8859-4",
|
||||
&mbfl_encoding_8859_4_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_8859_4_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_SBCS
|
||||
};
|
||||
@ -621,7 +597,7 @@ static mbfl_encoding mbfl_encoding_8859_5 = {
|
||||
mbfl_no_encoding_8859_5,
|
||||
"ISO-8859-5",
|
||||
"ISO-8859-5",
|
||||
&mbfl_encoding_8859_5_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_8859_5_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_SBCS
|
||||
};
|
||||
@ -632,7 +608,7 @@ static mbfl_encoding mbfl_encoding_8859_6 = {
|
||||
mbfl_no_encoding_8859_6,
|
||||
"ISO-8859-6",
|
||||
"ISO-8859-6",
|
||||
&mbfl_encoding_8859_6_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_8859_6_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_SBCS
|
||||
};
|
||||
@ -643,7 +619,7 @@ static mbfl_encoding mbfl_encoding_8859_7 = {
|
||||
mbfl_no_encoding_8859_7,
|
||||
"ISO-8859-7",
|
||||
"ISO-8859-7",
|
||||
&mbfl_encoding_8859_7_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_8859_7_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_SBCS
|
||||
};
|
||||
@ -654,7 +630,7 @@ static mbfl_encoding mbfl_encoding_8859_8 = {
|
||||
mbfl_no_encoding_8859_8,
|
||||
"ISO-8859-8",
|
||||
"ISO-8859-8",
|
||||
&mbfl_encoding_8859_8_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_8859_8_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_SBCS
|
||||
};
|
||||
@ -665,7 +641,7 @@ static mbfl_encoding mbfl_encoding_8859_9 = {
|
||||
mbfl_no_encoding_8859_9,
|
||||
"ISO-8859-9",
|
||||
"ISO-8859-9",
|
||||
&mbfl_encoding_8859_9_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_8859_9_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_SBCS
|
||||
};
|
||||
@ -676,7 +652,7 @@ static mbfl_encoding mbfl_encoding_8859_10 = {
|
||||
mbfl_no_encoding_8859_10,
|
||||
"ISO-8859-10",
|
||||
"ISO-8859-10",
|
||||
&mbfl_encoding_8859_10_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_8859_10_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_SBCS
|
||||
};
|
||||
@ -687,7 +663,7 @@ static mbfl_encoding mbfl_encoding_8859_13 = {
|
||||
mbfl_no_encoding_8859_13,
|
||||
"ISO-8859-13",
|
||||
"ISO-8859-13",
|
||||
&mbfl_encoding_8859_13_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_8859_13_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_SBCS
|
||||
};
|
||||
@ -698,7 +674,7 @@ static mbfl_encoding mbfl_encoding_8859_14 = {
|
||||
mbfl_no_encoding_8859_14,
|
||||
"ISO-8859-14",
|
||||
"ISO-8859-14",
|
||||
&mbfl_encoding_8859_14_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_8859_14_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_SBCS
|
||||
};
|
||||
@ -709,7 +685,7 @@ static mbfl_encoding mbfl_encoding_8859_15 = {
|
||||
mbfl_no_encoding_8859_15,
|
||||
"ISO-8859-15",
|
||||
"ISO-8859-15",
|
||||
&mbfl_encoding_8859_15_aliases,
|
||||
(const char *(*)[])&mbfl_encoding_8859_15_aliases,
|
||||
NULL,
|
||||
MBFL_ENCTYPE_SBCS
|
||||
};
|
||||
@ -8251,348 +8227,4 @@ mbfl_html_numeric_entity(
|
||||
mbfl_convert_filter_delete(pc.decoder);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Unicode table
|
||||
*/
|
||||
|
||||
|
||||
/* Windows CodePage 1252 - it's the same as iso-8859-1 but
|
||||
* defines extra symbols in the range 0x80-0x9f.
|
||||
* This table differs from the rest of the unicode tables below
|
||||
* as it only covers this range, while the rest cover 0xa0 onwards */
|
||||
static const unsigned short cp1252_ucs_table[] = {
|
||||
0xfffe,0xfffe,0x201a,0x0192,0x201e,0x2026,0x2020,0x2021,
|
||||
0x02c6,0x2030,0x0160,0x2039,0x0152,0xfffe,0xfffe,0xfffe,
|
||||
0xfffe,0x2018,0x2019,0x201c,0x201d,0x2022,0x2013,0x02dc,
|
||||
0x2122,0x0161,0x203a,0x0153,0xfffe,0xfffe,0x0178
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_2_ucs_table[] = {
|
||||
0x00A0,0x0104,0x02D8,0x0141,0x00A4,0x013D,0x015A,0x00A7,
|
||||
0x00A8,0x0160,0x015E,0x0164,0x0179,0x00AD,0x017D,0x017B,
|
||||
0x00B0,0x0105,0x02DB,0x0142,0x00B4,0x013E,0x015B,0x02C7,
|
||||
0x00B8,0x0161,0x015F,0x0165,0x017A,0x02DD,0x017E,0x017C,
|
||||
0x0154,0x00C1,0x00C2,0x0102,0x00C4,0x0139,0x0106,0x00C7,
|
||||
0x010C,0x00C9,0x0118,0x00CB,0x011A,0x00CD,0x00CE,0x010E,
|
||||
0x0110,0x0143,0x0147,0x00D3,0x00D4,0x0150,0x00D6,0x00D7,
|
||||
0x0158,0x016E,0x00DA,0x0170,0x00DC,0x00DD,0x0162,0x00DF,
|
||||
0x0155,0x00E1,0x00E2,0x0103,0x00E4,0x013A,0x0107,0x00E7,
|
||||
0x010D,0x00E9,0x0119,0x00EB,0x011B,0x00ED,0x00EE,0x010F,
|
||||
0x0111,0x0144,0x0148,0x00F3,0x00F4,0x0151,0x00F6,0x00F7,
|
||||
0x0159,0x016F,0x00FA,0x0171,0x00FC,0x00FD,0x0163,0x02D9
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_3_ucs_table[] = {
|
||||
0x00A0,0x0126,0x02D8,0x00A3,0x00A4,0x0000,0x0124,0x00A7,
|
||||
0x00A8,0x0130,0x015E,0x011E,0x0134,0x00AD,0x0000,0x017B,
|
||||
0x00B0,0x0127,0x00B2,0x00B3,0x00B4,0x00B5,0x0125,0x00B7,
|
||||
0x00B8,0x0131,0x015F,0x011F,0x0135,0x00BD,0x0000,0x017C,
|
||||
0x00C0,0x00C1,0x00C2,0x0000,0x00C4,0x010A,0x0108,0x00C7,
|
||||
0x00C8,0x00C9,0x00CA,0x00CB,0x00CC,0x00CD,0x00CE,0x00CF,
|
||||
0x0000,0x00D1,0x00D2,0x00D3,0x00D4,0x0120,0x00D6,0x00D7,
|
||||
0x011C,0x00D9,0x00DA,0x00DB,0x00DC,0x016C,0x015C,0x00DF,
|
||||
0x00E0,0x00E1,0x00E2,0x0000,0x00E4,0x010B,0x0109,0x00E7,
|
||||
0x00E8,0x00E9,0x00EA,0x00EB,0x00EC,0x00ED,0x00EE,0x00EF,
|
||||
0x0000,0x00F1,0x00F2,0x00F3,0x00F4,0x0121,0x00F6,0x00F7,
|
||||
0x011D,0x00F9,0x00FA,0x00FB,0x00FC,0x016D,0x015D,0x02D9
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_4_ucs_table[] = {
|
||||
0x00A0,0x0104,0x0138,0x0156,0x00A4,0x0128,0x013B,0x00A7,
|
||||
0x00A8,0x0160,0x0112,0x0122,0x0166,0x00AD,0x017D,0x00AF,
|
||||
0x00B0,0x0105,0x02DB,0x0157,0x00B4,0x0129,0x013C,0x02C7,
|
||||
0x00B8,0x0161,0x0113,0x0123,0x0167,0x014A,0x017E,0x014B,
|
||||
0x0100,0x00C1,0x00C2,0x00C3,0x00C4,0x00C5,0x00C6,0x012E,
|
||||
0x010C,0x00C9,0x0118,0x00CB,0x0116,0x00CD,0x00CE,0x012A,
|
||||
0x0110,0x0145,0x014C,0x0136,0x00D4,0x00D5,0x00D6,0x00D7,
|
||||
0x00D8,0x0172,0x00DA,0x00DB,0x00DC,0x0168,0x016A,0x00DF,
|
||||
0x0101,0x00E1,0x00E2,0x00E3,0x00E4,0x00E5,0x00E6,0x012F,
|
||||
0x010D,0x00E9,0x0119,0x00EB,0x0117,0x00ED,0x00EE,0x012B,
|
||||
0x0111,0x0146,0x014D,0x0137,0x00F4,0x00F5,0x00F6,0x00F7,
|
||||
0x00F8,0x0173,0x00FA,0x00FB,0x00FC,0x0169,0x016B,0x02D9
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_5_ucs_table[] = {
|
||||
0x00A0,0x0401,0x0402,0x0403,0x0404,0x0405,0x0406,0x0407,
|
||||
0x0408,0x0409,0x040A,0x040B,0x040C,0x00AD,0x040E,0x040F,
|
||||
0x0410,0x0411,0x0412,0x0413,0x0414,0x0415,0x0416,0x0417,
|
||||
0x0418,0x0419,0x041A,0x041B,0x041C,0x041D,0x041E,0x041F,
|
||||
0x0420,0x0421,0x0422,0x0423,0x0424,0x0425,0x0426,0x0427,
|
||||
0x0428,0x0429,0x042A,0x042B,0x042C,0x042D,0x042E,0x042F,
|
||||
0x0430,0x0431,0x0432,0x0433,0x0434,0x0435,0x0436,0x0437,
|
||||
0x0438,0x0439,0x043A,0x043B,0x043C,0x043D,0x043E,0x043F,
|
||||
0x0440,0x0441,0x0442,0x0443,0x0444,0x0445,0x0446,0x0447,
|
||||
0x0448,0x0449,0x044A,0x044B,0x044C,0x044D,0x044E,0x044F,
|
||||
0x2116,0x0451,0x0452,0x0453,0x0454,0x0455,0x0456,0x0457,
|
||||
0x0458,0x0459,0x045A,0x045B,0x045C,0x00A7,0x045E,0x045F
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_6_ucs_table[] = {
|
||||
0x00A0,0x0000,0x0000,0x0000,0x00A4,0x0000,0x0000,0x0000,
|
||||
0x0000,0x0000,0x0000,0x0000,0x060C,0x00AD,0x0000,0x0000,
|
||||
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
|
||||
0x0000,0x0000,0x0000,0x061B,0x0000,0x0000,0x0000,0x061F,
|
||||
0x0000,0x0621,0x0622,0x0623,0x0624,0x0625,0x0626,0x0627,
|
||||
0x0628,0x0629,0x062A,0x062B,0x062C,0x062D,0x062E,0x062F,
|
||||
0x0630,0x0631,0x0632,0x0633,0x0634,0x0635,0x0636,0x0637,
|
||||
0x0638,0x0639,0x063A,0x0000,0x0000,0x0000,0x0000,0x0000,
|
||||
0x0640,0x0641,0x0642,0x0643,0x0644,0x0645,0x0646,0x0647,
|
||||
0x0648,0x0649,0x064A,0x064B,0x064C,0x064D,0x064E,0x064F,
|
||||
0x0650,0x0651,0x0652,0x0000,0x0000,0x0000,0x0000,0x0000,
|
||||
0x0000,0x0000,0x0000,0x0000,0x060C,0x00AD,0x0000,0x0000
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_7_ucs_table[] = {
|
||||
0x00A0,0x2018,0x2019,0x00A3,0x0000,0x0000,0x00A6,0x00A7,
|
||||
0x00A8,0x00A9,0x0000,0x00AB,0x00AC,0x00AD,0x0000,0x2015,
|
||||
0x00B0,0x00B1,0x00B2,0x00B3,0x0384,0x0385,0x0386,0x00B7,
|
||||
0x0388,0x0389,0x038A,0x00BB,0x038C,0x00BD,0x038E,0x038F,
|
||||
0x0390,0x0391,0x0392,0x0393,0x0394,0x0395,0x0396,0x0397,
|
||||
0x0398,0x0399,0x039A,0x039B,0x039C,0x039D,0x039E,0x039F,
|
||||
0x03A0,0x03A1,0x0000,0x03A3,0x03A4,0x03A5,0x03A6,0x03A7,
|
||||
0x03A8,0x03A9,0x03AA,0x03AB,0x03AC,0x03AD,0x03AE,0x03AF,
|
||||
0x03B0,0x03B1,0x03B2,0x03B3,0x03B4,0x03B5,0x03B6,0x03B7,
|
||||
0x03B8,0x03B9,0x03BA,0x03BB,0x03BC,0x03BD,0x03BE,0x03BF,
|
||||
0x03C0,0x03C1,0x03C2,0x03C3,0x03C4,0x03C5,0x03C6,0x03C7,
|
||||
0x03C8,0x03C9,0x03CA,0x03CB,0x03CC,0x03CD,0x03CE,0x0000
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_8_ucs_table[] = {
|
||||
0x00A0,0x0000,0x00A2,0x00A3,0x00A4,0x00A5,0x00A6,0x00A7,
|
||||
0x00A8,0x00A9,0x00D7,0x00AB,0x00AC,0x00AD,0x00AE,0x203E,
|
||||
0x00B0,0x00B1,0x00B2,0x00B3,0x00B4,0x00B5,0x00B6,0x00B7,
|
||||
0x00B8,0x00B9,0x00F7,0x00BB,0x00BC,0x00BD,0x00BE,0x0000,
|
||||
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
|
||||
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
|
||||
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
|
||||
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x2017,
|
||||
0x05D0,0x05D1,0x05D2,0x05D3,0x05D4,0x05D5,0x05D6,0x05D7,
|
||||
0x05D8,0x05D9,0x05DA,0x05DB,0x05DC,0x05DD,0x05DE,0x05DF,
|
||||
0x05E0,0x05E1,0x05E2,0x05E3,0x05E4,0x05E5,0x05E6,0x05E7,
|
||||
0x05E8,0x05E9,0x05EA,0x0000,0x0000,0x0000,0x0000,0x0000
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_9_ucs_table[] = {
|
||||
0x00A0,0x00A1,0x00A2,0x00A3,0x00A4,0x00A5,0x00A6,0x00A7,
|
||||
0x00A8,0x00A9,0x00AA,0x00AB,0x00AC,0x00AD,0x00AE,0x00AF,
|
||||
0x00B0,0x00B1,0x00B2,0x00B3,0x00B4,0x00B5,0x00B6,0x00B7,
|
||||
0x00B8,0x00B9,0x00BA,0x00BB,0x00BC,0x00BD,0x00BE,0x00BF,
|
||||
0x00C0,0x00C1,0x00C2,0x00C3,0x00C4,0x00C5,0x00C6,0x00C7,
|
||||
0x00C8,0x00C9,0x00CA,0x00CB,0x00CC,0x00CD,0x00CE,0x00CF,
|
||||
0x011E,0x00D1,0x00D2,0x00D3,0x00D4,0x00D5,0x00D6,0x00D7,
|
||||
0x00D8,0x00D9,0x00DA,0x00DB,0x00DC,0x0130,0x015E,0x00DF,
|
||||
0x00E0,0x00E1,0x00E2,0x00E3,0x00E4,0x00E5,0x00E6,0x00E7,
|
||||
0x00E8,0x00E9,0x00EA,0x00EB,0x00EC,0x00ED,0x00EE,0x00EF,
|
||||
0x011F,0x00F1,0x00F2,0x00F3,0x00F4,0x00F5,0x00F6,0x00F7,
|
||||
0x00F8,0x00F9,0x00FA,0x00FB,0x00FC,0x0131,0x015F,0x00FF
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_10_ucs_table[] = {
|
||||
0x00A0,0x0104,0x0112,0x0122,0x0124,0x0128,0x0136,0x00A7,
|
||||
0x013B,0x0110,0x0160,0x0166,0x017D,0x00AD,0x016A,0x014A,
|
||||
0x00B0,0x0105,0x0113,0x0123,0x012B,0x0129,0x0137,0x00B7,
|
||||
0x013C,0x0111,0x0161,0x0167,0x017E,0x2015,0x016B,0x014B,
|
||||
0x0100,0x00C1,0x00C2,0x00C3,0x00C4,0x00C5,0x00C6,0x012E,
|
||||
0x010C,0x00C9,0x0118,0x00CB,0x0116,0x00CD,0x00CE,0x00CF,
|
||||
0x00D0,0x0145,0x014C,0x00D3,0x00D4,0x00D5,0x00D6,0x0168,
|
||||
0x00D8,0x0172,0x00DA,0x00DB,0x00DC,0x00DD,0x00DE,0x00DF,
|
||||
0x0101,0x00E1,0x00E2,0x00E3,0x00E4,0x00E5,0x00E6,0x012F,
|
||||
0x010D,0x00E9,0x0119,0x00EB,0x0117,0x00ED,0x00EE,0x00EF,
|
||||
0x00F0,0x0146,0x014D,0x00F3,0x00F4,0x00F5,0x00F6,0x0169,
|
||||
0x00F8,0x0173,0x00FA,0x00FB,0x00FC,0x00FD,0x00FE,0x0138
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_13_ucs_table[] = {
|
||||
0x00A0,0x201D,0x00A2,0x00A3,0x00A4,0x201E,0x00A6,0x00A7,
|
||||
0x00D8,0x00A9,0x0156,0x00AB,0x00AC,0x00AD,0x00AE,0x00C6,
|
||||
0x00B0,0x00B1,0x00B2,0x00B3,0x201C,0x00B5,0x00B6,0x00B7,
|
||||
0x00F8,0x00B9,0x0157,0x00BB,0x00BC,0x00BD,0x00BE,0x00E6,
|
||||
0x0104,0x012E,0x0100,0x0106,0x00C4,0x00C5,0x0118,0x0112,
|
||||
0x010C,0x00C9,0x0179,0x0116,0x0122,0x0136,0x012A,0x013B,
|
||||
0x0160,0x0143,0x0145,0x00D3,0x014C,0x00D5,0x00D6,0x00D7,
|
||||
0x0172,0x0141,0x015A,0x016A,0x00DC,0x017B,0x017D,0x00DF,
|
||||
0x0105,0x012F,0x0101,0x0107,0x00E4,0x00E5,0x0119,0x0113,
|
||||
0x010D,0x00E9,0x017A,0x0117,0x0123,0x0137,0x012B,0x013C,
|
||||
0x0161,0x0144,0x0146,0x00F3,0x014D,0x00F5,0x00F6,0x00F7,
|
||||
0x0173,0x0142,0x015B,0x016B,0x00FC,0x017C,0x017E,0x2019
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_14_ucs_table[] = {
|
||||
0x00A0,0x1E02,0x1E03,0x00A3,0x010A,0x010B,0x1E0A,0x00A7,
|
||||
0x1E80,0x00A9,0x1E82,0x1E0B,0x1EF2,0x00AD,0x00AE,0x0178,
|
||||
0x1E1E,0x1E1F,0x0120,0x0121,0x1E40,0x1E41,0x00B6,0x1E56,
|
||||
0x1E81,0x1E57,0x1E83,0x1E60,0x1EF3,0x1E84,0x1E85,0x1E61,
|
||||
0x00C0,0x00C1,0x00C2,0x00C3,0x00C4,0x00C5,0x00C6,0x00C7,
|
||||
0x00C8,0x00C9,0x00CA,0x00CB,0x00CC,0x00CD,0x00CE,0x00CF,
|
||||
0x0174,0x00D1,0x00D2,0x00D3,0x00D4,0x00D5,0x00D6,0x1E6A,
|
||||
0x00D8,0x00D9,0x00DA,0x00DB,0x00DC,0x00DD,0x0176,0x00DF,
|
||||
0x00E0,0x00E1,0x00E2,0x00E3,0x00E4,0x00E5,0x00E6,0x00E7,
|
||||
0x00E8,0x00E9,0x00EA,0x00EB,0x00EC,0x00ED,0x00EE,0x00EF,
|
||||
0x0175,0x00F1,0x00F2,0x00F3,0x00F4,0x00F5,0x00F6,0x1E6B,
|
||||
0x00F8,0x00F9,0x00FA,0x00FB,0x00FC,0x00FD,0x0177,0x00FF
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_15_ucs_table[] = {
|
||||
0x00A0,0x00A1,0x00A2,0x00A3,0x20AC,0x00A5,0x0160,0x00A7,
|
||||
0x0161,0x00A9,0x00AA,0x00AB,0x00AC,0x00AD,0x00AE,0x00AF,
|
||||
0x00B0,0x00B1,0x00B2,0x00B3,0x017D,0x00B5,0x00B6,0x00B7,
|
||||
0x017E,0x00B9,0x00BA,0x00BB,0x0152,0x0153,0x0178,0x00BF,
|
||||
0x00C0,0x00C1,0x00C2,0x00C3,0x00C4,0x00C5,0x00C6,0x00C7,
|
||||
0x00C8,0x00C9,0x00CA,0x00CB,0x00CC,0x00CD,0x00CE,0x00CF,
|
||||
0x00D0,0x00D1,0x00D2,0x00D3,0x00D4,0x00D5,0x00D6,0x00D7,
|
||||
0x00D8,0x00D9,0x00DA,0x00DB,0x00DC,0x00DD,0x00DE,0x00DF,
|
||||
0x00E0,0x00E1,0x00E2,0x00E3,0x00E4,0x00E5,0x00E6,0x00E7,
|
||||
0x00E8,0x00E9,0x00EA,0x00EB,0x00EC,0x00ED,0x00EE,0x00EF,
|
||||
0x00F0,0x00F1,0x00F2,0x00F3,0x00F4,0x00F5,0x00F6,0x00F7,
|
||||
0x00F8,0x00F9,0x00FA,0x00FB,0x00FC,0x00FD,0x00FE,0x00FF
|
||||
};
|
||||
|
||||
|
||||
static const unsigned char mbfl_charprop_table[] = {
|
||||
/* NUL 0 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC,
|
||||
/* SCH 1 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* SIX 2 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* EIX 3 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* EOT 4 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* ENQ 5 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* ACK 6 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* BEL 7 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* BS 8 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* HI 9 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* LF 10 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* VI 11 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* FF 12 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* CR 13 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* SO 14 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* SI 15 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* SLE 16 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* CSI 17 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* DC2 18 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* DC3 19 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* DC4 20 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* NAK 21 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* SYN 22 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* EIB 23 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* CAN 24 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* EM 25 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* SLB 26 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* ESC 27 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* FS 28 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* GS 29 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* RS 30 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* US 31 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* SP 32 */ MBFL_CHP_MMHQENC ,
|
||||
/* ! 33 */ 0 ,
|
||||
/* " 34 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* # 35 */ MBFL_CHP_MMHQENC ,
|
||||
/* $ 36 */ MBFL_CHP_MMHQENC ,
|
||||
/* % 37 */ MBFL_CHP_MMHQENC ,
|
||||
/* & 38 */ MBFL_CHP_MMHQENC ,
|
||||
/* ' 39 */ MBFL_CHP_MMHQENC ,
|
||||
/* ( 40 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* ) 41 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* * 42 */ 0 ,
|
||||
/* + 43 */ 0 ,
|
||||
/* , 44 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* - 45 */ 0 ,
|
||||
/* . 46 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* / 47 */ 0 ,
|
||||
/* 0 48 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* 1 49 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* 2 50 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* 3 51 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* 4 52 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* 5 53 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* 6 54 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* 7 55 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* 8 56 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* 9 57 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* : 58 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* ; 59 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* < 60 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* = 61 */ 0 ,
|
||||
/* > 62 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* ? 63 */ MBFL_CHP_MMHQENC ,
|
||||
/* @ 64 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* A 65 */ MBFL_CHP_UALPHA ,
|
||||
/* B 66 */ MBFL_CHP_UALPHA ,
|
||||
/* C 67 */ MBFL_CHP_UALPHA ,
|
||||
/* D 68 */ MBFL_CHP_UALPHA ,
|
||||
/* E 69 */ MBFL_CHP_UALPHA ,
|
||||
/* F 70 */ MBFL_CHP_UALPHA ,
|
||||
/* G 71 */ MBFL_CHP_UALPHA ,
|
||||
/* H 72 */ MBFL_CHP_UALPHA ,
|
||||
/* I 73 */ MBFL_CHP_UALPHA ,
|
||||
/* J 74 */ MBFL_CHP_UALPHA ,
|
||||
/* K 75 */ MBFL_CHP_UALPHA ,
|
||||
/* L 76 */ MBFL_CHP_UALPHA ,
|
||||
/* M 77 */ MBFL_CHP_UALPHA ,
|
||||
/* N 78 */ MBFL_CHP_UALPHA ,
|
||||
/* O 79 */ MBFL_CHP_UALPHA ,
|
||||
/* P 80 */ MBFL_CHP_UALPHA ,
|
||||
/* Q 81 */ MBFL_CHP_UALPHA ,
|
||||
/* R 82 */ MBFL_CHP_UALPHA ,
|
||||
/* S 83 */ MBFL_CHP_UALPHA ,
|
||||
/* T 84 */ MBFL_CHP_UALPHA ,
|
||||
/* U 85 */ MBFL_CHP_UALPHA ,
|
||||
/* V 86 */ MBFL_CHP_UALPHA ,
|
||||
/* W 87 */ MBFL_CHP_UALPHA ,
|
||||
/* X 88 */ MBFL_CHP_UALPHA ,
|
||||
/* Y 89 */ MBFL_CHP_UALPHA ,
|
||||
/* Z 90 */ MBFL_CHP_UALPHA ,
|
||||
/* [ 91 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* \ 92 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* ] 93 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* ^ 94 */ MBFL_CHP_MMHQENC ,
|
||||
/* _ 95 */ MBFL_CHP_MMHQENC ,
|
||||
/* ` 96 */ MBFL_CHP_MMHQENC ,
|
||||
/* a 97 */ MBFL_CHP_LALPHA ,
|
||||
/* b 98 */ MBFL_CHP_LALPHA ,
|
||||
/* c 99 */ MBFL_CHP_LALPHA ,
|
||||
/* d 100 */ MBFL_CHP_LALPHA ,
|
||||
/* e 101 */ MBFL_CHP_LALPHA ,
|
||||
/* f 102 */ MBFL_CHP_LALPHA ,
|
||||
/* g 103 */ MBFL_CHP_LALPHA ,
|
||||
/* h 104 */ MBFL_CHP_LALPHA ,
|
||||
/* i 105 */ MBFL_CHP_LALPHA ,
|
||||
/* j 106 */ MBFL_CHP_LALPHA ,
|
||||
/* k 107 */ MBFL_CHP_LALPHA ,
|
||||
/* l 108 */ MBFL_CHP_LALPHA ,
|
||||
/* m 109 */ MBFL_CHP_LALPHA ,
|
||||
/* n 110 */ MBFL_CHP_LALPHA ,
|
||||
/* o 111 */ MBFL_CHP_LALPHA ,
|
||||
/* p 112 */ MBFL_CHP_LALPHA ,
|
||||
/* q 113 */ MBFL_CHP_LALPHA ,
|
||||
/* r 114 */ MBFL_CHP_LALPHA ,
|
||||
/* s 115 */ MBFL_CHP_LALPHA ,
|
||||
/* t 116 */ MBFL_CHP_LALPHA ,
|
||||
/* u 117 */ MBFL_CHP_LALPHA ,
|
||||
/* v 118 */ MBFL_CHP_LALPHA ,
|
||||
/* w 119 */ MBFL_CHP_LALPHA ,
|
||||
/* x 120 */ MBFL_CHP_LALPHA ,
|
||||
/* y 121 */ MBFL_CHP_LALPHA ,
|
||||
/* z 122 */ MBFL_CHP_LALPHA ,
|
||||
/* { 123 */ MBFL_CHP_MMHQENC ,
|
||||
/* | 124 */ MBFL_CHP_MMHQENC ,
|
||||
/* } 125 */ MBFL_CHP_MMHQENC ,
|
||||
/* ~ 126 */ MBFL_CHP_MMHQENC ,
|
||||
/* DEL 127 */ MBFL_CHP_MMHQENC
|
||||
};
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -108,6 +108,10 @@ SOURCE=.\mbstring.c
|
||||
# PROP Default_Filter "h;hpp;hxx;hm;inl"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\cp932_table.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\mbfilter.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
@ -118,6 +122,10 @@ SOURCE=.\mbfilter_ja.h
|
||||
|
||||
SOURCE=.\mbstring.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\unicode_table.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# End Target
|
||||
# End Project
|
||||
|
347
ext/mbstring/unicode_table.h
Normal file
347
ext/mbstring/unicode_table.h
Normal file
@ -0,0 +1,347 @@
|
||||
/* charactor property table */
|
||||
#define MBFL_CHP_CTL 0x01
|
||||
#define MBFL_CHP_DIGIT 0x02
|
||||
#define MBFL_CHP_UALPHA 0x04
|
||||
#define MBFL_CHP_LALPHA 0x08
|
||||
#define MBFL_CHP_MMHQENC 0x10 /* must Q-encoding in MIME Header encoded-word */
|
||||
#define MBFL_CHP_MSPECIAL 0x20 /* RFC822 Special characters */
|
||||
|
||||
/*
|
||||
* Unicode table
|
||||
*/
|
||||
|
||||
|
||||
/* Windows CodePage 1252 - it's the same as iso-8859-1 but
|
||||
* defines extra symbols in the range 0x80-0x9f.
|
||||
* This table differs from the rest of the unicode tables below
|
||||
* as it only covers this range, while the rest cover 0xa0 onwards */
|
||||
static const unsigned short cp1252_ucs_table[] = {
|
||||
0xfffe,0xfffe,0x201a,0x0192,0x201e,0x2026,0x2020,0x2021,
|
||||
0x02c6,0x2030,0x0160,0x2039,0x0152,0xfffe,0xfffe,0xfffe,
|
||||
0xfffe,0x2018,0x2019,0x201c,0x201d,0x2022,0x2013,0x02dc,
|
||||
0x2122,0x0161,0x203a,0x0153,0xfffe,0xfffe,0x0178
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_2_ucs_table[] = {
|
||||
0x00A0,0x0104,0x02D8,0x0141,0x00A4,0x013D,0x015A,0x00A7,
|
||||
0x00A8,0x0160,0x015E,0x0164,0x0179,0x00AD,0x017D,0x017B,
|
||||
0x00B0,0x0105,0x02DB,0x0142,0x00B4,0x013E,0x015B,0x02C7,
|
||||
0x00B8,0x0161,0x015F,0x0165,0x017A,0x02DD,0x017E,0x017C,
|
||||
0x0154,0x00C1,0x00C2,0x0102,0x00C4,0x0139,0x0106,0x00C7,
|
||||
0x010C,0x00C9,0x0118,0x00CB,0x011A,0x00CD,0x00CE,0x010E,
|
||||
0x0110,0x0143,0x0147,0x00D3,0x00D4,0x0150,0x00D6,0x00D7,
|
||||
0x0158,0x016E,0x00DA,0x0170,0x00DC,0x00DD,0x0162,0x00DF,
|
||||
0x0155,0x00E1,0x00E2,0x0103,0x00E4,0x013A,0x0107,0x00E7,
|
||||
0x010D,0x00E9,0x0119,0x00EB,0x011B,0x00ED,0x00EE,0x010F,
|
||||
0x0111,0x0144,0x0148,0x00F3,0x00F4,0x0151,0x00F6,0x00F7,
|
||||
0x0159,0x016F,0x00FA,0x0171,0x00FC,0x00FD,0x0163,0x02D9
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_3_ucs_table[] = {
|
||||
0x00A0,0x0126,0x02D8,0x00A3,0x00A4,0x0000,0x0124,0x00A7,
|
||||
0x00A8,0x0130,0x015E,0x011E,0x0134,0x00AD,0x0000,0x017B,
|
||||
0x00B0,0x0127,0x00B2,0x00B3,0x00B4,0x00B5,0x0125,0x00B7,
|
||||
0x00B8,0x0131,0x015F,0x011F,0x0135,0x00BD,0x0000,0x017C,
|
||||
0x00C0,0x00C1,0x00C2,0x0000,0x00C4,0x010A,0x0108,0x00C7,
|
||||
0x00C8,0x00C9,0x00CA,0x00CB,0x00CC,0x00CD,0x00CE,0x00CF,
|
||||
0x0000,0x00D1,0x00D2,0x00D3,0x00D4,0x0120,0x00D6,0x00D7,
|
||||
0x011C,0x00D9,0x00DA,0x00DB,0x00DC,0x016C,0x015C,0x00DF,
|
||||
0x00E0,0x00E1,0x00E2,0x0000,0x00E4,0x010B,0x0109,0x00E7,
|
||||
0x00E8,0x00E9,0x00EA,0x00EB,0x00EC,0x00ED,0x00EE,0x00EF,
|
||||
0x0000,0x00F1,0x00F2,0x00F3,0x00F4,0x0121,0x00F6,0x00F7,
|
||||
0x011D,0x00F9,0x00FA,0x00FB,0x00FC,0x016D,0x015D,0x02D9
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_4_ucs_table[] = {
|
||||
0x00A0,0x0104,0x0138,0x0156,0x00A4,0x0128,0x013B,0x00A7,
|
||||
0x00A8,0x0160,0x0112,0x0122,0x0166,0x00AD,0x017D,0x00AF,
|
||||
0x00B0,0x0105,0x02DB,0x0157,0x00B4,0x0129,0x013C,0x02C7,
|
||||
0x00B8,0x0161,0x0113,0x0123,0x0167,0x014A,0x017E,0x014B,
|
||||
0x0100,0x00C1,0x00C2,0x00C3,0x00C4,0x00C5,0x00C6,0x012E,
|
||||
0x010C,0x00C9,0x0118,0x00CB,0x0116,0x00CD,0x00CE,0x012A,
|
||||
0x0110,0x0145,0x014C,0x0136,0x00D4,0x00D5,0x00D6,0x00D7,
|
||||
0x00D8,0x0172,0x00DA,0x00DB,0x00DC,0x0168,0x016A,0x00DF,
|
||||
0x0101,0x00E1,0x00E2,0x00E3,0x00E4,0x00E5,0x00E6,0x012F,
|
||||
0x010D,0x00E9,0x0119,0x00EB,0x0117,0x00ED,0x00EE,0x012B,
|
||||
0x0111,0x0146,0x014D,0x0137,0x00F4,0x00F5,0x00F6,0x00F7,
|
||||
0x00F8,0x0173,0x00FA,0x00FB,0x00FC,0x0169,0x016B,0x02D9
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_5_ucs_table[] = {
|
||||
0x00A0,0x0401,0x0402,0x0403,0x0404,0x0405,0x0406,0x0407,
|
||||
0x0408,0x0409,0x040A,0x040B,0x040C,0x00AD,0x040E,0x040F,
|
||||
0x0410,0x0411,0x0412,0x0413,0x0414,0x0415,0x0416,0x0417,
|
||||
0x0418,0x0419,0x041A,0x041B,0x041C,0x041D,0x041E,0x041F,
|
||||
0x0420,0x0421,0x0422,0x0423,0x0424,0x0425,0x0426,0x0427,
|
||||
0x0428,0x0429,0x042A,0x042B,0x042C,0x042D,0x042E,0x042F,
|
||||
0x0430,0x0431,0x0432,0x0433,0x0434,0x0435,0x0436,0x0437,
|
||||
0x0438,0x0439,0x043A,0x043B,0x043C,0x043D,0x043E,0x043F,
|
||||
0x0440,0x0441,0x0442,0x0443,0x0444,0x0445,0x0446,0x0447,
|
||||
0x0448,0x0449,0x044A,0x044B,0x044C,0x044D,0x044E,0x044F,
|
||||
0x2116,0x0451,0x0452,0x0453,0x0454,0x0455,0x0456,0x0457,
|
||||
0x0458,0x0459,0x045A,0x045B,0x045C,0x00A7,0x045E,0x045F
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_6_ucs_table[] = {
|
||||
0x00A0,0x0000,0x0000,0x0000,0x00A4,0x0000,0x0000,0x0000,
|
||||
0x0000,0x0000,0x0000,0x0000,0x060C,0x00AD,0x0000,0x0000,
|
||||
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
|
||||
0x0000,0x0000,0x0000,0x061B,0x0000,0x0000,0x0000,0x061F,
|
||||
0x0000,0x0621,0x0622,0x0623,0x0624,0x0625,0x0626,0x0627,
|
||||
0x0628,0x0629,0x062A,0x062B,0x062C,0x062D,0x062E,0x062F,
|
||||
0x0630,0x0631,0x0632,0x0633,0x0634,0x0635,0x0636,0x0637,
|
||||
0x0638,0x0639,0x063A,0x0000,0x0000,0x0000,0x0000,0x0000,
|
||||
0x0640,0x0641,0x0642,0x0643,0x0644,0x0645,0x0646,0x0647,
|
||||
0x0648,0x0649,0x064A,0x064B,0x064C,0x064D,0x064E,0x064F,
|
||||
0x0650,0x0651,0x0652,0x0000,0x0000,0x0000,0x0000,0x0000,
|
||||
0x0000,0x0000,0x0000,0x0000,0x060C,0x00AD,0x0000,0x0000
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_7_ucs_table[] = {
|
||||
0x00A0,0x2018,0x2019,0x00A3,0x0000,0x0000,0x00A6,0x00A7,
|
||||
0x00A8,0x00A9,0x0000,0x00AB,0x00AC,0x00AD,0x0000,0x2015,
|
||||
0x00B0,0x00B1,0x00B2,0x00B3,0x0384,0x0385,0x0386,0x00B7,
|
||||
0x0388,0x0389,0x038A,0x00BB,0x038C,0x00BD,0x038E,0x038F,
|
||||
0x0390,0x0391,0x0392,0x0393,0x0394,0x0395,0x0396,0x0397,
|
||||
0x0398,0x0399,0x039A,0x039B,0x039C,0x039D,0x039E,0x039F,
|
||||
0x03A0,0x03A1,0x0000,0x03A3,0x03A4,0x03A5,0x03A6,0x03A7,
|
||||
0x03A8,0x03A9,0x03AA,0x03AB,0x03AC,0x03AD,0x03AE,0x03AF,
|
||||
0x03B0,0x03B1,0x03B2,0x03B3,0x03B4,0x03B5,0x03B6,0x03B7,
|
||||
0x03B8,0x03B9,0x03BA,0x03BB,0x03BC,0x03BD,0x03BE,0x03BF,
|
||||
0x03C0,0x03C1,0x03C2,0x03C3,0x03C4,0x03C5,0x03C6,0x03C7,
|
||||
0x03C8,0x03C9,0x03CA,0x03CB,0x03CC,0x03CD,0x03CE,0x0000
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_8_ucs_table[] = {
|
||||
0x00A0,0x0000,0x00A2,0x00A3,0x00A4,0x00A5,0x00A6,0x00A7,
|
||||
0x00A8,0x00A9,0x00D7,0x00AB,0x00AC,0x00AD,0x00AE,0x203E,
|
||||
0x00B0,0x00B1,0x00B2,0x00B3,0x00B4,0x00B5,0x00B6,0x00B7,
|
||||
0x00B8,0x00B9,0x00F7,0x00BB,0x00BC,0x00BD,0x00BE,0x0000,
|
||||
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
|
||||
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
|
||||
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
|
||||
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x2017,
|
||||
0x05D0,0x05D1,0x05D2,0x05D3,0x05D4,0x05D5,0x05D6,0x05D7,
|
||||
0x05D8,0x05D9,0x05DA,0x05DB,0x05DC,0x05DD,0x05DE,0x05DF,
|
||||
0x05E0,0x05E1,0x05E2,0x05E3,0x05E4,0x05E5,0x05E6,0x05E7,
|
||||
0x05E8,0x05E9,0x05EA,0x0000,0x0000,0x0000,0x0000,0x0000
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_9_ucs_table[] = {
|
||||
0x00A0,0x00A1,0x00A2,0x00A3,0x00A4,0x00A5,0x00A6,0x00A7,
|
||||
0x00A8,0x00A9,0x00AA,0x00AB,0x00AC,0x00AD,0x00AE,0x00AF,
|
||||
0x00B0,0x00B1,0x00B2,0x00B3,0x00B4,0x00B5,0x00B6,0x00B7,
|
||||
0x00B8,0x00B9,0x00BA,0x00BB,0x00BC,0x00BD,0x00BE,0x00BF,
|
||||
0x00C0,0x00C1,0x00C2,0x00C3,0x00C4,0x00C5,0x00C6,0x00C7,
|
||||
0x00C8,0x00C9,0x00CA,0x00CB,0x00CC,0x00CD,0x00CE,0x00CF,
|
||||
0x011E,0x00D1,0x00D2,0x00D3,0x00D4,0x00D5,0x00D6,0x00D7,
|
||||
0x00D8,0x00D9,0x00DA,0x00DB,0x00DC,0x0130,0x015E,0x00DF,
|
||||
0x00E0,0x00E1,0x00E2,0x00E3,0x00E4,0x00E5,0x00E6,0x00E7,
|
||||
0x00E8,0x00E9,0x00EA,0x00EB,0x00EC,0x00ED,0x00EE,0x00EF,
|
||||
0x011F,0x00F1,0x00F2,0x00F3,0x00F4,0x00F5,0x00F6,0x00F7,
|
||||
0x00F8,0x00F9,0x00FA,0x00FB,0x00FC,0x0131,0x015F,0x00FF
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_10_ucs_table[] = {
|
||||
0x00A0,0x0104,0x0112,0x0122,0x0124,0x0128,0x0136,0x00A7,
|
||||
0x013B,0x0110,0x0160,0x0166,0x017D,0x00AD,0x016A,0x014A,
|
||||
0x00B0,0x0105,0x0113,0x0123,0x012B,0x0129,0x0137,0x00B7,
|
||||
0x013C,0x0111,0x0161,0x0167,0x017E,0x2015,0x016B,0x014B,
|
||||
0x0100,0x00C1,0x00C2,0x00C3,0x00C4,0x00C5,0x00C6,0x012E,
|
||||
0x010C,0x00C9,0x0118,0x00CB,0x0116,0x00CD,0x00CE,0x00CF,
|
||||
0x00D0,0x0145,0x014C,0x00D3,0x00D4,0x00D5,0x00D6,0x0168,
|
||||
0x00D8,0x0172,0x00DA,0x00DB,0x00DC,0x00DD,0x00DE,0x00DF,
|
||||
0x0101,0x00E1,0x00E2,0x00E3,0x00E4,0x00E5,0x00E6,0x012F,
|
||||
0x010D,0x00E9,0x0119,0x00EB,0x0117,0x00ED,0x00EE,0x00EF,
|
||||
0x00F0,0x0146,0x014D,0x00F3,0x00F4,0x00F5,0x00F6,0x0169,
|
||||
0x00F8,0x0173,0x00FA,0x00FB,0x00FC,0x00FD,0x00FE,0x0138
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_13_ucs_table[] = {
|
||||
0x00A0,0x201D,0x00A2,0x00A3,0x00A4,0x201E,0x00A6,0x00A7,
|
||||
0x00D8,0x00A9,0x0156,0x00AB,0x00AC,0x00AD,0x00AE,0x00C6,
|
||||
0x00B0,0x00B1,0x00B2,0x00B3,0x201C,0x00B5,0x00B6,0x00B7,
|
||||
0x00F8,0x00B9,0x0157,0x00BB,0x00BC,0x00BD,0x00BE,0x00E6,
|
||||
0x0104,0x012E,0x0100,0x0106,0x00C4,0x00C5,0x0118,0x0112,
|
||||
0x010C,0x00C9,0x0179,0x0116,0x0122,0x0136,0x012A,0x013B,
|
||||
0x0160,0x0143,0x0145,0x00D3,0x014C,0x00D5,0x00D6,0x00D7,
|
||||
0x0172,0x0141,0x015A,0x016A,0x00DC,0x017B,0x017D,0x00DF,
|
||||
0x0105,0x012F,0x0101,0x0107,0x00E4,0x00E5,0x0119,0x0113,
|
||||
0x010D,0x00E9,0x017A,0x0117,0x0123,0x0137,0x012B,0x013C,
|
||||
0x0161,0x0144,0x0146,0x00F3,0x014D,0x00F5,0x00F6,0x00F7,
|
||||
0x0173,0x0142,0x015B,0x016B,0x00FC,0x017C,0x017E,0x2019
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_14_ucs_table[] = {
|
||||
0x00A0,0x1E02,0x1E03,0x00A3,0x010A,0x010B,0x1E0A,0x00A7,
|
||||
0x1E80,0x00A9,0x1E82,0x1E0B,0x1EF2,0x00AD,0x00AE,0x0178,
|
||||
0x1E1E,0x1E1F,0x0120,0x0121,0x1E40,0x1E41,0x00B6,0x1E56,
|
||||
0x1E81,0x1E57,0x1E83,0x1E60,0x1EF3,0x1E84,0x1E85,0x1E61,
|
||||
0x00C0,0x00C1,0x00C2,0x00C3,0x00C4,0x00C5,0x00C6,0x00C7,
|
||||
0x00C8,0x00C9,0x00CA,0x00CB,0x00CC,0x00CD,0x00CE,0x00CF,
|
||||
0x0174,0x00D1,0x00D2,0x00D3,0x00D4,0x00D5,0x00D6,0x1E6A,
|
||||
0x00D8,0x00D9,0x00DA,0x00DB,0x00DC,0x00DD,0x0176,0x00DF,
|
||||
0x00E0,0x00E1,0x00E2,0x00E3,0x00E4,0x00E5,0x00E6,0x00E7,
|
||||
0x00E8,0x00E9,0x00EA,0x00EB,0x00EC,0x00ED,0x00EE,0x00EF,
|
||||
0x0175,0x00F1,0x00F2,0x00F3,0x00F4,0x00F5,0x00F6,0x1E6B,
|
||||
0x00F8,0x00F9,0x00FA,0x00FB,0x00FC,0x00FD,0x0177,0x00FF
|
||||
};
|
||||
|
||||
|
||||
static const unsigned short iso8859_15_ucs_table[] = {
|
||||
0x00A0,0x00A1,0x00A2,0x00A3,0x20AC,0x00A5,0x0160,0x00A7,
|
||||
0x0161,0x00A9,0x00AA,0x00AB,0x00AC,0x00AD,0x00AE,0x00AF,
|
||||
0x00B0,0x00B1,0x00B2,0x00B3,0x017D,0x00B5,0x00B6,0x00B7,
|
||||
0x017E,0x00B9,0x00BA,0x00BB,0x0152,0x0153,0x0178,0x00BF,
|
||||
0x00C0,0x00C1,0x00C2,0x00C3,0x00C4,0x00C5,0x00C6,0x00C7,
|
||||
0x00C8,0x00C9,0x00CA,0x00CB,0x00CC,0x00CD,0x00CE,0x00CF,
|
||||
0x00D0,0x00D1,0x00D2,0x00D3,0x00D4,0x00D5,0x00D6,0x00D7,
|
||||
0x00D8,0x00D9,0x00DA,0x00DB,0x00DC,0x00DD,0x00DE,0x00DF,
|
||||
0x00E0,0x00E1,0x00E2,0x00E3,0x00E4,0x00E5,0x00E6,0x00E7,
|
||||
0x00E8,0x00E9,0x00EA,0x00EB,0x00EC,0x00ED,0x00EE,0x00EF,
|
||||
0x00F0,0x00F1,0x00F2,0x00F3,0x00F4,0x00F5,0x00F6,0x00F7,
|
||||
0x00F8,0x00F9,0x00FA,0x00FB,0x00FC,0x00FD,0x00FE,0x00FF
|
||||
};
|
||||
|
||||
|
||||
static const unsigned char mbfl_charprop_table[] = {
|
||||
/* NUL 0 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC,
|
||||
/* SCH 1 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* SIX 2 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* EIX 3 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* EOT 4 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* ENQ 5 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* ACK 6 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* BEL 7 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* BS 8 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* HI 9 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* LF 10 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* VI 11 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* FF 12 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* CR 13 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* SO 14 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* SI 15 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* SLE 16 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* CSI 17 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* DC2 18 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* DC3 19 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* DC4 20 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* NAK 21 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* SYN 22 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* EIB 23 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* CAN 24 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* EM 25 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* SLB 26 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* ESC 27 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* FS 28 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* GS 29 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* RS 30 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* US 31 */ MBFL_CHP_CTL | MBFL_CHP_MMHQENC ,
|
||||
/* SP 32 */ MBFL_CHP_MMHQENC ,
|
||||
/* ! 33 */ 0 ,
|
||||
/* " 34 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* # 35 */ MBFL_CHP_MMHQENC ,
|
||||
/* $ 36 */ MBFL_CHP_MMHQENC ,
|
||||
/* % 37 */ MBFL_CHP_MMHQENC ,
|
||||
/* & 38 */ MBFL_CHP_MMHQENC ,
|
||||
/* ' 39 */ MBFL_CHP_MMHQENC ,
|
||||
/* ( 40 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* ) 41 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* * 42 */ 0 ,
|
||||
/* + 43 */ 0 ,
|
||||
/* , 44 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* - 45 */ 0 ,
|
||||
/* . 46 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* / 47 */ 0 ,
|
||||
/* 0 48 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* 1 49 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* 2 50 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* 3 51 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* 4 52 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* 5 53 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* 6 54 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* 7 55 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* 8 56 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* 9 57 */ MBFL_CHP_DIGIT | MBFL_CHP_MMHQENC ,
|
||||
/* : 58 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* ; 59 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* < 60 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* = 61 */ 0 ,
|
||||
/* > 62 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* ? 63 */ MBFL_CHP_MMHQENC ,
|
||||
/* @ 64 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* A 65 */ MBFL_CHP_UALPHA ,
|
||||
/* B 66 */ MBFL_CHP_UALPHA ,
|
||||
/* C 67 */ MBFL_CHP_UALPHA ,
|
||||
/* D 68 */ MBFL_CHP_UALPHA ,
|
||||
/* E 69 */ MBFL_CHP_UALPHA ,
|
||||
/* F 70 */ MBFL_CHP_UALPHA ,
|
||||
/* G 71 */ MBFL_CHP_UALPHA ,
|
||||
/* H 72 */ MBFL_CHP_UALPHA ,
|
||||
/* I 73 */ MBFL_CHP_UALPHA ,
|
||||
/* J 74 */ MBFL_CHP_UALPHA ,
|
||||
/* K 75 */ MBFL_CHP_UALPHA ,
|
||||
/* L 76 */ MBFL_CHP_UALPHA ,
|
||||
/* M 77 */ MBFL_CHP_UALPHA ,
|
||||
/* N 78 */ MBFL_CHP_UALPHA ,
|
||||
/* O 79 */ MBFL_CHP_UALPHA ,
|
||||
/* P 80 */ MBFL_CHP_UALPHA ,
|
||||
/* Q 81 */ MBFL_CHP_UALPHA ,
|
||||
/* R 82 */ MBFL_CHP_UALPHA ,
|
||||
/* S 83 */ MBFL_CHP_UALPHA ,
|
||||
/* T 84 */ MBFL_CHP_UALPHA ,
|
||||
/* U 85 */ MBFL_CHP_UALPHA ,
|
||||
/* V 86 */ MBFL_CHP_UALPHA ,
|
||||
/* W 87 */ MBFL_CHP_UALPHA ,
|
||||
/* X 88 */ MBFL_CHP_UALPHA ,
|
||||
/* Y 89 */ MBFL_CHP_UALPHA ,
|
||||
/* Z 90 */ MBFL_CHP_UALPHA ,
|
||||
/* [ 91 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* \ 92 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* ] 93 */ MBFL_CHP_MMHQENC | MBFL_CHP_MSPECIAL ,
|
||||
/* ^ 94 */ MBFL_CHP_MMHQENC ,
|
||||
/* _ 95 */ MBFL_CHP_MMHQENC ,
|
||||
/* ` 96 */ MBFL_CHP_MMHQENC ,
|
||||
/* a 97 */ MBFL_CHP_LALPHA ,
|
||||
/* b 98 */ MBFL_CHP_LALPHA ,
|
||||
/* c 99 */ MBFL_CHP_LALPHA ,
|
||||
/* d 100 */ MBFL_CHP_LALPHA ,
|
||||
/* e 101 */ MBFL_CHP_LALPHA ,
|
||||
/* f 102 */ MBFL_CHP_LALPHA ,
|
||||
/* g 103 */ MBFL_CHP_LALPHA ,
|
||||
/* h 104 */ MBFL_CHP_LALPHA ,
|
||||
/* i 105 */ MBFL_CHP_LALPHA ,
|
||||
/* j 106 */ MBFL_CHP_LALPHA ,
|
||||
/* k 107 */ MBFL_CHP_LALPHA ,
|
||||
/* l 108 */ MBFL_CHP_LALPHA ,
|
||||
/* m 109 */ MBFL_CHP_LALPHA ,
|
||||
/* n 110 */ MBFL_CHP_LALPHA ,
|
||||
/* o 111 */ MBFL_CHP_LALPHA ,
|
||||
/* p 112 */ MBFL_CHP_LALPHA ,
|
||||
/* q 113 */ MBFL_CHP_LALPHA ,
|
||||
/* r 114 */ MBFL_CHP_LALPHA ,
|
||||
/* s 115 */ MBFL_CHP_LALPHA ,
|
||||
/* t 116 */ MBFL_CHP_LALPHA ,
|
||||
/* u 117 */ MBFL_CHP_LALPHA ,
|
||||
/* v 118 */ MBFL_CHP_LALPHA ,
|
||||
/* w 119 */ MBFL_CHP_LALPHA ,
|
||||
/* x 120 */ MBFL_CHP_LALPHA ,
|
||||
/* y 121 */ MBFL_CHP_LALPHA ,
|
||||
/* z 122 */ MBFL_CHP_LALPHA ,
|
||||
/* { 123 */ MBFL_CHP_MMHQENC ,
|
||||
/* | 124 */ MBFL_CHP_MMHQENC ,
|
||||
/* } 125 */ MBFL_CHP_MMHQENC ,
|
||||
/* ~ 126 */ MBFL_CHP_MMHQENC ,
|
||||
/* DEL 127 */ MBFL_CHP_MMHQENC
|
||||
};
|
5961
ext/mbstring/unicode_table_ja.h
Normal file
5961
ext/mbstring/unicode_table_ja.h
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user