diff options
Diffstat (limited to 'src/backend/utils/mb/Unicode/utf8_to_win1256.map')
-rw-r--r-- | src/backend/utils/mb/Unicode/utf8_to_win1256.map | 320 |
1 files changed, 191 insertions, 129 deletions
diff --git a/src/backend/utils/mb/Unicode/utf8_to_win1256.map b/src/backend/utils/mb/Unicode/utf8_to_win1256.map index 5f1b9b324c6..1b7de688811 100644 --- a/src/backend/utils/mb/Unicode/utf8_to_win1256.map +++ b/src/backend/utils/mb/Unicode/utf8_to_win1256.map @@ -1,132 +1,194 @@ /* src/backend/utils/mb/Unicode/utf8_to_win1256.map */ +/* This file is generated by UCS_to_most.pl */ -static const pg_utf_to_local ULmapWIN1256[ 128 ] = { - {0xc2a0, 0x00a0}, - {0xc2a2, 0x00a2}, - {0xc2a3, 0x00a3}, - {0xc2a4, 0x00a4}, - {0xc2a5, 0x00a5}, - {0xc2a6, 0x00a6}, - {0xc2a7, 0x00a7}, - {0xc2a8, 0x00a8}, - {0xc2a9, 0x00a9}, - {0xc2ab, 0x00ab}, - {0xc2ac, 0x00ac}, - {0xc2ad, 0x00ad}, - {0xc2ae, 0x00ae}, - {0xc2af, 0x00af}, - {0xc2b0, 0x00b0}, - {0xc2b1, 0x00b1}, - {0xc2b2, 0x00b2}, - {0xc2b3, 0x00b3}, - {0xc2b4, 0x00b4}, - {0xc2b5, 0x00b5}, - {0xc2b6, 0x00b6}, - {0xc2b7, 0x00b7}, - {0xc2b8, 0x00b8}, - {0xc2b9, 0x00b9}, - {0xc2bb, 0x00bb}, - {0xc2bc, 0x00bc}, - {0xc2bd, 0x00bd}, - {0xc2be, 0x00be}, - {0xc397, 0x00d7}, - {0xc3a0, 0x00e0}, - {0xc3a2, 0x00e2}, - {0xc3a7, 0x00e7}, - {0xc3a8, 0x00e8}, - {0xc3a9, 0x00e9}, - {0xc3aa, 0x00ea}, - {0xc3ab, 0x00eb}, - {0xc3ae, 0x00ee}, - {0xc3af, 0x00ef}, - {0xc3b4, 0x00f4}, - {0xc3b7, 0x00f7}, - {0xc3b9, 0x00f9}, - {0xc3bb, 0x00fb}, - {0xc3bc, 0x00fc}, - {0xc592, 0x008c}, - {0xc593, 0x009c}, - {0xc692, 0x0083}, - {0xcb86, 0x0088}, - {0xd88c, 0x00a1}, - {0xd89b, 0x00ba}, - {0xd89f, 0x00bf}, - {0xd8a1, 0x00c1}, - {0xd8a2, 0x00c2}, - {0xd8a3, 0x00c3}, - {0xd8a4, 0x00c4}, - {0xd8a5, 0x00c5}, - {0xd8a6, 0x00c6}, - {0xd8a7, 0x00c7}, - {0xd8a8, 0x00c8}, - {0xd8a9, 0x00c9}, - {0xd8aa, 0x00ca}, - {0xd8ab, 0x00cb}, - {0xd8ac, 0x00cc}, - {0xd8ad, 0x00cd}, - {0xd8ae, 0x00ce}, - {0xd8af, 0x00cf}, - {0xd8b0, 0x00d0}, - {0xd8b1, 0x00d1}, - {0xd8b2, 0x00d2}, - {0xd8b3, 0x00d3}, - {0xd8b4, 0x00d4}, - {0xd8b5, 0x00d5}, - {0xd8b6, 0x00d6}, - {0xd8b7, 0x00d8}, - {0xd8b8, 0x00d9}, - {0xd8b9, 0x00da}, - {0xd8ba, 0x00db}, - {0xd980, 0x00dc}, - {0xd981, 0x00dd}, - {0xd982, 0x00de}, - {0xd983, 0x00df}, - {0xd984, 0x00e1}, - {0xd985, 0x00e3}, - {0xd986, 0x00e4}, - {0xd987, 0x00e5}, - {0xd988, 0x00e6}, - {0xd989, 0x00ec}, - {0xd98a, 0x00ed}, - {0xd98b, 0x00f0}, - {0xd98c, 0x00f1}, - {0xd98d, 0x00f2}, - {0xd98e, 0x00f3}, - {0xd98f, 0x00f5}, - {0xd990, 0x00f6}, - {0xd991, 0x00f8}, - {0xd992, 0x00fa}, - {0xd9b9, 0x008a}, - {0xd9be, 0x0081}, - {0xda86, 0x008d}, - {0xda88, 0x008f}, - {0xda91, 0x009a}, - {0xda98, 0x008e}, - {0xdaa9, 0x0098}, - {0xdaaf, 0x0090}, - {0xdaba, 0x009f}, - {0xdabe, 0x00aa}, - {0xdb81, 0x00c0}, - {0xdb92, 0x00ff}, - {0xe2808c, 0x009d}, - {0xe2808d, 0x009e}, - {0xe2808e, 0x00fd}, - {0xe2808f, 0x00fe}, - {0xe28093, 0x0096}, - {0xe28094, 0x0097}, - {0xe28098, 0x0091}, - {0xe28099, 0x0092}, - {0xe2809a, 0x0082}, - {0xe2809c, 0x0093}, - {0xe2809d, 0x0094}, - {0xe2809e, 0x0084}, - {0xe280a0, 0x0086}, - {0xe280a1, 0x0087}, - {0xe280a2, 0x0095}, - {0xe280a6, 0x0085}, - {0xe280b0, 0x0089}, - {0xe280b9, 0x008b}, - {0xe280ba, 0x009b}, - {0xe282ac, 0x0080}, - {0xe284a2, 0x0099} +static const uint16 win1256_from_unicode_tree_table[]; + +static const pg_mb_radix_tree win1256_from_unicode_tree = +{ + win1256_from_unicode_tree_table, + NULL, /* 32-bit table not used */ + + 0x0000, /* offset of table for 1-byte inputs */ + 0x00, /* b1_lower */ + 0x00, /* b1_upper */ + + 0x003f, /* offset of table for 2-byte inputs */ + 0xc2, /* b2_1_lower */ + 0xdb, /* b2_1_upper */ + 0x80, /* b2_2_lower */ + 0xbe, /* b2_2_upper */ + + 0x026a, /* offset of table for 3-byte inputs */ + 0xe2, /* b3_1_lower */ + 0xe2, /* b3_1_upper */ + 0x80, /* b3_2_lower */ + 0x84, /* b3_2_upper */ + 0x8c, /* b3_3_lower */ + 0xba, /* b3_3_upper */ + + 0x0000, /* offset of table for 3-byte inputs */ + 0x00, /* b4_1_lower */ + 0x00, /* b4_1_upper */ + 0x00, /* b4_2_lower */ + 0x00, /* b4_2_upper */ + 0x00, /* b4_3_lower */ + 0x00, /* b4_3_upper */ + 0x00, /* b4_4_lower */ + 0x00 /* b4_4_upper */ +}; + +static const uint16 win1256_from_unicode_tree_table[765] = +{ + /*** Dummy map, for invalid values - offset 0x00000 ***/ + + /* 00 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 08 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 10 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 18 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 20 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 28 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 30 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 38 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + + /*** Two byte table, byte #1: xx - offset 0x0003f ***/ + + /* c2 */ 0x0059, 0x0098, 0x0000, 0x00d5, 0x0102, 0x0000, 0x0000, 0x0000, + /* ca */ 0x0000, 0x013b, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* d2 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x016e, 0x01ad, + /* da */ 0x01ec, 0x022b, + + /*** Two byte table, leaf: c2xx - offset 0x00059 ***/ + + /* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* a0 */ 0x00a0, 0x0000, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, + /* a8 */ 0x00a8, 0x00a9, 0x0000, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af, + /* b0 */ 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7, + /* b8 */ 0x00b8, 0x00b9, 0x0000, 0x00bb, 0x00bc, 0x00bd, 0x00be, + + /*** Two byte table, leaf: c3xx - offset 0x00098 ***/ + + /* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x00d7, + /* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* a0 */ 0x00e0, 0x0000, 0x00e2, 0x0000, 0x0000, 0x0000, 0x0000, 0x00e7, + /* a8 */ 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x0000, 0x0000, 0x00ee, 0x00ef, + /* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00f4, 0x0000, 0x0000, 0x00f7, + /* b8 */ 0x0000, 0x00f9, 0x0000, 0x00fb, 0x00fc, + /* 2 trailing zero values shared with next segment */ + + /*** Two byte table, leaf: c5xx - offset 0x000d5 ***/ + + /* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 90 */ 0x0000, 0x0000, 0x008c, 0x009c, 0x0000, 0x0000, 0x0000, 0x0000, + /* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 18 trailing zero values shared with next segment */ + + /*** Two byte table, leaf: c6xx - offset 0x00102 ***/ + + /* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 90 */ 0x0000, 0x0000, 0x0083, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* b8 */ 0x0000, + /* 6 trailing zero values shared with next segment */ + + /*** Two byte table, leaf: cbxx - offset 0x0013b ***/ + + /* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0088, 0x0000, + /* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* b0 */ 0x0000, 0x0000, 0x0000, + /* 12 trailing zero values shared with next segment */ + + /*** Two byte table, leaf: d8xx - offset 0x0016e ***/ + + /* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x00a1, 0x0000, 0x0000, 0x0000, + /* 90 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 98 */ 0x0000, 0x0000, 0x0000, 0x00ba, 0x0000, 0x0000, 0x0000, 0x00bf, + /* a0 */ 0x0000, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7, + /* a8 */ 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x00cc, 0x00cd, 0x00ce, 0x00cf, + /* b0 */ 0x00d0, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d8, + /* b8 */ 0x00d9, 0x00da, 0x00db, 0x0000, 0x0000, 0x0000, 0x0000, + + /*** Two byte table, leaf: d9xx - offset 0x001ad ***/ + + /* 80 */ 0x00dc, 0x00dd, 0x00de, 0x00df, 0x00e1, 0x00e3, 0x00e4, 0x00e5, + /* 88 */ 0x00e6, 0x00ec, 0x00ed, 0x00f0, 0x00f1, 0x00f2, 0x00f3, 0x00f5, + /* 90 */ 0x00f6, 0x00f8, 0x00fa, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* b8 */ 0x0000, 0x008a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0081, + + /*** Two byte table, leaf: daxx - offset 0x001ec ***/ + + /* 80 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x008d, 0x0000, + /* 88 */ 0x008f, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 90 */ 0x0000, 0x009a, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 98 */ 0x008e, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* a8 */ 0x0000, 0x0098, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0090, + /* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* b8 */ 0x0000, 0x0000, 0x009f, 0x0000, 0x0000, 0x0000, 0x00aa, + + /*** Two byte table, leaf: dbxx - offset 0x0022b ***/ + + /* 80 */ 0x0000, 0x00c0, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 88 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 90 */ 0x0000, 0x0000, 0x00ff, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 98 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* a0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* a8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* b0 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* b8 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + + /*** Three byte table, byte #1: xx - offset 0x0026a ***/ + + /* e2 */ 0x026b, + + /*** Three byte table, byte #2: e2xx - offset 0x0026b ***/ + + /* 80 */ 0x0270, 0x0000, 0x029f, 0x0000, 0x02ce, + + /*** Three byte table, leaf: e280xx - offset 0x00270 ***/ + + /* 8c */ 0x009d, 0x009e, 0x00fd, 0x00fe, 0x0000, 0x0000, 0x0000, 0x0096, + /* 94 */ 0x0097, 0x0000, 0x0000, 0x0000, 0x0091, 0x0092, 0x0082, 0x0000, + /* 9c */ 0x0093, 0x0094, 0x0084, 0x0000, 0x0086, 0x0087, 0x0095, 0x0000, + /* a4 */ 0x0000, 0x0000, 0x0085, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* ac */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0089, 0x0000, 0x0000, 0x0000, + /* b4 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x008b, 0x009b, + + /*** Three byte table, leaf: e282xx - offset 0x0029f ***/ + + /* 8c */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 94 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 9c */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* a4 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* ac */ 0x0080, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* b4 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + + /*** Three byte table, leaf: e284xx - offset 0x002ce ***/ + + /* 8c */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 94 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* 9c */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0099, 0x0000, + /* a4 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* ac */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, + /* b4 */ 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 }; |