Skip to content

Commit 340164b

Browse files
committed
Reduce size of conversion tables for CP936
1 parent 73c6a5b commit 340164b

File tree

1 file changed

+7
-100
lines changed

1 file changed

+7
-100
lines changed

ext/mbstring/libmbfl/filters/unicode_table_cp936.h

Lines changed: 7 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -3531,68 +3531,12 @@ const unsigned short ucs_a2_cp936_table[] = {
35313531
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
35323532
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
35333533
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3534-
0xa1e2,0x0000,0xa1e1,0x0000,0x0000,0x0000,0x0000,0x0000,
3535-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3536-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3537-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3538-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3539-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3540-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3541-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3542-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3543-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3544-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3545-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3546-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3547-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3548-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3549-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3550-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3551-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3552-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3553-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3554-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3555-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3556-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3557-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000
3534+
0xa1e2,0x0000,0xa1e1,
35583535
};
35593536
const int ucs_a2_cp936_table_min = 0x2000;
35603537
const int ucs_a2_cp936_table_max = 0x2000 + (sizeof (ucs_a2_cp936_table) / sizeof (unsigned short));
35613538

35623539
const unsigned short ucs_a3_cp936_table[] = {
3563-
/* 0x2f00 */
3564-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3565-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3566-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3567-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3568-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3569-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3570-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3571-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3572-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3573-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3574-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3575-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3576-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3577-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3578-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3579-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3580-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3581-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3582-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3583-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3584-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3585-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3586-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3587-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3588-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3589-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3590-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3591-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3592-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3593-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3594-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3595-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
35963540
/* 0x3000 */
35973541
0xa1a1,0xa1a2,0xa1a3,0xa1a8,0x0000,0xa1a9,0xa965,0xa996,
35983542
0xa1b4,0xa1b5,0xa1b6,0xa1b7,0xa1b8,0xa1b9,0xa1ba,0xa1bb,
@@ -3719,52 +3663,15 @@ const unsigned short ucs_a3_cp936_table[] = {
37193663
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
37203664
0x0000,0x0000,0x0000,0x0000,0xa950,0x0000,0x0000,0x0000,
37213665
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0xa951,0x0000,
3722-
0x0000,0xa952,0xa953,0x0000,0x0000,0xa954,0x0000,0x0000,
3723-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3724-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3725-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3726-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3727-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000
3666+
0x0000,0xa952,0xa953,0x0000,0x0000,0xa954,
37283667
};
37293668

3730-
const int ucs_a3_cp936_table_min = 0x2f00;
3731-
const int ucs_a3_cp936_table_max = 0x2f00 + (sizeof (ucs_a3_cp936_table) / sizeof (unsigned short));
3669+
const int ucs_a3_cp936_table_min = 0x3000;
3670+
const int ucs_a3_cp936_table_max = 0x3000 + (sizeof (ucs_a3_cp936_table) / sizeof (unsigned short));
37323671

37333672
/* 4d00h CJK Unified Ideographs (+ Extension A) */
37343673
const unsigned short ucs_i_cp936_table[] = {
3735-
/* 0x4d00 */
3736-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3737-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3738-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3739-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3740-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3741-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3742-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3743-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3744-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3745-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3746-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3747-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3748-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3749-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3750-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3751-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3752-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3753-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3754-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3755-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3756-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3757-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3758-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3759-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3760-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3761-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3762-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3763-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3764-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3765-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3766-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3767-
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
3674+
/* 0x4e00 */
37683675
0xd2bb,0xb6a1,0x8140,0xc6df,0x8141,0x8142,0x8143,0xcdf2,
37693676
0xd5c9,0xc8fd,0xc9cf,0xcfc2,0xd8a2,0xb2bb,0xd3eb,0x8144,
37703677
0xd8a4,0xb3f3,0x8145,0xd7a8,0xc7d2,0xd8a7,0xcac0,0x8146,
@@ -6390,8 +6297,8 @@ const unsigned short ucs_i_cp936_table[] = {
63906297
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,
63916298
0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000,0x0000
63926299
}; /* 9fffh */
6393-
const int ucs_i_cp936_table_min = 0x4d00;
6394-
const int ucs_i_cp936_table_max = 0x4d00 + (sizeof (ucs_i_cp936_table) / sizeof (unsigned short));
6300+
const int ucs_i_cp936_table_min = 0x4e00;
6301+
const int ucs_i_cp936_table_max = 0x4e00 + (sizeof (ucs_i_cp936_table) / sizeof (unsigned short));
63956302

63966303

63976304
/* 0xf900 CJK Compatibility Ideographs (with fallback) */

0 commit comments

Comments
 (0)