Coverage Report

Created: 2026-11-10 14:14

next uncovered line (L), next uncovered region (R), next uncovered branch (B), next exclusive to main-2 (E) [2]
src/encoding.c
Line
Count
Source
1
#include "prism/internal/encoding.h"
2
3
#include "prism/compiler/unused.h"
4
#include "prism/internal/assert.h"
5
#include "prism/internal/strncasecmp.h"
6
7
typedef uint32_t pm_unicode_codepoint_t;
8
9
/**
10
 * The properties of every unicode codepoint are stored in a three-stage lookup
11
 * table, as described in section 5.1 of the unicode core specification. The
12
 * high bits of a codepoint index the root table, which gives a middle block.
13
 * The next five bits index that middle block, which gives a leaf block. The low
14
 * three bits index that leaf block, which gives the same bitfield used by the
15
 * single-byte lookup tables. Codepoints with identical blocks share a single
16
 * copy, so the tables stay small, and every lookup is three loads with no
17
 * searching. Codepoints at or above UNICODE_CODEPOINTS_MAXIMUM have no
18
 * properties.
19
 */
20
3.62k
#define UNICODE_CODEPOINTS_MAXIMUM 0x33500
21
22
static const uint8_t pm_unicode_root[821] = {
23
    /* U+00000 */ 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10, 0x11, 0x12,
24
    /* U+01000 */ 0x13, 0x01, 0x14, 0x15, 0x16, 0x01, 0x17, 0x18, 0x19, 0x1A, 0x1B, 0x1C, 0x1D, 0x1E, 0x1F, 0x20,
25
    /* U+02000 */ 0x21, 0x22, 0x00, 0x00, 0x23, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x24, 0x25, 0x26, 0x00,
26
    /* U+03000 */ 0x27, 0x28, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
27
    /* U+04000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x29, 0x01, 0x01,
28
    /* U+05000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
29
    /* U+06000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
30
    /* U+07000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
31
    /* U+08000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
32
    /* U+09000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
33
    /* U+0A000 */ 0x01, 0x01, 0x01, 0x01, 0x2A, 0x01, 0x2B, 0x2C, 0x2D, 0x2E, 0x2F, 0x30, 0x01, 0x01, 0x01, 0x01,
34
    /* U+0B000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
35
    /* U+0C000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
36
    /* U+0D000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x31, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
37
    /* U+0E000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
38
    /* U+0F000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x32, 0x33, 0x01, 0x34, 0x35, 0x36,
39
    /* U+10000 */ 0x37, 0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x01, 0x3D, 0x3E, 0x3F, 0x40, 0x41, 0x42, 0x43, 0x44, 0x45,
40
    /* U+11000 */ 0x46, 0x47, 0x48, 0x49, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, 0x51, 0x52, 0x53, 0x54, 0x55,
41
    /* U+12000 */ 0x01, 0x01, 0x01, 0x56, 0x57, 0x58, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x59,
42
    /* U+13000 */ 0x01, 0x01, 0x01, 0x01, 0x5A, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
43
    /* U+14000 */ 0x01, 0x01, 0x01, 0x5B, 0x01, 0x01, 0x5C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
44
    /* U+15000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
45
    /* U+16000 */ 0x00, 0x5D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x5E, 0x5F, 0x00, 0x60, 0x61, 0x62,
46
    /* U+17000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
47
    /* U+18000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x63, 0x64, 0x00, 0x00,
48
    /* U+19000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
49
    /* U+1A000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x65,
50
    /* U+1B000 */ 0x01, 0x66, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x68, 0x00, 0x00, 0x00,
51
    /* U+1C000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00,
52
    /* U+1D000 */ 0x00, 0x00, 0x00, 0x00, 0x69, 0x6A, 0x6B, 0x6C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x6D,
53
    /* U+1E000 */ 0x6E, 0x6F, 0x70, 0x00, 0x71, 0x72, 0x73, 0x74, 0x75, 0x76, 0x00, 0x00, 0x00, 0x00, 0x77, 0x00,
54
    /* U+1F000 */ 0x00, 0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00,
55
    /* U+20000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
56
    /* U+21000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
57
    /* U+22000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
58
    /* U+23000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
59
    /* U+24000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
60
    /* U+25000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
61
    /* U+26000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
62
    /* U+27000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
63
    /* U+28000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
64
    /* U+29000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
65
    /* U+2A000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x79, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
66
    /* U+2B000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x7A, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
67
    /* U+2C000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x7B, 0x01,
68
    /* U+2D000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
69
    /* U+2E000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x7C, 0x01, 0x01, 0x7D, 0x00,
70
    /* U+2F000 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x7E, 0x00, 0x00, 0x00, 0x00, 0x00,
71
    /* U+30000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
72
    /* U+31000 */ 0x01, 0x01, 0x01, 0x7F, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
73
    /* U+32000 */ 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
74
    /* U+33000 */ 0x01, 0x01, 0x01, 0x01, 0x80,
75
};
76
77
static const uint8_t pm_unicode_middle[129][32] = {
78
    [0x00] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
79
    [0x01] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01 },
80
    [0x02] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x06 },
81
    [0x03] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x06, 0x2D, 0x02, 0x02, 0x2E, 0x0C, 0x01, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1C, 0x1D, 0x1C, 0x02, 0x02, 0x2F, 0x59, 0x01, 0x01, 0x05, 0x01 },
82
    [0x04] = { 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x30, 0x30, 0x3E, 0x03, 0x03, 0x03, 0x03, 0x03, 0x5A, 0x3F, 0x5B, 0x5C, 0x5D, 0x5E, 0x5F, 0x60, 0x61, 0x62, 0x63, 0x30, 0x64, 0x03, 0x03, 0x3F, 0x03 },
83
    [0x05] = { 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x40, 0x65, 0x66, 0x03, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x31, 0x01, 0x0D, 0x00, 0x0A, 0x67, 0x00, 0x00 },
84
    [0x06] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x1D, 0x00, 0x00, 0x00, 0x18, 0x01, 0x68, 0x69, 0x6A, 0x6B, 0x6C, 0x02, 0x6D, 0x41, 0x01, 0x01, 0x01, 0x6E, 0x6F, 0x03, 0x03, 0x03, 0x70, 0x71 },
85
    [0x07] = { 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x03, 0x03, 0x03, 0x03, 0x72, 0x42, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x73, 0x74, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03 },
86
    [0x08] = { 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x2D, 0x02, 0x02, 0x02, 0x2F, 0x29, 0x01, 0x01, 0x01, 0x01, 0x01, 0x09, 0x00, 0x00, 0x00, 0x00, 0x01, 0x12, 0x75, 0x00, 0x01, 0x01, 0x01, 0x2A, 0x08, 0x00 },
87
    [0x09] = { 0x00, 0x00, 0x01, 0x08, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0C, 0x04, 0x76, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x11, 0x0A, 0x0C, 0x43, 0x04, 0x77 },
88
    [0x0A] = { 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x15, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0D, 0x00, 0x04, 0x22, 0x01, 0x01, 0x01, 0x08, 0x78, 0x1C },
89
    [0x0B] = { 0x01, 0x01, 0x01, 0x10, 0x01, 0x0A, 0x00, 0x00, 0x01, 0x01, 0x01, 0x09, 0x01, 0x08, 0x01, 0x01, 0x01, 0x0C, 0x0E, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0D, 0x1E, 0x01, 0x18, 0x0D, 0x01, 0x01 },
90
    [0x0C] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x11, 0x01, 0x13, 0x43, 0x01, 0x19, 0x04, 0x0C, 0x01, 0x11, 0x16, 0x1F, 0x01, 0x01, 0x0F, 0x79, 0x20, 0x16, 0x7A, 0x0E, 0x44, 0x19, 0x04, 0x0D, 0x45 },
91
    [0x0D] = { 0x23, 0x2A, 0x1F, 0x01, 0x01, 0x0F, 0x7B, 0x31, 0x2A, 0x32, 0x29, 0x46, 0x24, 0x04, 0x07, 0x00, 0x23, 0x12, 0x17, 0x01, 0x01, 0x0F, 0x33, 0x20, 0x12, 0x34, 0x09, 0x00, 0x19, 0x04, 0x00, 0x47 },
92
    [0x0E] = { 0x23, 0x16, 0x1F, 0x01, 0x01, 0x0F, 0x33, 0x20, 0x16, 0x32, 0x21, 0x44, 0x19, 0x04, 0x29, 0x00, 0x7C, 0x25, 0x1A, 0x48, 0x7D, 0x25, 0x01, 0x31, 0x25, 0x35, 0x49, 0x00, 0x24, 0x04, 0x00, 0x00 },
93
    [0x0F] = { 0x01, 0x13, 0x0F, 0x01, 0x01, 0x0F, 0x01, 0x20, 0x13, 0x35, 0x4A, 0x36, 0x19, 0x04, 0x00, 0x00, 0x11, 0x13, 0x0F, 0x01, 0x01, 0x0F, 0x11, 0x20, 0x13, 0x35, 0x4A, 0x4B, 0x19, 0x04, 0x7E, 0x00 },
94
    [0x10] = { 0x01, 0x13, 0x0F, 0x01, 0x01, 0x01, 0x01, 0x37, 0x13, 0x7F, 0x1E, 0x0E, 0x19, 0x04, 0x00, 0x10, 0x23, 0x01, 0x05, 0x10, 0x01, 0x01, 0x17, 0x4C, 0x05, 0x0E, 0x38, 0x01, 0x24, 0x04, 0x80, 0x00 },
95
    [0x11] = { 0x0C, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x08, 0x05, 0x1D, 0x04, 0x06, 0x00, 0x00, 0x00, 0x00, 0x48, 0x14, 0x01, 0x01, 0x81, 0x01, 0x01, 0x82, 0x38, 0x1D, 0x04, 0x83, 0x00, 0x00, 0x00, 0x00 },
96
    [0x12] = { 0x09, 0x00, 0x00, 0x00, 0x04, 0x06, 0x00, 0x00, 0x01, 0x0C, 0x01, 0x01, 0x01, 0x0A, 0x0C, 0x01, 0x0B, 0x01, 0x01, 0x0C, 0x01, 0x01, 0x01, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
97
    [0x13] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x05, 0x1F, 0x04, 0x06, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x04, 0x84, 0x02, 0x02, 0x02, 0x02, 0x85, 0x86, 0x01, 0x01, 0x01, 0x01, 0x01, 0x14 },
98
    [0x14] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x1A, 0x05, 0x1A, 0x01, 0x01, 0x01, 0x01, 0x01, 0x1A, 0x01, 0x01, 0x01, 0x01, 0x1A, 0x05, 0x1A, 0x01, 0x05, 0x01, 0x01, 0x01, 0x01, 0x01 },
99
    [0x15] = { 0x01, 0x01, 0x1A, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x08, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x2B, 0x07 },
100
    [0x16] = { 0x0C, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01 },
101
    [0x17] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x16, 0x01, 0x01, 0x0C, 0x01, 0x01, 0x08, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x25, 0x01, 0x09 },
102
    [0x18] = { 0x01, 0x01, 0x0B, 0x0E, 0x01, 0x01, 0x0B, 0x00, 0x01, 0x01, 0x0B, 0x00, 0x01, 0x13, 0x87, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x4D, 0x01, 0x01, 0x09, 0x0E, 0x45, 0x04, 0x06, 0x00, 0x00 },
103
    [0x19] = { 0x00, 0x00, 0x04, 0x06, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x09, 0x01, 0x01, 0x01, 0x01, 0x01, 0x08, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x07, 0x00 },
104
    [0x1A] = { 0x01, 0x01, 0x01, 0x05, 0x01, 0x0B, 0x01, 0x09, 0x24, 0x04, 0x01, 0x01, 0x01, 0x07, 0x0A, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0B, 0x01, 0x01, 0x01, 0x0D, 0x04, 0x06, 0x00, 0x00, 0x00, 0x00 },
105
    [0x1B] = { 0x01, 0x01, 0x01, 0x0B, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x05, 0x0C, 0x01, 0x0A, 0x00, 0x04, 0x06, 0x04, 0x06, 0x0E, 0x00, 0x00, 0x0E, 0x09, 0x4B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
106
    [0x1C] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x11, 0x01, 0x11, 0x0A, 0x04, 0x06, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x88, 0x04, 0x22, 0x01, 0x01, 0x01, 0x01, 0x12, 0x01, 0x0D, 0x00 },
107
    [0x1D] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x05, 0x00, 0x04, 0x89, 0x04, 0x22, 0x01, 0x01, 0x01, 0x07, 0x01, 0x8A, 0x02, 0x02, 0x02, 0x02, 0x02, 0x4E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8B, 0x26, 0x1C },
108
    [0x1E] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x18, 0x01, 0x01, 0x01, 0x0A, 0x00 },
109
    [0x1F] = { 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x8C, 0x8D, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03 },
110
    [0x20] = { 0x01, 0x02, 0x07, 0x2B, 0x01, 0x02, 0x01, 0x02, 0x07, 0x2B, 0x01, 0x8E, 0x01, 0x02, 0x01, 0x07, 0x01, 0x02, 0x01, 0x02, 0x01, 0x02, 0x13, 0x8F, 0x4F, 0x39, 0x4D, 0x50, 0x01, 0x39, 0x4F, 0x39 },
111
    [0x21] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x29, 0x0E, 0x00, 0x00, 0x01, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
112
    [0x22] = { 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x41, 0x96, 0x97, 0x51, 0x00, 0x00, 0x02, 0x02, 0x01, 0x01, 0x98, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
113
    [0x23] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x99, 0x02, 0x02, 0x02, 0x01, 0x01, 0x01, 0x0D, 0x00, 0x00 },
114
    [0x24] = { 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x9A, 0x9B, 0x9C, 0x52, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x9D, 0x9E, 0x9F, 0x00 },
115
    [0x25] = { 0x01, 0x01, 0x01, 0x01, 0x12, 0x1D, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0E, 0x00, 0x00, 0x01, 0x01, 0x05, 0x00, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x01, 0x01, 0x01, 0x01 },
116
    [0x26] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
117
    [0x27] = { 0x15, 0x00, 0x00, 0x00, 0x0C, 0x0D, 0x3A, 0x0A, 0x0C, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x05, 0x15, 0x0C, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x14 },
118
    [0x28] = { 0x15, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0C, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x05, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01 },
119
    [0x29] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
120
    [0x2A] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x07 },
121
    [0x2B] = { 0x01, 0x0A, 0x01, 0x01, 0x04, 0xA0, 0x00, 0x00, 0x03, 0x03, 0x03, 0x03, 0x03, 0xA1, 0x1E, 0x53, 0x03, 0x03, 0x03, 0x40, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00 },
122
    [0x2C] = { 0x00, 0x00, 0x0E, 0x01, 0x42, 0x03, 0x3E, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x01, 0xA2, 0x03, 0xA3, 0xA4, 0x03, 0x03, 0xA5, 0xA6, 0x03, 0xA7, 0xA8, 0x03, 0xA9, 0x00, 0x00, 0xAA, 0x01 },
123
    [0x2D] = { 0x12, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0B, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x4C, 0x00, 0x04, 0x06, 0x00, 0x00, 0x10, 0xAB },
124
    [0x2E] = { 0x04, 0x22, 0x01, 0x01, 0x01, 0x08, 0x01, 0x01, 0x01, 0x01, 0x08, 0x00, 0x01, 0x01, 0x01, 0x0A, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x14, 0x01, 0x00, 0x0E, 0x04, 0x06, 0x01, 0x01, 0x04, 0xAC },
125
    [0x2F] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x05, 0x00, 0x01, 0x07, 0x04, 0x06, 0x01, 0x01, 0x05, 0x10, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x05, 0xAD, 0x00, 0x00, 0xAE, 0x01, 0x01, 0xAF, 0x00 },
126
    [0x30] = { 0x2C, 0x2C, 0x2C, 0x00, 0x05, 0x05, 0x01, 0x01, 0x01, 0x01, 0x01, 0x14, 0x01, 0x0D, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x08, 0x04, 0x06 },
127
    [0x31] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0B, 0x00, 0x01, 0x01, 0x05, 0x18, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0B },
128
    [0x32] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x07, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0D, 0x00, 0x00, 0x00, 0x00 },
129
    [0x33] = { 0x05, 0x00, 0x18, 0x15, 0x01, 0x0F, 0x05, 0x38, 0x54, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0D, 0x00, 0x00, 0x00, 0x18, 0x01, 0x01, 0x01, 0x01, 0x01 },
130
    [0x34] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x07, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x10, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0B },
131
    [0x35] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x13, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0A },
132
    [0x36] = { 0x00, 0x00, 0x04, 0x06, 0x2D, 0x02, 0x02, 0x2E, 0x0C, 0x01, 0x01, 0x08, 0x21, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x05, 0x10, 0x10, 0x10, 0x55, 0x00, 0x00, 0x00, 0x00 },
133
    [0x37] = { 0x01, 0x11, 0x01, 0x01, 0x05, 0x01, 0x01, 0xB0, 0x01, 0x07, 0x01, 0x07, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x08 },
134
    [0x38] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
135
    [0x39] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x0A, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00 },
136
    [0x3A] = { 0x01, 0x01, 0x01, 0x01, 0x00, 0x15, 0x01, 0x01, 0x01, 0x08, 0x01, 0x01, 0x01, 0x01, 0x01, 0x08, 0x01, 0x01, 0x01, 0x07, 0x01, 0x01, 0x01, 0x01, 0x0B, 0x01, 0x3A, 0x00, 0x00, 0x00, 0x00, 0x00 },
137
    [0x3B] = { 0x02, 0x02, 0x02, 0x02, 0x02, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x07, 0x04, 0x06, 0x02, 0x02, 0x02, 0x02, 0x50, 0x01, 0x01, 0x01, 0x01, 0x0B },
138
    [0x3C] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0B, 0x00, 0x02, 0x56, 0x02, 0x56, 0xB1, 0x01, 0x17, 0x01, 0x17, 0x34, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0B, 0x00 },
139
    [0x3D] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x05, 0x00, 0x01, 0x01, 0x07, 0x00, 0x01, 0x00, 0x00, 0x00, 0x12, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0F, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
140
    [0x3E] = { 0x07, 0x0F, 0x01, 0x01, 0x01, 0x01, 0x12, 0xB2, 0x01, 0x01, 0x07, 0x00, 0x01, 0x01, 0x05, 0x00, 0x01, 0x01, 0x01, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x36, 0x00 },
141
    [0x3F] = { 0x01, 0x01, 0x07, 0x00, 0x01, 0x01, 0x01, 0x0D, 0x01, 0x01, 0x01, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
142
    [0x40] = { 0x26, 0x1E, 0x11, 0x0C, 0x01, 0x01, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x0A, 0x01, 0x01, 0x01, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0C, 0x01, 0x01, 0x0A, 0x00, 0x00, 0x00 },
143
    [0x41] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x07, 0x00, 0x01, 0x01, 0x07, 0x00, 0x01, 0x01, 0x08, 0x00, 0x01, 0x01, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
144
    [0x42] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x2E, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x08, 0x00 },
145
    [0x43] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x04, 0x06, 0x04, 0x22, 0x02, 0x02, 0x2B, 0xB3, 0x01, 0x01, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
146
    [0x44] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x34, 0x0D, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x55 },
147
    [0x45] = { 0x01, 0x01, 0x01, 0x0A, 0x0E, 0x00, 0x01, 0x01, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x0A, 0x00, 0x00, 0x00, 0x01, 0x01, 0x05, 0x00 },
148
    [0x46] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x07, 0x00, 0x00, 0x00, 0x24, 0x04, 0x3A, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x09, 0x1C, 0x00, 0x01, 0x01, 0x01, 0x09, 0x04, 0x06 },
149
    [0x47] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0xB4, 0x04, 0x1E, 0x00, 0x01, 0x01, 0x01, 0x01, 0xB5, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x47, 0x21, 0x04, 0xB6, 0x00, 0x00, 0x00, 0x00 },
150
    [0x48] = { 0x01, 0x01, 0x17, 0x01, 0x01, 0x01, 0x16, 0x21, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0xB7, 0x01, 0x12, 0x01, 0x09, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x09, 0x04, 0x06 },
151
    [0x49] = { 0x11, 0x16, 0x1F, 0x01, 0x01, 0x0F, 0x33, 0x20, 0x16, 0x32, 0x49, 0x15, 0x0B, 0x00, 0x00, 0x00, 0x01, 0xB8, 0x01, 0x01, 0x01, 0x01, 0x12, 0x01, 0xB9, 0x36, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00 },
152
    [0x4A] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0xBA, 0x08, 0x04, 0xBB, 0x0D, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0xBC, 0x00, 0x04, 0x06, 0x00, 0x00, 0x00, 0x00 },
153
    [0x4B] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x07, 0x05, 0x00, 0x00, 0x00, 0x07, 0x00, 0x00, 0x00, 0x00 },
154
    [0x4C] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x05, 0xBD, 0x00, 0x04, 0x06, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x07, 0x09, 0x04, 0x06, 0x04, 0x04, 0xBE, 0x00, 0x00, 0x00 },
155
    [0x4D] = { 0x01, 0x01, 0x01, 0x37, 0x01, 0x08, 0x04, 0x06, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
156
    [0x4E] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x02, 0x02, 0x02, 0x01, 0x01, 0x01, 0x01, 0x04, 0x06, 0x00, 0x0E },
157
    [0x4F] = { 0x05, 0xBF, 0x26, 0x01, 0x01, 0x01, 0x12, 0xC0, 0x08, 0x00, 0x04, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x10, 0x01, 0x01, 0x01, 0x01, 0x01, 0x10, 0xC1, 0x00, 0x00, 0x00 },
158
    [0x50] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x37, 0x05, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x1D, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x09 },
159
    [0x51] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x09, 0x00, 0x04, 0x06 },
160
    [0x52] = { 0x01, 0x0F, 0x01, 0x01, 0x01, 0x01, 0x05, 0x05, 0x09, 0x00, 0x04, 0x06, 0x00, 0x00, 0x10, 0x01, 0x01, 0x01, 0x10, 0x01, 0x01, 0x0C, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
161
    [0x53] = { 0x05, 0x17, 0x01, 0x01, 0x01, 0x01, 0x05, 0xC2, 0xC3, 0x00, 0x04, 0x06, 0x12, 0x0F, 0x01, 0x01, 0x01, 0x05, 0xC4, 0x09, 0x04, 0x06, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0B, 0x04, 0x06, 0x00, 0x00 },
162
    [0x54] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x05, 0x00 },
163
    [0x55] = { 0x01, 0x01, 0x0F, 0x01, 0x01, 0x01, 0x01, 0x25, 0x09, 0x00, 0x04, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x09, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
164
    [0x56] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
165
    [0x57] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x05, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01 },
166
    [0x58] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
167
    [0x59] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x09, 0x00 },
168
    [0x5A] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x2C, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01 },
169
    [0x5B] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x08 },
170
    [0x5C] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
171
    [0x5D] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x05, 0x04, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
172
    [0x5E] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x09, 0x01, 0x01, 0x01, 0x05, 0x04, 0x06, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x05, 0x04, 0x06, 0x01, 0x01, 0x01, 0x07, 0x00, 0x00 },
173
    [0x5F] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x0B, 0x00, 0x04, 0x06, 0x18, 0x01, 0x01, 0x15, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
174
    [0x60] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0A, 0x04, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
175
    [0x61] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x02, 0x02, 0x02, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x02, 0x02, 0x02, 0xC5, 0x01, 0x01, 0x0B, 0x00, 0x00, 0x00, 0x00, 0x00 },
176
    [0x62] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x2A, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0E, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xC6, 0x00, 0x05, 0x00 },
177
    [0x63] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x07, 0x00, 0x00, 0x00, 0x00, 0x0E },
178
    [0x64] = { 0x01, 0x01, 0x01, 0x05, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x08, 0x00 },
179
    [0x65] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x26 },
180
    [0x66] = { 0x01, 0x01, 0x01, 0x01, 0x08, 0x00, 0x1C, 0x00, 0x00, 0x00, 0xC7, 0x00, 0x1E, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01 },
181
    [0x67] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0B },
182
    [0x68] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x08, 0x01, 0x0A, 0x01, 0x09, 0x01, 0x51, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
183
    [0x69] = { 0x02, 0x02, 0x02, 0x1B, 0x01, 0x01, 0x27, 0x02, 0x02, 0x28, 0x13, 0x01, 0x01, 0x02, 0x02, 0x02, 0x1B, 0x01, 0x01, 0xC8, 0xC9, 0xCA, 0x28, 0xCB, 0x11, 0x01, 0x02, 0x02, 0x02, 0x1B, 0x01, 0x01 },
184
    [0x6A] = { 0xCC, 0x4E, 0xCD, 0x58, 0x01, 0x01, 0x01, 0xCE, 0xCF, 0xD0, 0x3B, 0x01, 0x01, 0x27, 0x02, 0x02, 0x28, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x1B, 0x01, 0x01, 0x27, 0x02, 0x02, 0x28, 0x01, 0x01 },
185
    [0x6B] = { 0x01, 0x02, 0x02, 0x02, 0x1B, 0x01, 0x01, 0x27, 0x02, 0x02, 0x28, 0x01, 0x01, 0x01, 0x02, 0x02, 0x02, 0x1B, 0x01, 0x01, 0x07, 0x02, 0x02, 0x02, 0x3B, 0x01, 0x01, 0x14, 0xD1, 0x02, 0x02, 0xD2 },
186
    [0x6C] = { 0x01, 0x01, 0x13, 0x27, 0x02, 0x02, 0x58, 0x01, 0x01, 0x05, 0x52, 0x02, 0x02, 0x2F, 0x01, 0x01, 0x01, 0x0F, 0x02, 0x02, 0x02, 0x3B, 0x01, 0x01, 0x14, 0xD3, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04 },
187
    [0x6D] = { 0x01, 0x01, 0x01, 0x05, 0x15, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
188
    [0x6E] = { 0x05, 0x01, 0x01, 0x1F, 0x54, 0x08, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x07, 0x00, 0x00, 0x00, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
189
    [0x6F] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x0A, 0x0E, 0x07, 0x04, 0xD4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
190
    [0x70] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x07, 0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0B, 0x04, 0x06 },
191
    [0x71] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x0B, 0x04, 0x06 },
192
    [0x72] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x07, 0xD5, 0xD6 },
193
    [0x73] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x01, 0x05, 0x01, 0x01, 0x07, 0x21 },
194
    [0x74] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x05, 0x26, 0x01, 0x05 },
195
    [0x75] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
196
    [0x76] = { 0x02, 0x02, 0x02, 0x02, 0x1B, 0x01, 0x01, 0x01, 0x53, 0xD7, 0x04, 0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
197
    [0x77] = { 0x11, 0x01, 0x01, 0x01, 0x3C, 0x0C, 0x14, 0x57, 0xD8, 0xD9, 0x3C, 0xDA, 0x3C, 0x14, 0x14, 0x46, 0x01, 0x17, 0x01, 0x0B, 0x23, 0x17, 0x01, 0x0B, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
198
    [0x78] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x02, 0x02, 0x3D, 0x02, 0x02, 0x02, 0x3D, 0x02, 0x02, 0x02, 0x3D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
199
    [0x79] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00 },
200
    [0x7A] = { 0x01, 0x01, 0x01, 0x07, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01 },
201
    [0x7B] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x07, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01 },
202
    [0x7C] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x09, 0x00, 0x01, 0x01 },
203
    [0x7D] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
204
    [0x7E] = { 0x01, 0x01, 0x01, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
205
    [0x7F] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x08, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01 },
206
    [0x80] = { 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x0D, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
207
};
208
209
/* No properties. */
210
#define N 0
211
212
/* A digit: alphanumeric but not alphabetic. */
213
#define D (PRISM_ENCODING_ALPHANUMERIC_BIT)
214
215
/* A letter that is not uppercase: alphabetic and alphanumeric. */
216
#define A (PRISM_ENCODING_ALPHABETIC_BIT | PRISM_ENCODING_ALPHANUMERIC_BIT)
217
218
/* An uppercase or titlecase letter: alphabetic, alphanumeric, and uppercase. */
219
#define U (PRISM_ENCODING_ALPHABETIC_BIT | PRISM_ENCODING_ALPHANUMERIC_BIT | PRISM_ENCODING_UPPERCASE_BIT)
220
221
static const uint8_t pm_unicode_leaf[219][8] = {
222
    [0x00] = { N, N, N, N, N, N, N, N },
223
    [0x01] = { A, A, A, A, A, A, A, A },
224
    [0x02] = { U, U, U, U, U, U, U, U },
225
    [0x03] = { U, A, U, A, U, A, U, A },
226
    [0x04] = { D, D, D, D, D, D, D, D },
227
    [0x05] = { A, A, A, A, A, A, A, N },
228
    [0x06] = { D, D, N, N, N, N, N, N },
229
    [0x07] = { A, A, A, A, A, A, N, N },
230
    [0x08] = { A, A, A, N, N, N, N, N },
231
    [0x09] = { A, N, N, N, N, N, N, N },
232
    [0x0A] = { A, A, A, A, A, N, N, N },
233
    [0x0B] = { A, A, A, A, N, N, N, N },
234
    [0x0C] = { N, A, A, A, A, A, A, A },
235
    [0x0D] = { A, A, N, N, N, N, N, N },
236
    [0x0E] = { N, N, N, N, N, N, N, A },
237
    [0x0F] = { A, N, A, A, A, A, A, A },
238
    [0x10] = { N, N, A, A, A, A, A, A },
239
    [0x11] = { A, A, A, A, N, A, A, A },
240
    [0x12] = { A, A, A, A, A, A, N, A },
241
    [0x13] = { A, A, A, A, A, N, A, A },
242
    [0x14] = { A, A, A, N, A, A, A, A },
243
    [0x15] = { N, N, N, N, N, A, A, A },
244
    [0x16] = { A, A, A, A, A, N, N, A },
245
    [0x17] = { A, A, N, A, A, A, A, A },
246
    [0x18] = { N, N, N, A, A, A, A, A },
247
    [0x19] = { A, A, A, A, N, N, D, D },
248
    [0x1A] = { A, N, A, A, A, A, N, N },
249
    [0x1B] = { U, U, A, A, A, A, A, A },
250
    [0x1C] = { N, N, A, N, N, N, N, N },
251
    [0x1D] = { N, N, N, N, N, A, N, N },
252
    [0x1E] = { N, N, N, N, A, A, A, A },
253
    [0x1F] = { A, N, N, A, A, A, A, A },
254
    [0x20] = { A, A, N, N, N, A, A, A },
255
    [0x21] = { N, N, N, N, N, N, A, A },
256
    [0x22] = { D, D, A, A, A, A, A, A },
257
    [0x23] = { N, A, A, A, N, A, A, A },
258
    [0x24] = { N, N, N, N, N, N, D, D },
259
    [0x25] = { A, A, A, N, N, N, A, A },
260
    [0x26] = { A, A, A, A, N, A, A, N },
261
    [0x27] = { A, A, A, A, U, U, U, U },
262
    [0x28] = { U, U, U, U, U, U, A, A },
263
    [0x29] = { N, A, N, N, N, N, N, N },
264
    [0x2A] = { A, A, A, N, N, N, N, A },
265
    [0x2B] = { U, U, U, U, U, U, N, N },
266
    [0x2C] = { N, A, A, A, A, A, A, N },
267
    [0x2D] = { N, U, U, U, U, U, U, U },
268
    [0x2E] = { U, U, U, N, N, N, N, N },
269
    [0x2F] = { U, U, U, U, U, U, U, N },
270
    [0x30] = { A, U, A, U, A, U, A, U },
271
    [0x31] = { A, A, N, N, N, N, A, A },
272
    [0x32] = { A, N, N, A, A, N, N, N },
273
    [0x33] = { A, N, A, A, N, A, A, A },
274
    [0x34] = { A, A, N, A, A, N, N, N },
275
    [0x35] = { A, N, A, A, A, N, N, N },
276
    [0x36] = { A, A, A, N, A, A, N, N },
277
    [0x37] = { A, A, A, N, N, A, A, A },
278
    [0x38] = { A, A, A, A, A, N, A, N },
279
    [0x39] = { U, U, U, U, U, N, N, N },
280
    [0x3A] = { N, A, A, A, A, A, N, N },
281
    [0x3B] = { U, N, A, A, A, A, A, A },
282
    [0x3C] = { N, A, A, N, A, N, N, A },
283
    [0x3D] = { U, U, N, N, N, N, N, N },
284
    [0x3E] = { A, A, U, A, U, A, U, A },
285
    [0x3F] = { A, U, U, A, U, A, U, U },
286
    [0x40] = { U, A, U, A, A, A, A, A },
287
    [0x41] = { U, U, U, U, A, A, A, A },
288
    [0x42] = { N, N, U, A, U, A, U, A },
289
    [0x43] = { A, N, N, N, N, A, A, A },
290
    [0x44] = { N, N, N, N, A, A, N, A },
291
    [0x45] = { N, N, N, N, A, N, N, N },
292
    [0x46] = { N, A, A, A, A, N, A, N },
293
    [0x47] = { N, A, A, A, A, N, N, N },
294
    [0x48] = { N, A, A, N, A, N, A, A },
295
    [0x49] = { A, N, N, N, N, N, N, A },
296
    [0x4A] = { N, N, N, N, N, A, A, N },
297
    [0x4B] = { N, N, N, N, A, A, A, N },
298
    [0x4C] = { A, A, A, A, N, A, N, N },
299
    [0x4D] = { A, A, A, A, N, N, A, A },
300
    [0x4E] = { U, U, U, N, N, U, U, U },
301
    [0x4F] = { N, N, A, A, A, N, A, A },
302
    [0x50] = { U, U, U, U, N, N, N, N },
303
    [0x51] = { A, A, N, N, N, N, A, N },
304
    [0x52] = { A, A, A, A, A, A, U, U },
305
    [0x53] = { A, A, A, A, N, N, N, A },
306
    [0x54] = { A, A, N, A, A, N, A, A },
307
    [0x55] = { N, N, A, A, A, N, N, N },
308
    [0x56] = { U, U, U, N, U, U, U, U },
309
    [0x57] = { N, A, N, A, N, N, N, N },
310
    [0x58] = { U, U, U, U, U, N, A, A },
311
    [0x59] = { U, U, U, U, U, U, U, A },
312
    [0x5A] = { U, U, A, U, A, U, A, A },
313
    [0x5B] = { A, U, U, U, A, A, U, U },
314
    [0x5C] = { U, U, A, U, U, A, U, U },
315
    [0x5D] = { U, A, A, A, U, U, A, U },
316
    [0x5E] = { U, A, U, A, U, A, U, U },
317
    [0x5F] = { A, U, A, A, U, A, U, U },
318
    [0x60] = { A, U, U, U, A, U, A, U },
319
    [0x61] = { U, A, A, A, U, A, A, A },
320
    [0x62] = { A, A, A, A, U, U, A, U },
321
    [0x63] = { U, A, U, U, A, U, A, U },
322
    [0x64] = { A, U, A, U, A, A, U, A },
323
    [0x65] = { A, A, U, U, A, U, U, A },
324
    [0x66] = { A, U, A, U, U, U, U, A },
325
    [0x67] = { N, N, N, N, A, N, A, N },
326
    [0x68] = { U, A, U, A, A, N, U, A },
327
    [0x69] = { N, N, A, A, A, A, N, U },
328
    [0x6A] = { N, N, N, N, N, N, U, N },
329
    [0x6B] = { U, U, U, N, U, N, U, U },
330
    [0x6C] = { A, U, U, U, U, U, U, U },
331
    [0x6D] = { U, U, N, U, U, U, U, U },
332
    [0x6E] = { A, A, A, A, A, A, A, U },
333
    [0x6F] = { A, A, U, U, U, A, A, A },
334
    [0x70] = { A, A, A, A, U, A, N, U },
335
    [0x71] = { A, U, U, A, A, U, U, U },
336
    [0x72] = { U, A, N, N, N, N, N, N },
337
    [0x73] = { U, U, A, U, A, U, A, U },
338
    [0x74] = { A, U, A, U, A, U, A, A },
339
    [0x75] = { N, A, A, N, A, A, N, A },
340
    [0x76] = { D, D, N, N, N, N, A, A },
341
    [0x77] = { D, D, A, A, A, N, N, A },
342
    [0x78] = { N, N, N, N, A, A, N, N },
343
    [0x79] = { A, N, A, N, N, N, A, A },
344
    [0x7A] = { A, N, N, A, A, N, A, N },
345
    [0x7B] = { A, N, A, A, N, A, A, N },
346
    [0x7C] = { N, N, A, A, N, A, A, A },
347
    [0x7D] = { N, N, N, A, A, N, N, N },
348
    [0x7E] = { N, A, A, A, N, N, N, N },
349
    [0x7F] = { A, N, A, A, A, N, A, N },
350
    [0x80] = { N, N, A, A, N, N, N, N },
351
    [0x81] = { A, A, A, A, N, A, N, A },
352
    [0x82] = { A, A, N, A, A, A, N, N },
353
    [0x83] = { D, D, N, N, A, A, A, A },
354
    [0x84] = { D, D, A, A, A, A, N, N },
355
    [0x85] = { U, U, U, U, U, U, N, U },
356
    [0x86] = { N, N, N, N, N, U, N, N },
357
    [0x87] = { A, N, A, A, N, N, N, N },
358
    [0x88] = { A, A, N, N, A, A, A, A },
359
    [0x89] = { D, D, N, N, N, A, A, A },
360
    [0x8A] = { A, U, A, N, N, N, N, N },
361
    [0x8B] = { N, A, A, A, A, N, A, A },
362
    [0x8C] = { U, A, U, A, U, A, A, A },
363
    [0x8D] = { A, A, A, A, A, A, U, A },
364
    [0x8E] = { N, U, N, U, N, U, N, U },
365
    [0x8F] = { U, U, U, U, U, N, A, N },
366
    [0x90] = { N, N, U, N, N, N, N, U },
367
    [0x91] = { N, N, A, U, U, U, A, A },
368
    [0x92] = { U, U, U, A, N, U, N, N },
369
    [0x93] = { N, U, U, U, U, U, N, N },
370
    [0x94] = { N, N, N, N, U, N, U, N },
371
    [0x95] = { U, N, U, U, U, U, N, A },
372
    [0x96] = { A, A, N, N, A, A, U, U },
373
    [0x97] = { N, N, N, N, N, U, A, A },
374
    [0x98] = { A, A, A, U, A, A, A, A },
375
    [0x99] = { N, N, N, N, N, N, U, U },
376
    [0x9A] = { U, A, U, U, U, A, A, U },
377
    [0x9B] = { A, U, A, U, A, U, U, U },
378
    [0x9C] = { U, A, U, A, A, U, A, A },
379
    [0x9D] = { U, A, U, A, A, N, N, N },
380
    [0x9E] = { N, N, N, U, A, U, A, N },
381
    [0x9F] = { N, N, U, A, N, N, N, N },
382
    [0xA0] = { D, D, A, A, N, N, N, N },
383
    [0xA1] = { U, A, U, A, U, A, A, N },
384
    [0xA2] = { A, U, A, U, A, U, U, A },
385
    [0xA3] = { A, N, N, U, A, U, A, A },
386
    [0xA4] = { U, A, U, A, A, A, U, A },
387
    [0xA5] = { U, A, U, U, U, U, U, A },
388
    [0xA6] = { U, U, U, U, U, A, U, A },
389
    [0xA7] = { U, A, U, A, U, U, U, U },
390
    [0xA8] = { A, U, A, U, U, A, U, A },
391
    [0xA9] = { U, A, U, A, U, N, N, N },
392
    [0xAA] = { N, A, A, A, A, U, A, A },
393
    [0xAB] = { N, N, N, A, N, A, A, A },
394
    [0xAC] = { D, D, A, A, A, A, A, N },
395
    [0xAD] = { A, N, A, N, N, N, N, N },
396
    [0xAE] = { N, N, N, A, A, A, N, N },
397
    [0xAF] = { N, N, A, A, A, A, N, N },
398
    [0xB0] = { A, A, A, N, A, A, N, A },
399
    [0xB1] = { U, U, U, N, U, U, N, A },
400
    [0xB2] = { A, N, N, N, A, N, N, A },
401
    [0xB3] = { N, A, N, N, N, N, N, A },
402
    [0xB4] = { A, A, A, N, N, N, D, D },
403
    [0xB5] = { A, A, A, N, N, N, A, N },
404
    [0xB6] = { D, D, A, N, A, N, N, N },
405
    [0xB7] = { A, N, A, A, A, A, N, A },
406
    [0xB8] = { A, A, N, A, N, N, A, N },
407
    [0xB9] = { A, N, A, N, N, A, N, A },
408
    [0xBA] = { A, A, N, A, A, A, N, A },
409
    [0xBB] = { D, D, N, N, N, N, N, A },
410
    [0xBC] = { A, A, N, N, A, A, N, A },
411
    [0xBD] = { A, N, N, N, A, N, N, N },
412
    [0xBE] = { D, D, D, D, N, N, N, N },
413
    [0xBF] = { N, A, N, N, A, A, A, A },
414
    [0xC0] = { A, N, N, A, A, N, N, A },
415
    [0xC1] = { N, A, N, A, A, N, N, N },
416
    [0xC2] = { N, N, A, N, A, A, N, A },
417
    [0xC3] = { A, A, N, A, N, N, A, A },
418
    [0xC4] = { A, A, N, A, A, A, A, N },
419
    [0xC5] = { U, N, N, A, A, A, A, A },
420
    [0xC6] = { A, A, N, A, N, N, N, N },
421
    [0xC7] = { A, A, A, N, N, A, N, N },
422
    [0xC8] = { A, A, A, A, U, N, U, U },
423
    [0xC9] = { N, N, U, N, N, U, U, N },
424
    [0xCA] = { N, U, U, U, U, N, U, U },
425
    [0xCB] = { A, A, N, A, N, A, A, A },
426
    [0xCC] = { A, A, A, A, U, U, N, U },
427
    [0xCD] = { U, U, U, U, U, N, U, U },
428
    [0xCE] = { U, U, N, U, U, U, U, N },
429
    [0xCF] = { U, U, U, U, U, N, U, N },
430
    [0xD0] = { N, N, U, U, U, U, U, U },
431
    [0xD1] = { A, A, U, U, U, U, U, U },
432
    [0xD2] = { U, U, U, N, A, A, A, A },
433
    [0xD3] = { A, A, U, A, N, N, D, D },
434
    [0xD4] = { D, D, N, N, N, N, A, N },
435
    [0xD5] = { A, D, D, D, D, D, D, D },
436
    [0xD6] = { D, D, D, N, N, N, N, N },
437
    [0xD7] = { N, N, N, A, N, N, N, N },
438
    [0xD8] = { N, N, A, N, N, N, N, A },
439
    [0xD9] = { N, A, N, A, N, A, A, A },
440
    [0xDA] = { N, A, N, A, N, A, N, A },
441
};
442
443
#undef N
444
#undef D
445
#undef A
446
#undef U
447
448
/**
449
 * Each element of the following table contains a bitfield that indicates a
450
 * piece of information about the corresponding US-ASCII character.
451
 */
452
const uint8_t pm_encoding_ascii_table[256] = {
453
/*  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F */
454
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 0x */
455
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 1x */
456
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 2x */
457
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, /* 3x */
458
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, /* 4x */
459
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, /* 5x */
460
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, /* 6x */
461
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, /* 7x */
462
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 8x */
463
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 9x */
464
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* Ax */
465
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* Bx */
466
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* Cx */
467
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* Dx */
468
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* Ex */
469
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* Fx */
470
};
471
472
/**
473
 * Return the bitfield of properties for the given unicode codepoint.
474
 */
475
static uint8_t
476
3.62k
pm_unicode_codepoint_properties(pm_unicode_codepoint_t codepoint) {
477
3.62k
    if (codepoint >= UNICODE_CODEPOINTS_MAXIMUM) 
return 09
;
  Branch (477:9): [True: 9, False: 3.62k]
478
479
3.62k
    uint8_t middle = pm_unicode_root[codepoint >> 8];
480
3.62k
    uint8_t leaf = pm_unicode_middle[middle][(codepoint >> 3) & 0x1F];
481
3.62k
    return pm_unicode_leaf[leaf][codepoint & 0x7];
482
3.62k
}
483
484
/**
485
 * A state transition table for decoding UTF-8.
486
 *
487
 * Copyright (c) 2008-2009 Bjoern Hoehrmann <bjoern@hoehrmann.de>
488
 *
489
 * Permission is hereby granted, free of charge, to any person obtaining a copy
490
 * of this software and associated documentation files (the "Software"), to deal
491
 * in the Software without restriction, including without limitation the rights
492
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
493
 * copies of the Software, and to permit persons to whom the Software is
494
 * furnished to do so, subject to the following conditions:
495
 *
496
 * The above copyright notice and this permission notice shall be included in
497
 * all copies or substantial portions of the Software.
498
 *
499
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
500
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
501
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
502
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
503
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
504
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
505
 * SOFTWARE.
506
 */
507
static const uint8_t pm_utf_8_dfa[] = {
508
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 00..1f
509
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 20..3f
510
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 40..5f
511
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, // 60..7f
512
    1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, // 80..9f
513
    7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, // a0..bf
514
    8,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, // c0..df
515
    0xa,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x3,0x4,0x3,0x3, // e0..ef
516
    0xb,0x6,0x6,0x6,0x5,0x8,0x8,0x8,0x8,0x8,0x8,0x8,0x8,0x8,0x8,0x8, // f0..ff
517
    0x0,0x1,0x2,0x3,0x5,0x8,0x7,0x1,0x1,0x1,0x4,0x6,0x1,0x1,0x1,0x1, // s0..s0
518
    1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,0,1,0,1,1,1,1,1,1, // s1..s2
519
    1,2,1,1,1,1,1,2,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1, // s3..s4
520
    1,2,1,1,1,1,1,1,1,2,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1,3,1,1,1,1,1,1, // s5..s6
521
    1,3,1,1,1,1,1,3,1,3,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1, // s7..s8
522
};
523
524
/**
525
 * Given a pointer to a string and the number of bytes remaining in the string,
526
 * decode the next UTF-8 codepoint and return it. The number of bytes consumed
527
 * is returned in the width out parameter.
528
 */
529
static pm_unicode_codepoint_t
530
936
pm_utf_8_codepoint(const uint8_t *b, ptrdiff_t n, size_t *width) {
531
936
    PRISM_ASSERT(n >= 0);
  Branch (531:5): [True: 0, False: 936]
  Branch (531:5): [True: 936, False: 0]
532
533
936
    size_t maximum = (n > 4) ? 
4860
:
((size_t) n)76
;
  Branch (533:22): [True: 860, False: 76]
534
936
    uint32_t codepoint;
535
936
    uint32_t state = 0;
536
537
2.89k
    for (size_t index = 0; index < maximum; 
index++1.95k
) {
  Branch (537:28): [True: 2.54k, False: 348]
538
2.54k
        uint32_t byte = b[index];
539
2.54k
        uint32_t type = pm_utf_8_dfa[byte];
540
541
2.54k
        codepoint = (state != 0) ?
  Branch (541:21): [True: 1.60k, False: 936]
542
1.60k
            (byte & 0x3fu) | (codepoint << 6) :
543
2.54k
            
(0xffu >> type) & (byte)936
;
544
545
2.54k
        state = pm_utf_8_dfa[256 + (state * 16) + type];
546
2.54k
        if (state == 0) {
  Branch (546:13): [True: 588, False: 1.95k]
547
588
            *width = index + 1;
548
588
            return (pm_unicode_codepoint_t) codepoint;
549
588
        }
550
2.54k
    }
551
552
348
    *width = 0;
553
348
    return 0;
554
936
}
555
556
/**
557
 * Return the size of the next character in the UTF-8 encoding.
558
 */
559
size_t
560
2.27M
pm_encoding_utf_8_char_width(const uint8_t *b, ptrdiff_t n) {
561
2.27M
    PRISM_ASSERT(n >= 0);
  Branch (561:5): [True: 0, False: 2.27M]
  Branch (561:5): [True: 2.27M, False: 0]
562
563
2.27M
    size_t maximum = (n > 4) ? 
42.09M
:
((size_t) n)181k
;
  Branch (563:22): [True: 2.09M, False: 181k]
564
2.27M
    uint32_t state = 0;
565
566
2.68M
    for (size_t index = 0; index < maximum; 
index++411k
) {
  Branch (566:28): [True: 2.58M, False: 102k]
567
2.58M
        state = pm_utf_8_dfa[256 + (state * 16) + pm_utf_8_dfa[b[index]]];
568
2.58M
        if (state == 0) 
return index + 12.17M
;
  Branch (568:13): [True: 2.17M, False: 411k]
569
2.58M
    }
570
571
102k
    return 0;
572
2.27M
}
573
574
/**
575
 * Return the size of the next character in the UTF-8 encoding if it is an
576
 * alphabetical character.
577
 */
578
size_t
579
384
pm_encoding_utf_8_alpha_char(const uint8_t *b, ptrdiff_t n) {
580
384
    if (n == 0) {
  Branch (580:9): [True: 0, False: 384]
581
0
        return 0;
582
0
    }
583
584
384
    if (*b < 0x80) {
  Branch (584:9): [True: 220, False: 164]
585
220
        return (pm_encoding_ascii_table[*b] & PRISM_ENCODING_ALPHABETIC_BIT) ? 
1188
:
032
;
  Branch (585:16): [True: 188, False: 32]
586
220
    }
587
588
164
    size_t width;
589
164
    pm_unicode_codepoint_t codepoint = pm_utf_8_codepoint(b, n, &width);
590
591
164
    return (pm_unicode_codepoint_properties(codepoint) & PRISM_ENCODING_ALPHABETIC_BIT) ? 
width3
:
0161
;
  Branch (591:12): [True: 3, False: 161]
592
384
}
593
594
/**
595
 * Return the size of the next character in the UTF-8 encoding if it is an
596
 * alphanumeric character.
597
 */
598
size_t
599
31.6k
pm_encoding_utf_8_alnum_char(const uint8_t *b, ptrdiff_t n) {
600
31.6k
    if (n == 0) {
  Branch (600:9): [True: 0, False: 31.6k]
601
0
        return 0;
602
0
    }
603
604
31.6k
    if (*b < 0x80) {
  Branch (604:9): [True: 31.4k, False: 208]
605
31.4k
        return (pm_encoding_ascii_table[*b] & (PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
116.9k
:
014.5k
;
  Branch (605:16): [True: 16.9k, False: 14.5k]
606
31.4k
    }
607
608
208
    size_t width;
609
208
    pm_unicode_codepoint_t codepoint = pm_utf_8_codepoint(b, n, &width);
610
611
208
    return (pm_unicode_codepoint_properties(codepoint) & (PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
width17
:
0191
;
  Branch (611:12): [True: 17, False: 191]
612
31.6k
}
613
614
/**
615
 * Return true if the next character in the UTF-8 encoding if it is an uppercase
616
 * character.
617
 */
618
bool
619
8.31k
pm_encoding_utf_8_isupper_char(const uint8_t *b, ptrdiff_t n) {
620
8.31k
    if (n == 0) {
  Branch (620:9): [True: 0, False: 8.31k]
621
0
        return 0;
622
0
    }
623
624
8.31k
    if (*b < 0x80) {
  Branch (624:9): [True: 7.75k, False: 564]
625
7.75k
        return (pm_encoding_ascii_table[*b] & PRISM_ENCODING_UPPERCASE_BIT) ? true : false;
  Branch (625:16): [True: 307, False: 7.44k]
626
7.75k
    }
627
628
564
    size_t width;
629
564
    pm_unicode_codepoint_t codepoint = pm_utf_8_codepoint(b, n, &width);
630
631
564
    return (pm_unicode_codepoint_properties(codepoint) & PRISM_ENCODING_UPPERCASE_BIT) ? true : false;
  Branch (631:12): [True: 185, False: 379]
632
8.31k
}
633
634
#ifndef PRISM_ENCODING_EXCLUDE_FULL
635
636
static pm_unicode_codepoint_t
637
11.2k
pm_cesu_8_codepoint(const uint8_t *b, ptrdiff_t n, size_t *width) {
638
639
11.2k
    if ((n > 0) && (b[0] < 0x80)) {
  Branch (639:9): [True: 11.2k, False: 0]
  Branch (639:20): [True: 3.34k, False: 7.87k]
640
3.34k
        *width = 1;
641
3.34k
        return (pm_unicode_codepoint_t) b[0];
642
3.34k
    }
643
644
7.87k
    if (n > 1 && 
b[0] >= 0xC27.80k
&&
b[0] <= 0xDF6.24k
&&
b[1] >= 0x802.12k
&&
b[1] <= 0xBF1.85k
) {
  Branch (644:9): [True: 7.80k, False: 66]
  Branch (644:18): [True: 6.24k, False: 1.56k]
  Branch (644:34): [True: 2.12k, False: 4.12k]
  Branch (644:50): [True: 1.85k, False: 275]
  Branch (644:66): [True: 214, False: 1.63k]
645
214
        *width = 2;
646
647
        // 110xxxxx 10xxxxxx
648
214
        return (pm_unicode_codepoint_t) (((b[0] & 0x1F) << 6) | (b[1] & 0x3F));
649
214
    }
650
651
7.66k
    if (n > 5 && 
b[0] == 0xED7.34k
&&
b[1] >= 0xA0225
&&
b[1] <= 0xAF209
&&
b[2] >= 0x800
&&
b[2] <= 0xBF0
&&
b[3] == 0xED0
&&
b[4] >= 0xB00
&&
b[4] <= 0xBF0
&&
b[5] >= 0x800
&&
b[5] <= 0xBF0
) {
  Branch (651:9): [True: 7.34k, False: 318]
  Branch (651:18): [True: 225, False: 7.11k]
  Branch (651:34): [True: 209, False: 16]
  Branch (651:50): [True: 0, False: 209]
  Branch (651:66): [True: 0, False: 0]
  Branch (651:82): [True: 0, False: 0]
  Branch (651:98): [True: 0, False: 0]
  Branch (651:114): [True: 0, False: 0]
  Branch (651:130): [True: 0, False: 0]
  Branch (651:146): [True: 0, False: 0]
  Branch (651:162): [True: 0, False: 0]
652
0
        *width = 6;
653
654
        // 11101101 1010xxxx 10xxxxxx 11101101 1011xxxx 10xxxxxx
655
0
        return (pm_unicode_codepoint_t) (0x10000 + (((b[1] & 0xF) << 16) | ((b[2] & 0x3F) << 10) | ((b[4] & 0xF) << 6) | (b[5] & 0x3F)));
656
0
    }
657
658
7.66k
    if (n > 2 && 
b[0] == 0xED7.53k
&&
b[1] >= 0xA0228
&&
b[1] <= 0xBF212
) {
  Branch (658:9): [True: 7.53k, False: 130]
  Branch (658:18): [True: 228, False: 7.30k]
  Branch (658:34): [True: 212, False: 16]
  Branch (658:50): [True: 9, False: 203]
659
9
        *width = 3;
660
661
        // 11101101 1010xxxx 10xxxxx
662
9
        return (pm_unicode_codepoint_t) (0x10000 + (((b[0] & 0x03) << 16) | ((b[1] & 0x3F) << 10) | (b[2] & 0x3F)));
663
9
    }
664
665
7.65k
    if (n > 2 && 
(7.52k
(7.52k
b[0] == 0xE07.52k
&&
b[1] >= 0xA0110
) ||
(7.42k
b[0] >= 0xE17.42k
&&
b[0] <= 0xEF3.94k
&&
b[1] >= 0x802.21k
)) &&
b[1] <= 0xBF1.91k
&&
b[2] >= 0x80150
&&
b[2] <= 0xBF137
) {
  Branch (665:9): [True: 7.52k, False: 130]
  Branch (665:20): [True: 110, False: 7.41k]
  Branch (665:36): [True: 95, False: 15]
  Branch (665:54): [True: 3.94k, False: 3.48k]
  Branch (665:70): [True: 2.21k, False: 1.72k]
  Branch (665:86): [True: 1.81k, False: 400]
  Branch (665:104): [True: 150, False: 1.76k]
  Branch (665:120): [True: 137, False: 13]
  Branch (665:136): [True: 135, False: 2]
666
135
        *width = 3;
667
668
        // 1110xxxx 10xxxxxx 10xxxxx
669
135
        return (pm_unicode_codepoint_t) (((b[0] & 0xF) << 12) | ((b[1] & 0x3F) << 6) | (b[2] & 0x3F));
670
135
    }
671
672
7.51k
    *width = 0;
673
7.51k
    return 0;
674
7.65k
}
675
676
static size_t
677
8.52k
pm_encoding_cesu_8_char_width(const uint8_t *b, ptrdiff_t n) {
678
8.52k
    if (n == 0) {
  Branch (678:9): [True: 0, False: 8.52k]
679
0
        return 0;
680
0
    }
681
682
8.52k
    size_t width;
683
8.52k
    pm_cesu_8_codepoint(b, n, &width);
684
8.52k
    return width;
685
8.52k
}
686
687
static size_t
688
5.99k
pm_encoding_cesu_8_alpha_char(const uint8_t *b, ptrdiff_t n) {
689
5.99k
    if (n == 0) {
  Branch (689:9): [True: 0, False: 5.99k]
690
0
        return 0;
691
0
    }
692
693
5.99k
    if (*b < 0x80) {
  Branch (693:9): [True: 3.73k, False: 2.26k]
694
3.73k
        return (pm_encoding_ascii_table[*b] & PRISM_ENCODING_ALPHABETIC_BIT) ? 
13.25k
:
0479
;
  Branch (694:16): [True: 3.25k, False: 479]
695
3.73k
    }
696
697
2.26k
    size_t width;
698
2.26k
    pm_unicode_codepoint_t codepoint = pm_cesu_8_codepoint(b, n, &width);
699
700
2.26k
    return (pm_unicode_codepoint_properties(codepoint) & PRISM_ENCODING_ALPHABETIC_BIT) ? 
width83
:
02.17k
;
  Branch (700:12): [True: 83, False: 2.17k]
701
5.99k
}
702
703
static size_t
704
11.4k
pm_encoding_cesu_8_alnum_char(const uint8_t *b, ptrdiff_t n) {
705
11.4k
    if (n == 0) {
  Branch (705:9): [True: 0, False: 11.4k]
706
0
        return 0;
707
0
    }
708
709
11.4k
    if (*b < 0x80) {
  Branch (709:9): [True: 11.1k, False: 345]
710
11.1k
        return (pm_encoding_ascii_table[*b] & (PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
17.91k
:
03.19k
;
  Branch (710:16): [True: 7.91k, False: 3.19k]
711
11.1k
    }
712
713
345
    size_t width;
714
345
    pm_unicode_codepoint_t codepoint = pm_cesu_8_codepoint(b, n, &width);
715
716
345
    return (pm_unicode_codepoint_properties(codepoint) & (PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
width19
:
0326
;
  Branch (716:12): [True: 19, False: 326]
717
11.4k
}
718
719
static bool
720
3.10k
pm_encoding_cesu_8_isupper_char(const uint8_t *b, ptrdiff_t n) {
721
3.10k
    if (n == 0) {
  Branch (721:9): [True: 0, False: 3.10k]
722
0
        return 0;
723
0
    }
724
725
3.10k
    if (*b < 0x80) {
  Branch (725:9): [True: 3.02k, False: 87]
726
3.02k
        return (pm_encoding_ascii_table[*b] & PRISM_ENCODING_UPPERCASE_BIT) ? true : false;
  Branch (726:16): [True: 399, False: 2.62k]
727
3.02k
    }
728
729
87
    size_t width;
730
87
    pm_unicode_codepoint_t codepoint = pm_cesu_8_codepoint(b, n, &width);
731
732
87
    return (pm_unicode_codepoint_properties(codepoint) & PRISM_ENCODING_UPPERCASE_BIT) ? true : false;
  Branch (732:12): [True: 56, False: 31]
733
3.10k
}
734
735
#endif
736
737
#undef UNICODE_CODEPOINTS_MAXIMUM
738
739
#ifndef PRISM_ENCODING_EXCLUDE_FULL
740
741
/**
742
 * Each element of the following table contains a bitfield that indicates a
743
 * piece of information about the corresponding CP850 character.
744
 */
745
static const uint8_t pm_encoding_cp850_table[256] = {
746
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
747
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
748
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
749
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
750
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
751
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
752
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
753
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
754
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
755
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
756
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
757
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
758
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
759
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
760
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
761
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
762
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
763
};
764
765
/**
766
 * Each element of the following table contains a bitfield that indicates a
767
 * piece of information about the corresponding CP852 character.
768
 */
769
static const uint8_t pm_encoding_cp852_table[256] = {
770
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
771
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
772
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
773
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
774
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
775
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
776
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
777
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
778
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
779
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
780
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
781
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
782
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
783
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
784
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
785
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
786
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
787
};
788
789
/**
790
 * Each element of the following table contains a bitfield that indicates a
791
 * piece of information about the corresponding CP855 character.
792
 */
793
static const uint8_t pm_encoding_cp855_table[256] = {
794
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
795
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
796
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
797
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
798
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
799
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
800
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
801
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
802
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
803
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
804
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
805
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
806
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
807
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
808
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
809
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
810
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
811
};
812
813
/**
814
 * Each element of the following table contains a bitfield that indicates a
815
 * piece of information about the corresponding GB1988 character.
816
 */
817
static const uint8_t pm_encoding_gb1988_table[256] = {
818
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
819
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
820
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
821
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
822
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
823
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
824
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
825
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
826
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
827
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
828
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
829
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
830
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
831
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
832
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
833
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
834
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
835
};
836
837
/**
838
 * Each element of the following table contains a bitfield that indicates a
839
 * piece of information about the corresponding IBM437 character.
840
 */
841
static const uint8_t pm_encoding_ibm437_table[256] = {
842
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
843
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
844
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
845
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
846
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
847
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
848
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
849
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
850
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
851
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
852
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
853
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
854
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
855
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
856
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
857
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
858
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
859
};
860
861
/**
862
 * Each element of the following table contains a bitfield that indicates a
863
 * piece of information about the corresponding IBM720 character.
864
 */
865
static const uint8_t pm_encoding_ibm720_table[256] = {
866
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
867
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
868
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
869
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
870
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
871
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
872
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
873
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
874
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
875
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
876
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
877
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
878
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
879
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
880
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
881
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
882
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
883
};
884
885
/**
886
 * Each element of the following table contains a bitfield that indicates a
887
 * piece of information about the corresponding IBM737 character.
888
 */
889
static const uint8_t pm_encoding_ibm737_table[256] = {
890
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
891
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
892
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
893
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
894
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
895
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
896
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
897
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
898
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
899
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
900
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
901
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
902
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
903
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
904
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
905
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
906
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
907
};
908
909
/**
910
 * Each element of the following table contains a bitfield that indicates a
911
 * piece of information about the corresponding IBM775 character.
912
 */
913
static const uint8_t pm_encoding_ibm775_table[256] = {
914
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
915
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
916
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
917
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
918
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
919
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
920
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
921
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
922
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
923
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
924
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
925
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
926
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
927
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
928
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
929
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
930
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
931
};
932
933
/**
934
 * Each element of the following table contains a bitfield that indicates a
935
 * piece of information about the corresponding IBM852 character.
936
 */
937
static const uint8_t pm_encoding_ibm852_table[256] = {
938
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
939
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
940
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
941
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
942
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
943
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
944
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
945
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
946
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
947
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
948
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
949
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
950
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
951
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
952
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
953
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
954
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
955
};
956
957
/**
958
 * Each element of the following table contains a bitfield that indicates a
959
 * piece of information about the corresponding IBM855 character.
960
 */
961
static const uint8_t pm_encoding_ibm855_table[256] = {
962
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
963
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
964
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
965
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
966
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
967
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
968
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
969
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
970
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
971
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
972
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
973
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
974
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
975
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
976
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
977
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
978
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
979
};
980
981
/**
982
 * Each element of the following table contains a bitfield that indicates a
983
 * piece of information about the corresponding IBM857 character.
984
 */
985
static const uint8_t pm_encoding_ibm857_table[256] = {
986
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
987
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
988
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
989
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
990
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
991
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
992
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
993
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
994
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
995
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
996
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
997
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
998
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
999
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1000
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1001
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1002
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1003
};
1004
1005
/**
1006
 * Each element of the following table contains a bitfield that indicates a
1007
 * piece of information about the corresponding IBM860 character.
1008
 */
1009
static const uint8_t pm_encoding_ibm860_table[256] = {
1010
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1011
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1012
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1013
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1014
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1015
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1016
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1017
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1018
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1019
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1020
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1021
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1022
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1023
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1024
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1025
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1026
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1027
};
1028
1029
/**
1030
 * Each element of the following table contains a bitfield that indicates a
1031
 * piece of information about the corresponding IBM861 character.
1032
 */
1033
static const uint8_t pm_encoding_ibm861_table[256] = {
1034
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1035
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1036
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1037
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1038
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1039
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1040
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1041
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1042
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1043
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1044
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1045
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1046
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1047
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1048
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1049
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1050
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1051
};
1052
1053
/**
1054
 * Each element of the following table contains a bitfield that indicates a
1055
 * piece of information about the corresponding IBM862 character.
1056
 */
1057
static const uint8_t pm_encoding_ibm862_table[256] = {
1058
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1059
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1060
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1061
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1062
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1063
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1064
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1065
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1066
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1067
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1068
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1069
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1070
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1071
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1072
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1073
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1074
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1075
};
1076
1077
/**
1078
 * Each element of the following table contains a bitfield that indicates a
1079
 * piece of information about the corresponding IBM863 character.
1080
 */
1081
static const uint8_t pm_encoding_ibm863_table[256] = {
1082
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1083
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1084
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1085
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1086
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1087
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1088
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1089
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1090
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1091
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1092
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1093
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1094
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1095
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1096
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1097
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1098
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1099
};
1100
1101
/**
1102
 * Each element of the following table contains a bitfield that indicates a
1103
 * piece of information about the corresponding IBM864 character.
1104
 */
1105
static const uint8_t pm_encoding_ibm864_table[256] = {
1106
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1107
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1108
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1109
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1110
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1111
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1112
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1113
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1114
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1115
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1116
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1117
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1118
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1119
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1120
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1121
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1122
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1123
};
1124
1125
/**
1126
 * Each element of the following table contains a bitfield that indicates a
1127
 * piece of information about the corresponding IBM865 character.
1128
 */
1129
static const uint8_t pm_encoding_ibm865_table[256] = {
1130
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1131
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1132
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1133
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1134
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1135
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1136
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1137
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1138
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1139
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1140
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1141
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1142
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1143
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1144
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1145
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1146
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1147
};
1148
1149
/**
1150
 * Each element of the following table contains a bitfield that indicates a
1151
 * piece of information about the corresponding IBM866 character.
1152
 */
1153
static const uint8_t pm_encoding_ibm866_table[256] = {
1154
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1155
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1156
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1157
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1158
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1159
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1160
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1161
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1162
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1163
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1164
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1165
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1166
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1167
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1168
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1169
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1170
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1171
};
1172
1173
/**
1174
 * Each element of the following table contains a bitfield that indicates a
1175
 * piece of information about the corresponding IBM869 character.
1176
 */
1177
static const uint8_t pm_encoding_ibm869_table[256] = {
1178
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1179
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1180
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1181
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1182
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1183
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1184
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1185
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1186
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1187
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1188
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1189
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1190
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1191
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1192
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1193
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1194
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1195
};
1196
1197
/**
1198
 * Each element of the following table contains a bitfield that indicates a
1199
 * piece of information about the corresponding ISO-8859-1 character.
1200
 */
1201
static const uint8_t pm_encoding_iso_8859_1_table[256] = {
1202
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1203
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1204
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1205
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1206
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1207
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1208
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1209
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1210
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1211
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1212
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1213
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, // Ax
1214
    0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, // Bx
1215
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Cx
1216
    7, 7, 7, 7, 7, 7, 7, 0, 7, 7, 7, 7, 7, 7, 7, 3, // Dx
1217
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1218
    3, 3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 3, 3, // Fx
1219
};
1220
1221
/**
1222
 * Each element of the following table contains a bitfield that indicates a
1223
 * piece of information about the corresponding ISO-8859-2 character.
1224
 */
1225
static const uint8_t pm_encoding_iso_8859_2_table[256] = {
1226
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1227
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1228
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1229
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1230
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1231
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1232
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1233
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1234
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1235
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1236
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1237
    0, 7, 0, 7, 0, 7, 7, 0, 0, 7, 7, 7, 7, 0, 7, 7, // Ax
1238
    0, 3, 0, 3, 0, 3, 3, 0, 0, 3, 3, 3, 3, 0, 3, 3, // Bx
1239
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Cx
1240
    7, 7, 7, 7, 7, 7, 7, 0, 7, 7, 7, 7, 7, 7, 7, 3, // Dx
1241
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1242
    3, 3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 3, 0, // Fx
1243
};
1244
1245
/**
1246
 * Each element of the following table contains a bitfield that indicates a
1247
 * piece of information about the corresponding ISO-8859-3 character.
1248
 */
1249
static const uint8_t pm_encoding_iso_8859_3_table[256] = {
1250
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1251
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1252
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1253
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1254
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1255
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1256
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1257
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1258
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1259
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1260
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1261
    0, 7, 0, 0, 0, 0, 7, 0, 0, 7, 7, 7, 7, 0, 0, 7, // Ax
1262
    0, 3, 0, 0, 0, 3, 3, 0, 0, 3, 3, 3, 3, 0, 0, 3, // Bx
1263
    7, 7, 7, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Cx
1264
    0, 7, 7, 7, 7, 7, 7, 0, 7, 7, 7, 7, 7, 7, 7, 3, // Dx
1265
    3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1266
    0, 3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 3, 0, // Fx
1267
};
1268
1269
/**
1270
 * Each element of the following table contains a bitfield that indicates a
1271
 * piece of information about the corresponding ISO-8859-4 character.
1272
 */
1273
static const uint8_t pm_encoding_iso_8859_4_table[256] = {
1274
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1275
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1276
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1277
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1278
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1279
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1280
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1281
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1282
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1283
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1284
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1285
    0, 7, 3, 7, 0, 7, 7, 0, 0, 7, 7, 7, 7, 0, 7, 0, // Ax
1286
    0, 3, 0, 3, 0, 3, 3, 0, 0, 3, 3, 3, 3, 7, 3, 3, // Bx
1287
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Cx
1288
    7, 7, 7, 7, 7, 7, 7, 0, 7, 7, 7, 7, 7, 7, 7, 3, // Dx
1289
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1290
    3, 3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 3, 0, // Fx
1291
};
1292
1293
/**
1294
 * Each element of the following table contains a bitfield that indicates a
1295
 * piece of information about the corresponding ISO-8859-5 character.
1296
 */
1297
static const uint8_t pm_encoding_iso_8859_5_table[256] = {
1298
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1299
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1300
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1301
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1302
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1303
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1304
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1305
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1306
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1307
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1308
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1309
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 7, 7, // Ax
1310
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Bx
1311
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Cx
1312
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Dx
1313
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1314
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 3, 3, // Fx
1315
};
1316
1317
/**
1318
 * Each element of the following table contains a bitfield that indicates a
1319
 * piece of information about the corresponding ISO-8859-6 character.
1320
 */
1321
static const uint8_t pm_encoding_iso_8859_6_table[256] = {
1322
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1323
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1324
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1325
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1326
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1327
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1328
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1329
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1330
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1331
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1332
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1333
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1334
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1335
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Cx
1336
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // Dx
1337
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1338
    3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1339
};
1340
1341
/**
1342
 * Each element of the following table contains a bitfield that indicates a
1343
 * piece of information about the corresponding ISO-8859-7 character.
1344
 */
1345
static const uint8_t pm_encoding_iso_8859_7_table[256] = {
1346
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1347
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1348
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1349
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1350
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1351
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1352
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1353
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1354
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1355
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1356
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1357
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1358
    0, 0, 0, 0, 0, 0, 7, 0, 7, 7, 7, 0, 7, 0, 7, 7, // Bx
1359
    3, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Cx
1360
    7, 7, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 3, 3, 3, 3, // Dx
1361
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1362
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, // Fx
1363
};
1364
1365
/**
1366
 * Each element of the following table contains a bitfield that indicates a
1367
 * piece of information about the corresponding ISO-8859-8 character.
1368
 */
1369
static const uint8_t pm_encoding_iso_8859_8_table[256] = {
1370
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1371
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1372
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1373
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1374
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1375
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1376
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1377
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1378
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1379
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1380
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1381
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1382
    0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1383
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1384
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1385
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1386
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // Fx
1387
};
1388
1389
/**
1390
 * Each element of the following table contains a bitfield that indicates a
1391
 * piece of information about the corresponding ISO-8859-9 character.
1392
 */
1393
static const uint8_t pm_encoding_iso_8859_9_table[256] = {
1394
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1395
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1396
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1397
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1398
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1399
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1400
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1401
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1402
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1403
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1404
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1405
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, // Ax
1406
    0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, // Bx
1407
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Cx
1408
    7, 7, 7, 7, 7, 7, 7, 0, 7, 7, 7, 7, 7, 7, 7, 3, // Dx
1409
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1410
    3, 3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 3, 3, // Fx
1411
};
1412
1413
/**
1414
 * Each element of the following table contains a bitfield that indicates a
1415
 * piece of information about the corresponding ISO-8859-10 character.
1416
 */
1417
static const uint8_t pm_encoding_iso_8859_10_table[256] = {
1418
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1419
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1420
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1421
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1422
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1423
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1424
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1425
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1426
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1427
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1428
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1429
    0, 7, 7, 7, 7, 7, 7, 0, 7, 7, 7, 7, 7, 0, 7, 7, // Ax
1430
    0, 3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 0, 3, 3, // Bx
1431
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Cx
1432
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 3, // Dx
1433
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1434
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Fx
1435
};
1436
1437
/**
1438
 * Each element of the following table contains a bitfield that indicates a
1439
 * piece of information about the corresponding ISO-8859-11 character.
1440
 */
1441
static const uint8_t pm_encoding_iso_8859_11_table[256] = {
1442
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1443
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1444
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1445
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1446
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1447
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1448
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1449
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1450
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1451
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1452
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1453
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ax
1454
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Bx
1455
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Cx
1456
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 3, // Dx
1457
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1458
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, // Fx
1459
};
1460
1461
/**
1462
 * Each element of the following table contains a bitfield that indicates a
1463
 * piece of information about the corresponding ISO-8859-13 character.
1464
 */
1465
static const uint8_t pm_encoding_iso_8859_13_table[256] = {
1466
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1467
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1468
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1469
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1470
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1471
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1472
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1473
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1474
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1475
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1476
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1477
    0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 7, 0, 0, 0, 0, 7, // Ax
1478
    0, 0, 0, 0, 0, 3, 0, 0, 3, 0, 3, 0, 0, 0, 0, 3, // Bx
1479
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Cx
1480
    7, 7, 7, 7, 7, 7, 7, 0, 7, 7, 7, 7, 7, 7, 7, 3, // Dx
1481
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1482
    3, 3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 3, 0, // Fx
1483
};
1484
1485
/**
1486
 * Each element of the following table contains a bitfield that indicates a
1487
 * piece of information about the corresponding ISO-8859-14 character.
1488
 */
1489
static const uint8_t pm_encoding_iso_8859_14_table[256] = {
1490
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1491
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1492
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1493
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1494
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1495
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1496
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1497
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1498
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1499
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1500
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1501
    0, 7, 3, 0, 7, 3, 7, 0, 7, 0, 7, 3, 7, 0, 0, 7, // Ax
1502
    7, 3, 7, 3, 7, 3, 0, 7, 3, 3, 3, 7, 3, 7, 3, 3, // Bx
1503
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Cx
1504
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 3, // Dx
1505
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1506
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Fx
1507
};
1508
1509
/**
1510
 * Each element of the following table contains a bitfield that indicates a
1511
 * piece of information about the corresponding ISO-8859-15 character.
1512
 */
1513
static const uint8_t pm_encoding_iso_8859_15_table[256] = {
1514
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1515
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1516
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1517
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1518
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1519
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1520
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1521
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1522
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1523
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1524
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1525
    0, 0, 0, 0, 0, 0, 7, 0, 3, 0, 3, 0, 0, 0, 0, 0, // Ax
1526
    0, 0, 0, 0, 7, 3, 0, 0, 3, 0, 3, 0, 7, 3, 7, 0, // Bx
1527
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Cx
1528
    7, 7, 7, 7, 7, 7, 7, 0, 7, 7, 7, 7, 7, 7, 7, 3, // Dx
1529
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1530
    3, 3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 3, 3, // Fx
1531
};
1532
1533
/**
1534
 * Each element of the following table contains a bitfield that indicates a
1535
 * piece of information about the corresponding ISO-8859-16 character.
1536
 */
1537
static const uint8_t pm_encoding_iso_8859_16_table[256] = {
1538
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1539
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1540
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1541
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1542
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1543
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1544
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1545
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1546
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1547
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1548
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1549
    0, 7, 3, 7, 0, 0, 7, 0, 3, 0, 7, 0, 7, 0, 3, 7, // Ax
1550
    0, 0, 7, 3, 7, 0, 0, 0, 3, 3, 3, 0, 7, 3, 7, 3, // Bx
1551
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Cx
1552
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 3, // Dx
1553
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1554
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Fx
1555
};
1556
1557
/**
1558
 * Each element of the following table contains a bitfield that indicates a
1559
 * piece of information about the corresponding KOI8-R character.
1560
 */
1561
static const uint8_t pm_encoding_koi8_r_table[256] = {
1562
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1563
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1564
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1565
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1566
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1567
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1568
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1569
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1570
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1571
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1572
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1573
    0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1574
    0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1575
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Cx
1576
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Dx
1577
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Ex
1578
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Fx
1579
};
1580
1581
/**
1582
 * Each element of the following table contains a bitfield that indicates a
1583
 * piece of information about the corresponding KOI8-U character.
1584
 */
1585
static const uint8_t pm_encoding_koi8_u_table[256] = {
1586
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1587
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1588
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1589
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1590
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1591
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1592
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1593
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1594
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1595
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1596
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1597
    0, 0, 0, 3, 3, 0, 3, 3, 0, 0, 0, 0, 0, 3, 0, 0, // Ax
1598
    0, 0, 0, 7, 7, 0, 7, 7, 0, 0, 0, 0, 0, 7, 0, 0, // Bx
1599
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Cx
1600
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Dx
1601
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Ex
1602
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Fx
1603
};
1604
1605
/**
1606
 * Each element of the following table contains a bitfield that indicates a
1607
 * piece of information about the corresponding macCentEuro character.
1608
 */
1609
static const uint8_t pm_encoding_mac_cent_euro_table[256] = {
1610
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1611
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1612
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1613
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1614
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1615
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1616
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1617
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1618
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1619
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1620
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1621
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1622
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1623
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1624
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1625
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1626
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1627
};
1628
1629
/**
1630
 * Each element of the following table contains a bitfield that indicates a
1631
 * piece of information about the corresponding macCroatian character.
1632
 */
1633
static const uint8_t pm_encoding_mac_croatian_table[256] = {
1634
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1635
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1636
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1637
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1638
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1639
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1640
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1641
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1642
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1643
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1644
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1645
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1646
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1647
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1648
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1649
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1650
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1651
};
1652
1653
 /**
1654
 * Each element of the following table contains a bitfield that indicates a
1655
 * piece of information about the corresponding macCyrillic character.
1656
 */
1657
static const uint8_t pm_encoding_mac_cyrillic_table[256] = {
1658
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1659
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1660
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1661
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1662
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1663
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1664
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1665
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1666
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1667
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1668
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1669
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1670
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1671
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1672
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1673
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1674
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1675
};
1676
1677
/**
1678
 * Each element of the following table contains a bitfield that indicates a
1679
 * piece of information about the corresponding macGreek character.
1680
 */
1681
static const uint8_t pm_encoding_mac_greek_table[256] = {
1682
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1683
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1684
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1685
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1686
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1687
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1688
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1689
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1690
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1691
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1692
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1693
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1694
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1695
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1696
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1697
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1698
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1699
};
1700
1701
/**
1702
 * Each element of the following table contains a bitfield that indicates a
1703
 * piece of information about the corresponding macIceland character.
1704
 */
1705
static const uint8_t pm_encoding_mac_iceland_table[256] = {
1706
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1707
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1708
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1709
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1710
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1711
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1712
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1713
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1714
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1715
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1716
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1717
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1718
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1719
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1720
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1721
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1722
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1723
};
1724
1725
/**
1726
 * Each element of the following table contains a bitfield that indicates a
1727
 * piece of information about the corresponding macRoman character.
1728
 */
1729
static const uint8_t pm_encoding_mac_roman_table[256] = {
1730
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1731
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1732
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1733
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1734
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1735
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1736
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1737
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1738
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1739
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1740
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1741
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1742
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1743
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1744
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1745
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1746
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1747
};
1748
1749
/**
1750
 * Each element of the following table contains a bitfield that indicates a
1751
 * piece of information about the corresponding macRomania character.
1752
 */
1753
static const uint8_t pm_encoding_mac_romania_table[256] = {
1754
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1755
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1756
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1757
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1758
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1759
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1760
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1761
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1762
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1763
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1764
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1765
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1766
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1767
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1768
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1769
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1770
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1771
};
1772
1773
/**
1774
 * Each element of the following table contains a bitfield that indicates a
1775
 * piece of information about the corresponding macThai character.
1776
 */
1777
static const uint8_t pm_encoding_mac_thai_table[256] = {
1778
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1779
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1780
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1781
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1782
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1783
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1784
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1785
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1786
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1787
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1788
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1789
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1790
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1791
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1792
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1793
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1794
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1795
};
1796
1797
/**
1798
 * Each element of the following table contains a bitfield that indicates a
1799
 * piece of information about the corresponding TIS-620 character.
1800
 */
1801
static const uint8_t pm_encoding_tis_620_table[256] = {
1802
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1803
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1804
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1805
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1806
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1807
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1808
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1809
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1810
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1811
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1812
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1813
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ax
1814
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Bx
1815
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Cx
1816
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 3, // Dx
1817
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1818
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, // Fx
1819
};
1820
1821
/**
1822
 * Each element of the following table contains a bitfield that indicates a
1823
 * piece of information about the corresponding macTurkish character.
1824
 */
1825
static const uint8_t pm_encoding_mac_turkish_table[256] = {
1826
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1827
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1828
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1829
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1830
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1831
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1832
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1833
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1834
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1835
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1836
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1837
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1838
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1839
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1840
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1841
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1842
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1843
};
1844
1845
/**
1846
 * Each element of the following table contains a bitfield that indicates a
1847
 * piece of information about the corresponding macUkraine character.
1848
 */
1849
static const uint8_t pm_encoding_mac_ukraine_table[256] = {
1850
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1851
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1852
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1853
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1854
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1855
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1856
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1857
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1858
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1859
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1860
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1861
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1862
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
1863
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
1864
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
1865
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
1866
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
1867
};
1868
1869
/**
1870
 * Each element of the following table contains a bitfield that indicates a
1871
 * piece of information about the corresponding windows-1250 character.
1872
 */
1873
static const uint8_t pm_encoding_windows_1250_table[256] = {
1874
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1875
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1876
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1877
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1878
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1879
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1880
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1881
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1882
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1883
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 7, 7, 7, 7, // 8x
1884
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 3, 3, 3, 3, // 9x
1885
    0, 0, 0, 7, 0, 7, 0, 0, 0, 0, 7, 0, 0, 0, 0, 7, // Ax
1886
    0, 0, 0, 3, 0, 3, 0, 0, 0, 3, 3, 0, 7, 0, 3, 3, // Bx
1887
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Cx
1888
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 3, // Dx
1889
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1890
    3, 3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 3, 0, // Fx
1891
};
1892
1893
/**
1894
 * Each element of the following table contains a bitfield that indicates a
1895
 * piece of information about the corresponding windows-1251 character.
1896
 */
1897
static const uint8_t pm_encoding_windows_1251_table[256] = {
1898
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1899
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1900
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1901
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1902
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1903
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1904
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1905
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1906
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1907
    7, 7, 0, 3, 0, 0, 0, 0, 0, 0, 7, 0, 7, 7, 7, 7, // 8x
1908
    3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 3, 3, 3, 3, // 9x
1909
    0, 7, 3, 7, 0, 7, 0, 0, 7, 0, 7, 0, 0, 0, 0, 7, // Ax
1910
    0, 0, 7, 3, 3, 3, 0, 0, 3, 0, 3, 0, 3, 7, 3, 3, // Bx
1911
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Cx
1912
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Dx
1913
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1914
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Fx
1915
};
1916
1917
/**
1918
 * Each element of the following table contains a bitfield that indicates a
1919
 * piece of information about the corresponding windows-1252 character.
1920
 */
1921
static const uint8_t pm_encoding_windows_1252_table[256] = {
1922
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1923
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1924
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1925
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1926
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1927
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1928
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1929
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1930
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1931
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 7, 0, 7, 0, // 8x
1932
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 3, 0, 3, 7, // 9x
1933
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, // Ax
1934
    0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, // Bx
1935
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Cx
1936
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 3, // Dx
1937
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1938
    3, 3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 3, 3, // Fx
1939
};
1940
1941
/**
1942
 * Each element of the following table contains a bitfield that indicates a
1943
 * piece of information about the corresponding windows-1253 character.
1944
 */
1945
static const uint8_t pm_encoding_windows_1253_table[256] = {
1946
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1947
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1948
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1949
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1950
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1951
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1952
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1953
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1954
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1955
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
1956
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
1957
    0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
1958
    0, 0, 0, 0, 0, 3, 7, 0, 7, 7, 7, 0, 7, 0, 7, 7, // Bx
1959
    3, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Cx
1960
    7, 7, 0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 3, 3, 3, 3, // Dx
1961
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1962
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, // Fx
1963
};
1964
1965
/**
1966
 * Each element of the following table contains a bitfield that indicates a
1967
 * piece of information about the corresponding windows-1254 character.
1968
 */
1969
static const uint8_t pm_encoding_windows_1254_table[256] = {
1970
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1971
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1972
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1973
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1974
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1975
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
1976
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
1977
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
1978
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
1979
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 7, 0, 0, 0, // 8x
1980
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 3, 0, 0, 7, // 9x
1981
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, // Ax
1982
    0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, // Bx
1983
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Cx
1984
    7, 7, 7, 7, 7, 7, 7, 0, 7, 7, 7, 7, 7, 7, 7, 3, // Dx
1985
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
1986
    3, 3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 3, 3, // Fx
1987
};
1988
1989
/**
1990
 * Each element of the following table contains a bitfield that indicates a
1991
 * piece of information about the corresponding windows-1255 character.
1992
 */
1993
static const uint8_t pm_encoding_windows_1255_table[256] = {
1994
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
1995
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
1996
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
1997
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
1998
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
1999
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
2000
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
2001
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
2002
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
2003
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
2004
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
2005
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
2006
    0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
2007
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
2008
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
2009
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
2010
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // Fx
2011
};
2012
2013
/**
2014
 * Each element of the following table contains a bitfield that indicates a
2015
 * piece of information about the corresponding windows-1256 character.
2016
 */
2017
static const uint8_t pm_encoding_windows_1256_table[256] = {
2018
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
2019
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
2020
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
2021
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
2022
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
2023
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
2024
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
2025
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
2026
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
2027
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
2028
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
2029
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
2030
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
2031
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Cx
2032
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // Dx
2033
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
2034
    3, 3, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
2035
};
2036
2037
/**
2038
 * Each element of the following table contains a bitfield that indicates a
2039
 * piece of information about the corresponding windows-1257 character.
2040
 */
2041
static const uint8_t pm_encoding_windows_1257_table[256] = {
2042
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
2043
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
2044
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
2045
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
2046
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
2047
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
2048
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
2049
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
2050
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
2051
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
2052
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
2053
    0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 7, 0, 0, 0, 0, 7, // Ax
2054
    0, 0, 0, 0, 0, 3, 0, 0, 3, 0, 3, 0, 0, 0, 0, 3, // Bx
2055
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // Cx
2056
    7, 7, 7, 7, 7, 7, 7, 0, 7, 7, 7, 7, 7, 7, 7, 3, // Dx
2057
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // Ex
2058
    3, 3, 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 3, 0, // Fx
2059
};
2060
2061
/**
2062
 * Each element of the following table contains a bitfield that indicates a
2063
 * piece of information about the corresponding windows-1258 character.
2064
 */
2065
static const uint8_t pm_encoding_windows_1258_table[256] = {
2066
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
2067
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
2068
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
2069
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
2070
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
2071
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
2072
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
2073
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
2074
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
2075
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
2076
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
2077
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
2078
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
2079
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
2080
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
2081
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
2082
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
2083
};
2084
2085
/**
2086
 * Each element of the following table contains a bitfield that indicates a
2087
 * piece of information about the corresponding windows-874 character.
2088
 */
2089
static const uint8_t pm_encoding_windows_874_table[256] = {
2090
//  0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F
2091
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 0x
2092
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 1x
2093
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 2x
2094
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, // 3x
2095
    0, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, // 4x
2096
    7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 0, 0, 0, 0, 0, // 5x
2097
    0, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, // 6x
2098
    3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 0, 0, 0, 0, 0, // 7x
2099
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 8x
2100
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // 9x
2101
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ax
2102
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Bx
2103
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Cx
2104
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Dx
2105
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Ex
2106
    0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, // Fx
2107
};
2108
2109
#define PRISM_ENCODING_TABLE(name) \
2110
8.88k
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
8.88k
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 222, False: 0]
  Branch (2111:28): [True: 132, False: 90]
  Branch (2111:17): [True: 125, False: 0]
  Branch (2111:28): [True: 73, False: 52]
  Branch (2111:17): [True: 34, False: 0]
  Branch (2111:28): [True: 34, False: 0]
  Branch (2111:17): [True: 144, False: 0]
  Branch (2111:28): [True: 119, False: 25]
  Branch (2111:17): [True: 224, False: 0]
  Branch (2111:28): [True: 111, False: 113]
  Branch (2111:17): [True: 95, False: 0]
  Branch (2111:28): [True: 64, False: 31]
  Branch (2111:17): [True: 117, False: 0]
  Branch (2111:28): [True: 90, False: 27]
  Branch (2111:17): [True: 224, False: 0]
  Branch (2111:28): [True: 182, False: 42]
  Branch (2111:17): [True: 133, False: 0]
  Branch (2111:28): [True: 100, False: 33]
  Branch (2111:17): [True: 85, False: 0]
  Branch (2111:28): [True: 54, False: 31]
  Branch (2111:17): [True: 551, False: 0]
  Branch (2111:28): [True: 442, False: 109]
  Branch (2111:17): [True: 85, False: 0]
  Branch (2111:28): [True: 57, False: 28]
  Branch (2111:17): [True: 219, False: 0]
  Branch (2111:28): [True: 188, False: 31]
  Branch (2111:17): [True: 82, False: 0]
  Branch (2111:28): [True: 54, False: 28]
  Branch (2111:17): [True: 71, False: 0]
  Branch (2111:28): [True: 44, False: 27]
  Branch (2111:17): [True: 54, False: 0]
  Branch (2111:28): [True: 54, False: 0]
  Branch (2111:17): [True: 76, False: 0]
  Branch (2111:28): [True: 49, False: 27]
  Branch (2111:17): [True: 112, False: 0]
  Branch (2111:28): [True: 79, False: 33]
  Branch (2111:17): [True: 91, False: 0]
  Branch (2111:28): [True: 66, False: 25]
  Branch (2111:17): [True: 232, False: 0]
  Branch (2111:28): [True: 176, False: 56]
  Branch (2111:17): [True: 136, False: 0]
  Branch (2111:28): [True: 115, False: 21]
  Branch (2111:17): [True: 92, False: 0]
  Branch (2111:28): [True: 61, False: 31]
  Branch (2111:17): [True: 112, False: 0]
  Branch (2111:28): [True: 67, False: 45]
  Branch (2111:17): [True: 110, False: 0]
  Branch (2111:28): [True: 75, False: 35]
  Branch (2111:17): [True: 895, False: 0]
  Branch (2111:28): [True: 782, False: 113]
  Branch (2111:17): [True: 167, False: 0]
  Branch (2111:28): [True: 124, False: 43]
  Branch (2111:17): [True: 55, False: 0]
  Branch (2111:28): [True: 53, False: 2]
  Branch (2111:17): [True: 108, False: 0]
  Branch (2111:28): [True: 86, False: 22]
  Branch (2111:17): [True: 95, False: 0]
  Branch (2111:28): [True: 58, False: 37]
  Branch (2111:17): [True: 103, False: 0]
  Branch (2111:28): [True: 78, False: 25]
  Branch (2111:17): [True: 607, False: 0]
  Branch (2111:28): [True: 420, False: 187]
  Branch (2111:17): [True: 41, False: 0]
  Branch (2111:28): [True: 39, False: 2]
  Branch (2111:17): [True: 32, False: 0]
  Branch (2111:28): [True: 32, False: 0]
  Branch (2111:17): [True: 30, False: 0]
  Branch (2111:28): [True: 30, False: 0]
  Branch (2111:17): [True: 99, False: 0]
  Branch (2111:28): [True: 70, False: 29]
  Branch (2111:17): [True: 76, False: 0]
  Branch (2111:28): [True: 50, False: 26]
  Branch (2111:17): [True: 129, False: 0]
  Branch (2111:28): [True: 118, False: 11]
  Branch (2111:17): [True: 91, False: 0]
  Branch (2111:28): [True: 46, False: 45]
  Branch (2111:17): [True: 199, False: 0]
  Branch (2111:28): [True: 161, False: 38]
  Branch (2111:17): [True: 198, False: 0]
  Branch (2111:28): [True: 122, False: 76]
  Branch (2111:17): [True: 412, False: 0]
  Branch (2111:28): [True: 305, False: 107]
  Branch (2111:17): [True: 36, False: 0]
  Branch (2111:28): [True: 33, False: 3]
  Branch (2111:17): [True: 31, False: 0]
  Branch (2111:28): [True: 31, False: 0]
  Branch (2111:17): [True: 200, False: 0]
  Branch (2111:28): [True: 177, False: 23]
  Branch (2111:17): [True: 235, False: 0]
  Branch (2111:28): [True: 62, False: 173]
  Branch (2111:17): [True: 70, False: 0]
  Branch (2111:28): [True: 45, False: 25]
  Branch (2111:17): [True: 267, False: 0]
  Branch (2111:28): [True: 178, False: 89]
  Branch (2111:17): [True: 156, False: 0]
  Branch (2111:28): [True: 147, False: 9]
  Branch (2111:17): [True: 252, False: 0]
  Branch (2111:28): [True: 194, False: 58]
  Branch (2111:17): [True: 170, False: 0]
  Branch (2111:28): [True: 138, False: 32]
  Branch (2111:17): [True: 171, False: 0]
  Branch (2111:28): [True: 145, False: 26]
  Branch (2111:17): [True: 97, False: 0]
  Branch (2111:28): [True: 94, False: 3]
  Branch (2111:17): [True: 47, False: 0]
  Branch (2111:28): [True: 47, False: 0]
  Branch (2111:17): [True: 181, False: 0]
  Branch (2111:28): [True: 92, False: 89]
  Branch (2111:17): [True: 84, False: 0]
  Branch (2111:28): [True: 79, False: 5]
  Branch (2111:17): [True: 97, False: 0]
  Branch (2111:28): [True: 65, False: 32]
  Branch (2111:17): [True: 30, False: 0]
  Branch (2111:28): [True: 30, False: 0]
2112
8.88k
    }                                                                                                         \
encoding.c:pm_encoding_cp850_alpha_char
Line
Count
Source
2110
222
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
222
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 222, False: 0]
  Branch (2111:28): [True: 132, False: 90]
2112
222
    }                                                                                                         \
encoding.c:pm_encoding_cp852_alpha_char
Line
Count
Source
2110
125
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
125
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 125, False: 0]
  Branch (2111:28): [True: 73, False: 52]
2112
125
    }                                                                                                         \
encoding.c:pm_encoding_cp855_alpha_char
Line
Count
Source
2110
34
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
34
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 34, False: 0]
  Branch (2111:28): [True: 34, False: 0]
2112
34
    }                                                                                                         \
encoding.c:pm_encoding_gb1988_alpha_char
Line
Count
Source
2110
144
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
144
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 144, False: 0]
  Branch (2111:28): [True: 119, False: 25]
2112
144
    }                                                                                                         \
encoding.c:pm_encoding_ibm437_alpha_char
Line
Count
Source
2110
224
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
224
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 224, False: 0]
  Branch (2111:28): [True: 111, False: 113]
2112
224
    }                                                                                                         \
encoding.c:pm_encoding_ibm720_alpha_char
Line
Count
Source
2110
95
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
95
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 95, False: 0]
  Branch (2111:28): [True: 64, False: 31]
2112
95
    }                                                                                                         \
encoding.c:pm_encoding_ibm737_alpha_char
Line
Count
Source
2110
117
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
117
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 117, False: 0]
  Branch (2111:28): [True: 90, False: 27]
2112
117
    }                                                                                                         \
encoding.c:pm_encoding_ibm775_alpha_char
Line
Count
Source
2110
224
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
224
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 224, False: 0]
  Branch (2111:28): [True: 182, False: 42]
2112
224
    }                                                                                                         \
encoding.c:pm_encoding_ibm852_alpha_char
Line
Count
Source
2110
133
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
133
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 133, False: 0]
  Branch (2111:28): [True: 100, False: 33]
2112
133
    }                                                                                                         \
encoding.c:pm_encoding_ibm855_alpha_char
Line
Count
Source
2110
85
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
85
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 85, False: 0]
  Branch (2111:28): [True: 54, False: 31]
2112
85
    }                                                                                                         \
encoding.c:pm_encoding_ibm857_alpha_char
Line
Count
Source
2110
551
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
551
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 551, False: 0]
  Branch (2111:28): [True: 442, False: 109]
2112
551
    }                                                                                                         \
encoding.c:pm_encoding_ibm860_alpha_char
Line
Count
Source
2110
85
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
85
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 85, False: 0]
  Branch (2111:28): [True: 57, False: 28]
2112
85
    }                                                                                                         \
encoding.c:pm_encoding_ibm861_alpha_char
Line
Count
Source
2110
219
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
219
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 219, False: 0]
  Branch (2111:28): [True: 188, False: 31]
2112
219
    }                                                                                                         \
encoding.c:pm_encoding_ibm862_alpha_char
Line
Count
Source
2110
82
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
82
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 82, False: 0]
  Branch (2111:28): [True: 54, False: 28]
2112
82
    }                                                                                                         \
encoding.c:pm_encoding_ibm863_alpha_char
Line
Count
Source
2110
71
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
71
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 71, False: 0]
  Branch (2111:28): [True: 44, False: 27]
2112
71
    }                                                                                                         \
encoding.c:pm_encoding_ibm864_alpha_char
Line
Count
Source
2110
54
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
54
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 54, False: 0]
  Branch (2111:28): [True: 54, False: 0]
2112
54
    }                                                                                                         \
encoding.c:pm_encoding_ibm865_alpha_char
Line
Count
Source
2110
76
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
76
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 76, False: 0]
  Branch (2111:28): [True: 49, False: 27]
2112
76
    }                                                                                                         \
encoding.c:pm_encoding_ibm866_alpha_char
Line
Count
Source
2110
112
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
112
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 112, False: 0]
  Branch (2111:28): [True: 79, False: 33]
2112
112
    }                                                                                                         \
encoding.c:pm_encoding_ibm869_alpha_char
Line
Count
Source
2110
91
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
91
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 91, False: 0]
  Branch (2111:28): [True: 66, False: 25]
2112
91
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_1_alpha_char
Line
Count
Source
2110
232
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
232
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 232, False: 0]
  Branch (2111:28): [True: 176, False: 56]
2112
232
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_2_alpha_char
Line
Count
Source
2110
136
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
136
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 136, False: 0]
  Branch (2111:28): [True: 115, False: 21]
2112
136
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_3_alpha_char
Line
Count
Source
2110
92
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
92
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 92, False: 0]
  Branch (2111:28): [True: 61, False: 31]
2112
92
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_4_alpha_char
Line
Count
Source
2110
112
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
112
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 112, False: 0]
  Branch (2111:28): [True: 67, False: 45]
2112
112
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_5_alpha_char
Line
Count
Source
2110
110
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
110
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 110, False: 0]
  Branch (2111:28): [True: 75, False: 35]
2112
110
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_6_alpha_char
Line
Count
Source
2110
895
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
895
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 895, False: 0]
  Branch (2111:28): [True: 782, False: 113]
2112
895
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_7_alpha_char
Line
Count
Source
2110
167
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
167
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 167, False: 0]
  Branch (2111:28): [True: 124, False: 43]
2112
167
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_8_alpha_char
Line
Count
Source
2110
55
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
55
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 55, False: 0]
  Branch (2111:28): [True: 53, False: 2]
2112
55
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_9_alpha_char
Line
Count
Source
2110
108
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
108
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 108, False: 0]
  Branch (2111:28): [True: 86, False: 22]
2112
108
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_10_alpha_char
Line
Count
Source
2110
95
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
95
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 95, False: 0]
  Branch (2111:28): [True: 58, False: 37]
2112
95
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_11_alpha_char
Line
Count
Source
2110
103
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
103
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 103, False: 0]
  Branch (2111:28): [True: 78, False: 25]
2112
103
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_13_alpha_char
Line
Count
Source
2110
607
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
607
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 607, False: 0]
  Branch (2111:28): [True: 420, False: 187]
2112
607
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_14_alpha_char
Line
Count
Source
2110
41
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
41
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 41, False: 0]
  Branch (2111:28): [True: 39, False: 2]
2112
41
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_15_alpha_char
Line
Count
Source
2110
32
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
32
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 32, False: 0]
  Branch (2111:28): [True: 32, False: 0]
2112
32
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_16_alpha_char
Line
Count
Source
2110
30
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
30
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 30, False: 0]
  Branch (2111:28): [True: 30, False: 0]
2112
30
    }                                                                                                         \
encoding.c:pm_encoding_koi8_r_alpha_char
Line
Count
Source
2110
99
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
99
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 99, False: 0]
  Branch (2111:28): [True: 70, False: 29]
2112
99
    }                                                                                                         \
encoding.c:pm_encoding_koi8_u_alpha_char
Line
Count
Source
2110
76
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
76
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 76, False: 0]
  Branch (2111:28): [True: 50, False: 26]
2112
76
    }                                                                                                         \
encoding.c:pm_encoding_mac_cent_euro_alpha_char
Line
Count
Source
2110
129
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
129
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 129, False: 0]
  Branch (2111:28): [True: 118, False: 11]
2112
129
    }                                                                                                         \
encoding.c:pm_encoding_mac_croatian_alpha_char
Line
Count
Source
2110
91
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
91
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 91, False: 0]
  Branch (2111:28): [True: 46, False: 45]
2112
91
    }                                                                                                         \
encoding.c:pm_encoding_mac_cyrillic_alpha_char
Line
Count
Source
2110
199
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
199
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 199, False: 0]
  Branch (2111:28): [True: 161, False: 38]
2112
199
    }                                                                                                         \
encoding.c:pm_encoding_mac_greek_alpha_char
Line
Count
Source
2110
198
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
198
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 198, False: 0]
  Branch (2111:28): [True: 122, False: 76]
2112
198
    }                                                                                                         \
encoding.c:pm_encoding_mac_iceland_alpha_char
Line
Count
Source
2110
412
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
412
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 412, False: 0]
  Branch (2111:28): [True: 305, False: 107]
2112
412
    }                                                                                                         \
encoding.c:pm_encoding_mac_roman_alpha_char
Line
Count
Source
2110
36
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
36
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 36, False: 0]
  Branch (2111:28): [True: 33, False: 3]
2112
36
    }                                                                                                         \
encoding.c:pm_encoding_mac_romania_alpha_char
Line
Count
Source
2110
31
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
31
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 31, False: 0]
  Branch (2111:28): [True: 31, False: 0]
2112
31
    }                                                                                                         \
encoding.c:pm_encoding_mac_thai_alpha_char
Line
Count
Source
2110
200
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
200
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 200, False: 0]
  Branch (2111:28): [True: 177, False: 23]
2112
200
    }                                                                                                         \
encoding.c:pm_encoding_mac_turkish_alpha_char
Line
Count
Source
2110
235
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
235
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 235, False: 0]
  Branch (2111:28): [True: 62, False: 173]
2112
235
    }                                                                                                         \
encoding.c:pm_encoding_mac_ukraine_alpha_char
Line
Count
Source
2110
70
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
70
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 70, False: 0]
  Branch (2111:28): [True: 45, False: 25]
2112
70
    }                                                                                                         \
encoding.c:pm_encoding_tis_620_alpha_char
Line
Count
Source
2110
267
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
267
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 267, False: 0]
  Branch (2111:28): [True: 178, False: 89]
2112
267
    }                                                                                                         \
encoding.c:pm_encoding_windows_1250_alpha_char
Line
Count
Source
2110
156
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
156
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 156, False: 0]
  Branch (2111:28): [True: 147, False: 9]
2112
156
    }                                                                                                         \
encoding.c:pm_encoding_windows_1251_alpha_char
Line
Count
Source
2110
252
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
252
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 252, False: 0]
  Branch (2111:28): [True: 194, False: 58]
2112
252
    }                                                                                                         \
encoding.c:pm_encoding_windows_1252_alpha_char
Line
Count
Source
2110
170
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
170
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 170, False: 0]
  Branch (2111:28): [True: 138, False: 32]
2112
170
    }                                                                                                         \
encoding.c:pm_encoding_windows_1253_alpha_char
Line
Count
Source
2110
171
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
171
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 171, False: 0]
  Branch (2111:28): [True: 145, False: 26]
2112
171
    }                                                                                                         \
encoding.c:pm_encoding_windows_1254_alpha_char
Line
Count
Source
2110
97
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
97
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 97, False: 0]
  Branch (2111:28): [True: 94, False: 3]
2112
97
    }                                                                                                         \
encoding.c:pm_encoding_windows_1255_alpha_char
Line
Count
Source
2110
47
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
47
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 47, False: 0]
  Branch (2111:28): [True: 47, False: 0]
2112
47
    }                                                                                                         \
encoding.c:pm_encoding_windows_1256_alpha_char
Line
Count
Source
2110
181
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
181
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 181, False: 0]
  Branch (2111:28): [True: 92, False: 89]
2112
181
    }                                                                                                         \
encoding.c:pm_encoding_windows_1257_alpha_char
Line
Count
Source
2110
84
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
84
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 84, False: 0]
  Branch (2111:28): [True: 79, False: 5]
2112
84
    }                                                                                                         \
encoding.c:pm_encoding_windows_1258_alpha_char
Line
Count
Source
2110
97
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
97
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 97, False: 0]
  Branch (2111:28): [True: 65, False: 32]
2112
97
    }                                                                                                         \
encoding.c:pm_encoding_windows_874_alpha_char
Line
Count
Source
2110
30
    static size_t pm_encoding_ ##name ## _alpha_char(const uint8_t *b, ptrdiff_t n) {           \
2111
30
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHABETIC_BIT));           \
  Branch (2111:17): [True: 30, False: 0]
  Branch (2111:28): [True: 30, False: 0]
2112
30
    }                                                                                                         \
2113
28.2k
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
28.2k
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
120.3k
:
07.96k
; \
  Branch (2114:17): [True: 609, False: 0]
  Branch (2114:28): [True: 448, False: 161]
  Branch (2114:17): [True: 275, False: 0]
  Branch (2114:28): [True: 200, False: 75]
  Branch (2114:17): [True: 134, False: 0]
  Branch (2114:28): [True: 100, False: 34]
  Branch (2114:17): [True: 516, False: 0]
  Branch (2114:28): [True: 377, False: 139]
  Branch (2114:17): [True: 491, False: 0]
  Branch (2114:28): [True: 362, False: 129]
  Branch (2114:17): [True: 225, False: 0]
  Branch (2114:28): [True: 146, False: 79]
  Branch (2114:17): [True: 478, False: 0]
  Branch (2114:28): [True: 350, False: 128]
  Branch (2114:17): [True: 864, False: 0]
  Branch (2114:28): [True: 573, False: 291]
  Branch (2114:17): [True: 348, False: 0]
  Branch (2114:28): [True: 249, False: 99]
  Branch (2114:17): [True: 172, False: 0]
  Branch (2114:28): [True: 116, False: 56]
  Branch (2114:17): [True: 1.86k, False: 0]
  Branch (2114:28): [True: 1.31k, False: 549]
  Branch (2114:17): [True: 230, False: 0]
  Branch (2114:28): [True: 171, False: 59]
  Branch (2114:17): [True: 864, False: 0]
  Branch (2114:28): [True: 644, False: 220]
  Branch (2114:17): [True: 239, False: 0]
  Branch (2114:28): [True: 171, False: 68]
  Branch (2114:17): [True: 176, False: 0]
  Branch (2114:28): [True: 132, False: 44]
  Branch (2114:17): [True: 210, False: 0]
  Branch (2114:28): [True: 156, False: 54]
  Branch (2114:17): [True: 181, False: 0]
  Branch (2114:28): [True: 110, False: 71]
  Branch (2114:17): [True: 306, False: 0]
  Branch (2114:28): [True: 220, False: 86]
  Branch (2114:17): [True: 293, False: 0]
  Branch (2114:28): [True: 189, False: 104]
  Branch (2114:17): [True: 670, False: 0]
  Branch (2114:28): [True: 465, False: 205]
  Branch (2114:17): [True: 508, False: 0]
  Branch (2114:28): [True: 382, False: 126]
  Branch (2114:17): [True: 258, False: 0]
  Branch (2114:28): [True: 196, False: 62]
  Branch (2114:17): [True: 290, False: 0]
  Branch (2114:28): [True: 223, False: 67]
  Branch (2114:17): [True: 273, False: 0]
  Branch (2114:28): [True: 194, False: 79]
  Branch (2114:17): [True: 2.90k, False: 0]
  Branch (2114:28): [True: 1.96k, False: 937]
  Branch (2114:17): [True: 581, False: 0]
  Branch (2114:28): [True: 456, False: 125]
  Branch (2114:17): [True: 239, False: 0]
  Branch (2114:28): [True: 178, False: 61]
  Branch (2114:17): [True: 391, False: 0]
  Branch (2114:28): [True: 302, False: 89]
  Branch (2114:17): [True: 218, False: 0]
  Branch (2114:28): [True: 157, False: 61]
  Branch (2114:17): [True: 503, False: 0]
  Branch (2114:28): [True: 389, False: 114]
  Branch (2114:17): [True: 1.84k, False: 0]
  Branch (2114:28): [True: 1.34k, False: 494]
  Branch (2114:17): [True: 145, False: 0]
  Branch (2114:28): [True: 105, False: 40]
  Branch (2114:17): [True: 127, False: 0]
  Branch (2114:28): [True: 95, False: 32]
  Branch (2114:17): [True: 125, False: 0]
  Branch (2114:28): [True: 95, False: 30]
  Branch (2114:17): [True: 318, False: 0]
  Branch (2114:28): [True: 217, False: 101]
  Branch (2114:17): [True: 213, False: 0]
  Branch (2114:28): [True: 163, False: 50]
  Branch (2114:17): [True: 532, False: 0]
  Branch (2114:28): [True: 373, False: 159]
  Branch (2114:17): [True: 198, False: 0]
  Branch (2114:28): [True: 151, False: 47]
  Branch (2114:17): [True: 688, False: 0]
  Branch (2114:28): [True: 477, False: 211]
  Branch (2114:17): [True: 568, False: 0]
  Branch (2114:28): [True: 403, False: 165]
  Branch (2114:17): [True: 1.23k, False: 0]
  Branch (2114:28): [True: 865, False: 373]
  Branch (2114:17): [True: 146, False: 0]
  Branch (2114:28): [True: 112, False: 34]
  Branch (2114:17): [True: 126, False: 0]
  Branch (2114:28): [True: 95, False: 31]
  Branch (2114:17): [True: 635, False: 0]
  Branch (2114:28): [True: 403, False: 232]
  Branch (2114:17): [True: 207, False: 0]
  Branch (2114:28): [True: 145, False: 62]
  Branch (2114:17): [True: 185, False: 0]
  Branch (2114:28): [True: 132, False: 53]
  Branch (2114:17): [True: 755, False: 0]
  Branch (2114:28): [True: 563, False: 192]
  Branch (2114:17): [True: 799, False: 0]
  Branch (2114:28): [True: 619, False: 180]
  Branch (2114:17): [True: 911, False: 0]
  Branch (2114:28): [True: 706, False: 205]
  Branch (2114:17): [True: 855, False: 0]
  Branch (2114:28): [True: 594, False: 261]
  Branch (2114:17): [True: 598, False: 0]
  Branch (2114:28): [True: 418, False: 180]
  Branch (2114:17): [True: 439, False: 0]
  Branch (2114:28): [True: 332, False: 107]
  Branch (2114:17): [True: 190, False: 0]
  Branch (2114:28): [True: 143, False: 47]
  Branch (2114:17): [True: 367, False: 0]
  Branch (2114:28): [True: 273, False: 94]
  Branch (2114:17): [True: 350, False: 0]
  Branch (2114:28): [True: 266, False: 84]
  Branch (2114:17): [True: 311, False: 0]
  Branch (2114:28): [True: 210, False: 101]
  Branch (2114:17): [True: 125, False: 0]
  Branch (2114:28): [True: 95, False: 30]
2115
28.2k
    }                                                                                                         \
encoding.c:pm_encoding_cp850_alnum_char
Line
Count
Source
2113
609
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
609
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1448
:
0161
; \
  Branch (2114:17): [True: 609, False: 0]
  Branch (2114:28): [True: 448, False: 161]
2115
609
    }                                                                                                         \
encoding.c:pm_encoding_cp852_alnum_char
Line
Count
Source
2113
275
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
275
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1200
:
075
; \
  Branch (2114:17): [True: 275, False: 0]
  Branch (2114:28): [True: 200, False: 75]
2115
275
    }                                                                                                         \
encoding.c:pm_encoding_cp855_alnum_char
Line
Count
Source
2113
134
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
134
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1100
:
034
; \
  Branch (2114:17): [True: 134, False: 0]
  Branch (2114:28): [True: 100, False: 34]
2115
134
    }                                                                                                         \
encoding.c:pm_encoding_gb1988_alnum_char
Line
Count
Source
2113
516
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
516
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1377
:
0139
; \
  Branch (2114:17): [True: 516, False: 0]
  Branch (2114:28): [True: 377, False: 139]
2115
516
    }                                                                                                         \
encoding.c:pm_encoding_ibm437_alnum_char
Line
Count
Source
2113
491
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
491
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1362
:
0129
; \
  Branch (2114:17): [True: 491, False: 0]
  Branch (2114:28): [True: 362, False: 129]
2115
491
    }                                                                                                         \
encoding.c:pm_encoding_ibm720_alnum_char
Line
Count
Source
2113
225
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
225
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1146
:
079
; \
  Branch (2114:17): [True: 225, False: 0]
  Branch (2114:28): [True: 146, False: 79]
2115
225
    }                                                                                                         \
encoding.c:pm_encoding_ibm737_alnum_char
Line
Count
Source
2113
478
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
478
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1350
:
0128
; \
  Branch (2114:17): [True: 478, False: 0]
  Branch (2114:28): [True: 350, False: 128]
2115
478
    }                                                                                                         \
encoding.c:pm_encoding_ibm775_alnum_char
Line
Count
Source
2113
864
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
864
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1573
:
0291
; \
  Branch (2114:17): [True: 864, False: 0]
  Branch (2114:28): [True: 573, False: 291]
2115
864
    }                                                                                                         \
encoding.c:pm_encoding_ibm852_alnum_char
Line
Count
Source
2113
348
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
348
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1249
:
099
; \
  Branch (2114:17): [True: 348, False: 0]
  Branch (2114:28): [True: 249, False: 99]
2115
348
    }                                                                                                         \
encoding.c:pm_encoding_ibm855_alnum_char
Line
Count
Source
2113
172
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
172
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1116
:
056
; \
  Branch (2114:17): [True: 172, False: 0]
  Branch (2114:28): [True: 116, False: 56]
2115
172
    }                                                                                                         \
encoding.c:pm_encoding_ibm857_alnum_char
Line
Count
Source
2113
1.86k
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
1.86k
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
11.31k
:
0549
; \
  Branch (2114:17): [True: 1.86k, False: 0]
  Branch (2114:28): [True: 1.31k, False: 549]
2115
1.86k
    }                                                                                                         \
encoding.c:pm_encoding_ibm860_alnum_char
Line
Count
Source
2113
230
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
230
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1171
:
059
; \
  Branch (2114:17): [True: 230, False: 0]
  Branch (2114:28): [True: 171, False: 59]
2115
230
    }                                                                                                         \
encoding.c:pm_encoding_ibm861_alnum_char
Line
Count
Source
2113
864
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
864
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1644
:
0220
; \
  Branch (2114:17): [True: 864, False: 0]
  Branch (2114:28): [True: 644, False: 220]
2115
864
    }                                                                                                         \
encoding.c:pm_encoding_ibm862_alnum_char
Line
Count
Source
2113
239
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
239
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1171
:
068
; \
  Branch (2114:17): [True: 239, False: 0]
  Branch (2114:28): [True: 171, False: 68]
2115
239
    }                                                                                                         \
encoding.c:pm_encoding_ibm863_alnum_char
Line
Count
Source
2113
176
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
176
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1132
:
044
; \
  Branch (2114:17): [True: 176, False: 0]
  Branch (2114:28): [True: 132, False: 44]
2115
176
    }                                                                                                         \
encoding.c:pm_encoding_ibm864_alnum_char
Line
Count
Source
2113
210
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
210
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1156
:
054
; \
  Branch (2114:17): [True: 210, False: 0]
  Branch (2114:28): [True: 156, False: 54]
2115
210
    }                                                                                                         \
encoding.c:pm_encoding_ibm865_alnum_char
Line
Count
Source
2113
181
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
181
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1110
:
071
; \
  Branch (2114:17): [True: 181, False: 0]
  Branch (2114:28): [True: 110, False: 71]
2115
181
    }                                                                                                         \
encoding.c:pm_encoding_ibm866_alnum_char
Line
Count
Source
2113
306
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
306
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1220
:
086
; \
  Branch (2114:17): [True: 306, False: 0]
  Branch (2114:28): [True: 220, False: 86]
2115
306
    }                                                                                                         \
encoding.c:pm_encoding_ibm869_alnum_char
Line
Count
Source
2113
293
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
293
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1189
:
0104
; \
  Branch (2114:17): [True: 293, False: 0]
  Branch (2114:28): [True: 189, False: 104]
2115
293
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_1_alnum_char
Line
Count
Source
2113
670
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
670
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1465
:
0205
; \
  Branch (2114:17): [True: 670, False: 0]
  Branch (2114:28): [True: 465, False: 205]
2115
670
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_2_alnum_char
Line
Count
Source
2113
508
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
508
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1382
:
0126
; \
  Branch (2114:17): [True: 508, False: 0]
  Branch (2114:28): [True: 382, False: 126]
2115
508
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_3_alnum_char
Line
Count
Source
2113
258
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
258
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1196
:
062
; \
  Branch (2114:17): [True: 258, False: 0]
  Branch (2114:28): [True: 196, False: 62]
2115
258
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_4_alnum_char
Line
Count
Source
2113
290
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
290
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1223
:
067
; \
  Branch (2114:17): [True: 290, False: 0]
  Branch (2114:28): [True: 223, False: 67]
2115
290
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_5_alnum_char
Line
Count
Source
2113
273
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
273
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1194
:
079
; \
  Branch (2114:17): [True: 273, False: 0]
  Branch (2114:28): [True: 194, False: 79]
2115
273
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_6_alnum_char
Line
Count
Source
2113
2.90k
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
2.90k
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
11.96k
:
0937
; \
  Branch (2114:17): [True: 2.90k, False: 0]
  Branch (2114:28): [True: 1.96k, False: 937]
2115
2.90k
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_7_alnum_char
Line
Count
Source
2113
581
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
581
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1456
:
0125
; \
  Branch (2114:17): [True: 581, False: 0]
  Branch (2114:28): [True: 456, False: 125]
2115
581
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_8_alnum_char
Line
Count
Source
2113
239
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
239
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1178
:
061
; \
  Branch (2114:17): [True: 239, False: 0]
  Branch (2114:28): [True: 178, False: 61]
2115
239
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_9_alnum_char
Line
Count
Source
2113
391
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
391
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1302
:
089
; \
  Branch (2114:17): [True: 391, False: 0]
  Branch (2114:28): [True: 302, False: 89]
2115
391
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_10_alnum_char
Line
Count
Source
2113
218
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
218
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1157
:
061
; \
  Branch (2114:17): [True: 218, False: 0]
  Branch (2114:28): [True: 157, False: 61]
2115
218
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_11_alnum_char
Line
Count
Source
2113
503
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
503
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1389
:
0114
; \
  Branch (2114:17): [True: 503, False: 0]
  Branch (2114:28): [True: 389, False: 114]
2115
503
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_13_alnum_char
Line
Count
Source
2113
1.84k
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
1.84k
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
11.34k
:
0494
; \
  Branch (2114:17): [True: 1.84k, False: 0]
  Branch (2114:28): [True: 1.34k, False: 494]
2115
1.84k
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_14_alnum_char
Line
Count
Source
2113
145
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
145
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1105
:
040
; \
  Branch (2114:17): [True: 145, False: 0]
  Branch (2114:28): [True: 105, False: 40]
2115
145
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_15_alnum_char
Line
Count
Source
2113
127
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
127
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
195
:
032
; \
  Branch (2114:17): [True: 127, False: 0]
  Branch (2114:28): [True: 95, False: 32]
2115
127
    }                                                                                                         \
encoding.c:pm_encoding_iso_8859_16_alnum_char
Line
Count
Source
2113
125
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
125
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
195
:
030
; \
  Branch (2114:17): [True: 125, False: 0]
  Branch (2114:28): [True: 95, False: 30]
2115
125
    }                                                                                                         \
encoding.c:pm_encoding_koi8_r_alnum_char
Line
Count
Source
2113
318
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
318
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1217
:
0101
; \
  Branch (2114:17): [True: 318, False: 0]
  Branch (2114:28): [True: 217, False: 101]
2115
318
    }                                                                                                         \
encoding.c:pm_encoding_koi8_u_alnum_char
Line
Count
Source
2113
213
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
213
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1163
:
050
; \
  Branch (2114:17): [True: 213, False: 0]
  Branch (2114:28): [True: 163, False: 50]
2115
213
    }                                                                                                         \
encoding.c:pm_encoding_mac_cent_euro_alnum_char
Line
Count
Source
2113
532
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
532
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1373
:
0159
; \
  Branch (2114:17): [True: 532, False: 0]
  Branch (2114:28): [True: 373, False: 159]
2115
532
    }                                                                                                         \
encoding.c:pm_encoding_mac_croatian_alnum_char
Line
Count
Source
2113
198
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
198
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1151
:
047
; \
  Branch (2114:17): [True: 198, False: 0]
  Branch (2114:28): [True: 151, False: 47]
2115
198
    }                                                                                                         \
encoding.c:pm_encoding_mac_cyrillic_alnum_char
Line
Count
Source
2113
688
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
688
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1477
:
0211
; \
  Branch (2114:17): [True: 688, False: 0]
  Branch (2114:28): [True: 477, False: 211]
2115
688
    }                                                                                                         \
encoding.c:pm_encoding_mac_greek_alnum_char
Line
Count
Source
2113
568
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
568
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1403
:
0165
; \
  Branch (2114:17): [True: 568, False: 0]
  Branch (2114:28): [True: 403, False: 165]
2115
568
    }                                                                                                         \
encoding.c:pm_encoding_mac_iceland_alnum_char
Line
Count
Source
2113
1.23k
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
1.23k
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1865
:
0373
; \
  Branch (2114:17): [True: 1.23k, False: 0]
  Branch (2114:28): [True: 865, False: 373]
2115
1.23k
    }                                                                                                         \
encoding.c:pm_encoding_mac_roman_alnum_char
Line
Count
Source
2113
146
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
146
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1112
:
034
; \
  Branch (2114:17): [True: 146, False: 0]
  Branch (2114:28): [True: 112, False: 34]
2115
146
    }                                                                                                         \
encoding.c:pm_encoding_mac_romania_alnum_char
Line
Count
Source
2113
126
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
126
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
195
:
031
; \
  Branch (2114:17): [True: 126, False: 0]
  Branch (2114:28): [True: 95, False: 31]
2115
126
    }                                                                                                         \
encoding.c:pm_encoding_mac_thai_alnum_char
Line
Count
Source
2113
635
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
635
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1403
:
0232
; \
  Branch (2114:17): [True: 635, False: 0]
  Branch (2114:28): [True: 403, False: 232]
2115
635
    }                                                                                                         \
encoding.c:pm_encoding_mac_turkish_alnum_char
Line
Count
Source
2113
207
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
207
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1145
:
062
; \
  Branch (2114:17): [True: 207, False: 0]
  Branch (2114:28): [True: 145, False: 62]
2115
207
    }                                                                                                         \
encoding.c:pm_encoding_mac_ukraine_alnum_char
Line
Count
Source
2113
185
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
185
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1132
:
053
; \
  Branch (2114:17): [True: 185, False: 0]
  Branch (2114:28): [True: 132, False: 53]
2115
185
    }                                                                                                         \
encoding.c:pm_encoding_tis_620_alnum_char
Line
Count
Source
2113
755
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
755
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1563
:
0192
; \
  Branch (2114:17): [True: 755, False: 0]
  Branch (2114:28): [True: 563, False: 192]
2115
755
    }                                                                                                         \
encoding.c:pm_encoding_windows_1250_alnum_char
Line
Count
Source
2113
799
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
799
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1619
:
0180
; \
  Branch (2114:17): [True: 799, False: 0]
  Branch (2114:28): [True: 619, False: 180]
2115
799
    }                                                                                                         \
encoding.c:pm_encoding_windows_1251_alnum_char
Line
Count
Source
2113
911
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
911
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1706
:
0205
; \
  Branch (2114:17): [True: 911, False: 0]
  Branch (2114:28): [True: 706, False: 205]
2115
911
    }                                                                                                         \
encoding.c:pm_encoding_windows_1252_alnum_char
Line
Count
Source
2113
855
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
855
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1594
:
0261
; \
  Branch (2114:17): [True: 855, False: 0]
  Branch (2114:28): [True: 594, False: 261]
2115
855
    }                                                                                                         \
encoding.c:pm_encoding_windows_1253_alnum_char
Line
Count
Source
2113
598
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
598
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1418
:
0180
; \
  Branch (2114:17): [True: 598, False: 0]
  Branch (2114:28): [True: 418, False: 180]
2115
598
    }                                                                                                         \
encoding.c:pm_encoding_windows_1254_alnum_char
Line
Count
Source
2113
439
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
439
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1332
:
0107
; \
  Branch (2114:17): [True: 439, False: 0]
  Branch (2114:28): [True: 332, False: 107]
2115
439
    }                                                                                                         \
encoding.c:pm_encoding_windows_1255_alnum_char
Line
Count
Source
2113
190
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
190
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1143
:
047
; \
  Branch (2114:17): [True: 190, False: 0]
  Branch (2114:28): [True: 143, False: 47]
2115
190
    }                                                                                                         \
encoding.c:pm_encoding_windows_1256_alnum_char
Line
Count
Source
2113
367
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
367
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1273
:
094
; \
  Branch (2114:17): [True: 367, False: 0]
  Branch (2114:28): [True: 273, False: 94]
2115
367
    }                                                                                                         \
encoding.c:pm_encoding_windows_1257_alnum_char
Line
Count
Source
2113
350
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
350
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1266
:
084
; \
  Branch (2114:17): [True: 350, False: 0]
  Branch (2114:28): [True: 266, False: 84]
2115
350
    }                                                                                                         \
encoding.c:pm_encoding_windows_1258_alnum_char
Line
Count
Source
2113
311
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
311
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
1210
:
0101
; \
  Branch (2114:17): [True: 311, False: 0]
  Branch (2114:28): [True: 210, False: 101]
2115
311
    }                                                                                                         \
encoding.c:pm_encoding_windows_874_alnum_char
Line
Count
Source
2113
125
    static size_t pm_encoding_ ##name ## _alnum_char(const uint8_t *b, ptrdiff_t n) {           \
2114
125
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
195
:
030
; \
  Branch (2114:17): [True: 125, False: 0]
  Branch (2114:28): [True: 95, False: 30]
2115
125
    }                                                                                                         \
2116
6.54k
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
6.54k
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 136, False: 0]
  Branch (2117:28): [True: 14, False: 122]
  Branch (2117:17): [True: 70, False: 0]
  Branch (2117:28): [True: 8, False: 62]
  Branch (2117:17): [True: 34, False: 0]
  Branch (2117:28): [True: 6, False: 28]
  Branch (2117:17): [True: 119, False: 0]
  Branch (2117:28): [True: 21, False: 98]
  Branch (2117:17): [True: 123, False: 0]
  Branch (2117:28): [True: 18, False: 105]
  Branch (2117:17): [True: 62, False: 0]
  Branch (2117:28): [True: 4, False: 58]
  Branch (2117:17): [True: 90, False: 0]
  Branch (2117:28): [True: 9, False: 81]
  Branch (2117:17): [True: 185, False: 0]
  Branch (2117:28): [True: 19, False: 166]
  Branch (2117:17): [True: 97, False: 0]
  Branch (2117:28): [True: 14, False: 83]
  Branch (2117:17): [True: 54, False: 0]
  Branch (2117:28): [True: 5, False: 49]
  Branch (2117:17): [True: 436, False: 0]
  Branch (2117:28): [True: 64, False: 372]
  Branch (2117:17): [True: 58, False: 0]
  Branch (2117:28): [True: 6, False: 52]
  Branch (2117:17): [True: 175, False: 0]
  Branch (2117:28): [True: 13, False: 162]
  Branch (2117:17): [True: 54, False: 0]
  Branch (2117:28): [True: 6, False: 48]
  Branch (2117:17): [True: 45, False: 0]
  Branch (2117:28): [True: 9, False: 36]
  Branch (2117:17): [True: 54, False: 0]
  Branch (2117:28): [True: 9, False: 45]
  Branch (2117:17): [True: 45, False: 0]
  Branch (2117:28): [True: 5, False: 40]
  Branch (2117:17): [True: 80, False: 0]
  Branch (2117:28): [True: 11, False: 69]
  Branch (2117:17): [True: 66, False: 0]
  Branch (2117:28): [True: 11, False: 55]
  Branch (2117:17): [True: 168, False: 0]
  Branch (2117:28): [True: 27, False: 141]
  Branch (2117:17): [True: 108, False: 0]
  Branch (2117:28): [True: 30, False: 78]
  Branch (2117:17): [True: 55, False: 0]
  Branch (2117:28): [True: 8, False: 47]
  Branch (2117:17): [True: 67, False: 0]
  Branch (2117:28): [True: 10, False: 57]
  Branch (2117:17): [True: 76, False: 0]
  Branch (2117:28): [True: 4, False: 72]
  Branch (2117:17): [True: 798, False: 0]
  Branch (2117:28): [True: 73, False: 725]
  Branch (2117:17): [True: 121, False: 0]
  Branch (2117:28): [True: 24, False: 97]
  Branch (2117:17): [True: 52, False: 0]
  Branch (2117:28): [True: 8, False: 44]
  Branch (2117:17): [True: 87, False: 0]
  Branch (2117:28): [True: 15, False: 72]
  Branch (2117:17): [True: 56, False: 0]
  Branch (2117:28): [True: 6, False: 50]
  Branch (2117:17): [True: 70, False: 0]
  Branch (2117:28): [True: 20, False: 50]
  Branch (2117:17): [True: 395, False: 0]
  Branch (2117:28): [True: 51, False: 344]
  Branch (2117:17): [True: 38, False: 0]
  Branch (2117:28): [True: 4, False: 34]
  Branch (2117:17): [True: 32, False: 0]
  Branch (2117:28): [True: 7, False: 25]
  Branch (2117:17): [True: 30, False: 0]
  Branch (2117:28): [True: 6, False: 24]
  Branch (2117:17): [True: 71, False: 0]
  Branch (2117:28): [True: 11, False: 60]
  Branch (2117:17): [True: 50, False: 0]
  Branch (2117:28): [True: 8, False: 42]
  Branch (2117:17): [True: 119, False: 0]
  Branch (2117:28): [True: 21, False: 98]
  Branch (2117:17): [True: 46, False: 0]
  Branch (2117:28): [True: 12, False: 34]
  Branch (2117:17): [True: 149, False: 0]
  Branch (2117:28): [True: 21, False: 128]
  Branch (2117:17): [True: 129, False: 0]
  Branch (2117:28): [True: 19, False: 110]
  Branch (2117:17): [True: 297, False: 0]
  Branch (2117:28): [True: 31, False: 266]
  Branch (2117:17): [True: 34, False: 0]
  Branch (2117:28): [True: 7, False: 27]
  Branch (2117:17): [True: 31, False: 0]
  Branch (2117:28): [True: 6, False: 25]
  Branch (2117:17): [True: 192, False: 0]
  Branch (2117:28): [True: 7, False: 185]
  Branch (2117:17): [True: 62, False: 0]
  Branch (2117:28): [True: 6, False: 56]
  Branch (2117:17): [True: 46, False: 0]
  Branch (2117:28): [True: 9, False: 37]
  Branch (2117:17): [True: 174, False: 0]
  Branch (2117:28): [True: 21, False: 153]
  Branch (2117:17): [True: 140, False: 0]
  Branch (2117:28): [True: 16, False: 124]
  Branch (2117:17): [True: 186, False: 0]
  Branch (2117:28): [True: 28, False: 158]
  Branch (2117:17): [True: 134, False: 0]
  Branch (2117:28): [True: 26, False: 108]
  Branch (2117:17): [True: 142, False: 0]
  Branch (2117:28): [True: 20, False: 122]
  Branch (2117:17): [True: 94, False: 0]
  Branch (2117:28): [True: 18, False: 76]
  Branch (2117:17): [True: 47, False: 0]
  Branch (2117:28): [True: 10, False: 37]
  Branch (2117:17): [True: 92, False: 0]
  Branch (2117:28): [True: 12, False: 80]
  Branch (2117:17): [True: 79, False: 0]
  Branch (2117:28): [True: 9, False: 70]
  Branch (2117:17): [True: 65, False: 0]
  Branch (2117:28): [True: 11, False: 54]
  Branch (2117:17): [True: 30, False: 0]
  Branch (2117:28): [True: 6, False: 24]
2118
6.54k
    }
encoding.c:pm_encoding_cp850_isupper_char
Line
Count
Source
2116
136
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
136
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 136, False: 0]
  Branch (2117:28): [True: 14, False: 122]
2118
136
    }
encoding.c:pm_encoding_cp852_isupper_char
Line
Count
Source
2116
70
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
70
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 70, False: 0]
  Branch (2117:28): [True: 8, False: 62]
2118
70
    }
encoding.c:pm_encoding_cp855_isupper_char
Line
Count
Source
2116
34
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
34
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 34, False: 0]
  Branch (2117:28): [True: 6, False: 28]
2118
34
    }
encoding.c:pm_encoding_gb1988_isupper_char
Line
Count
Source
2116
119
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
119
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 119, False: 0]
  Branch (2117:28): [True: 21, False: 98]
2118
119
    }
encoding.c:pm_encoding_ibm437_isupper_char
Line
Count
Source
2116
123
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
123
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 123, False: 0]
  Branch (2117:28): [True: 18, False: 105]
2118
123
    }
encoding.c:pm_encoding_ibm720_isupper_char
Line
Count
Source
2116
62
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
62
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 62, False: 0]
  Branch (2117:28): [True: 4, False: 58]
2118
62
    }
encoding.c:pm_encoding_ibm737_isupper_char
Line
Count
Source
2116
90
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
90
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 90, False: 0]
  Branch (2117:28): [True: 9, False: 81]
2118
90
    }
encoding.c:pm_encoding_ibm775_isupper_char
Line
Count
Source
2116
185
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
185
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 185, False: 0]
  Branch (2117:28): [True: 19, False: 166]
2118
185
    }
encoding.c:pm_encoding_ibm852_isupper_char
Line
Count
Source
2116
97
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
97
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 97, False: 0]
  Branch (2117:28): [True: 14, False: 83]
2118
97
    }
encoding.c:pm_encoding_ibm855_isupper_char
Line
Count
Source
2116
54
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
54
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 54, False: 0]
  Branch (2117:28): [True: 5, False: 49]
2118
54
    }
encoding.c:pm_encoding_ibm857_isupper_char
Line
Count
Source
2116
436
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
436
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 436, False: 0]
  Branch (2117:28): [True: 64, False: 372]
2118
436
    }
encoding.c:pm_encoding_ibm860_isupper_char
Line
Count
Source
2116
58
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
58
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 58, False: 0]
  Branch (2117:28): [True: 6, False: 52]
2118
58
    }
encoding.c:pm_encoding_ibm861_isupper_char
Line
Count
Source
2116
175
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
175
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 175, False: 0]
  Branch (2117:28): [True: 13, False: 162]
2118
175
    }
encoding.c:pm_encoding_ibm862_isupper_char
Line
Count
Source
2116
54
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
54
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 54, False: 0]
  Branch (2117:28): [True: 6, False: 48]
2118
54
    }
encoding.c:pm_encoding_ibm863_isupper_char
Line
Count
Source
2116
45
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
45
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 45, False: 0]
  Branch (2117:28): [True: 9, False: 36]
2118
45
    }
encoding.c:pm_encoding_ibm864_isupper_char
Line
Count
Source
2116
54
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
54
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 54, False: 0]
  Branch (2117:28): [True: 9, False: 45]
2118
54
    }
encoding.c:pm_encoding_ibm865_isupper_char
Line
Count
Source
2116
45
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
45
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 45, False: 0]
  Branch (2117:28): [True: 5, False: 40]
2118
45
    }
encoding.c:pm_encoding_ibm866_isupper_char
Line
Count
Source
2116
80
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
80
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 80, False: 0]
  Branch (2117:28): [True: 11, False: 69]
2118
80
    }
encoding.c:pm_encoding_ibm869_isupper_char
Line
Count
Source
2116
66
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
66
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 66, False: 0]
  Branch (2117:28): [True: 11, False: 55]
2118
66
    }
encoding.c:pm_encoding_iso_8859_1_isupper_char
Line
Count
Source
2116
168
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
168
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 168, False: 0]
  Branch (2117:28): [True: 27, False: 141]
2118
168
    }
encoding.c:pm_encoding_iso_8859_2_isupper_char
Line
Count
Source
2116
108
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
108
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 108, False: 0]
  Branch (2117:28): [True: 30, False: 78]
2118
108
    }
encoding.c:pm_encoding_iso_8859_3_isupper_char
Line
Count
Source
2116
55
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
55
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 55, False: 0]
  Branch (2117:28): [True: 8, False: 47]
2118
55
    }
encoding.c:pm_encoding_iso_8859_4_isupper_char
Line
Count
Source
2116
67
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
67
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 67, False: 0]
  Branch (2117:28): [True: 10, False: 57]
2118
67
    }
encoding.c:pm_encoding_iso_8859_5_isupper_char
Line
Count
Source
2116
76
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
76
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 76, False: 0]
  Branch (2117:28): [True: 4, False: 72]
2118
76
    }
encoding.c:pm_encoding_iso_8859_6_isupper_char
Line
Count
Source
2116
798
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
798
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 798, False: 0]
  Branch (2117:28): [True: 73, False: 725]
2118
798
    }
encoding.c:pm_encoding_iso_8859_7_isupper_char
Line
Count
Source
2116
121
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
121
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 121, False: 0]
  Branch (2117:28): [True: 24, False: 97]
2118
121
    }
encoding.c:pm_encoding_iso_8859_8_isupper_char
Line
Count
Source
2116
52
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
52
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 52, False: 0]
  Branch (2117:28): [True: 8, False: 44]
2118
52
    }
encoding.c:pm_encoding_iso_8859_9_isupper_char
Line
Count
Source
2116
87
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
87
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 87, False: 0]
  Branch (2117:28): [True: 15, False: 72]
2118
87
    }
encoding.c:pm_encoding_iso_8859_10_isupper_char
Line
Count
Source
2116
56
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
56
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 56, False: 0]
  Branch (2117:28): [True: 6, False: 50]
2118
56
    }
encoding.c:pm_encoding_iso_8859_11_isupper_char
Line
Count
Source
2116
70
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
70
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 70, False: 0]
  Branch (2117:28): [True: 20, False: 50]
2118
70
    }
encoding.c:pm_encoding_iso_8859_13_isupper_char
Line
Count
Source
2116
395
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
395
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 395, False: 0]
  Branch (2117:28): [True: 51, False: 344]
2118
395
    }
encoding.c:pm_encoding_iso_8859_14_isupper_char
Line
Count
Source
2116
38
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
38
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 38, False: 0]
  Branch (2117:28): [True: 4, False: 34]
2118
38
    }
encoding.c:pm_encoding_iso_8859_15_isupper_char
Line
Count
Source
2116
32
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
32
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 32, False: 0]
  Branch (2117:28): [True: 7, False: 25]
2118
32
    }
encoding.c:pm_encoding_iso_8859_16_isupper_char
Line
Count
Source
2116
30
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
30
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 30, False: 0]
  Branch (2117:28): [True: 6, False: 24]
2118
30
    }
encoding.c:pm_encoding_koi8_r_isupper_char
Line
Count
Source
2116
71
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
71
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 71, False: 0]
  Branch (2117:28): [True: 11, False: 60]
2118
71
    }
encoding.c:pm_encoding_koi8_u_isupper_char
Line
Count
Source
2116
50
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
50
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 50, False: 0]
  Branch (2117:28): [True: 8, False: 42]
2118
50
    }
encoding.c:pm_encoding_mac_cent_euro_isupper_char
Line
Count
Source
2116
119
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
119
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 119, False: 0]
  Branch (2117:28): [True: 21, False: 98]
2118
119
    }
encoding.c:pm_encoding_mac_croatian_isupper_char
Line
Count
Source
2116
46
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
46
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 46, False: 0]
  Branch (2117:28): [True: 12, False: 34]
2118
46
    }
encoding.c:pm_encoding_mac_cyrillic_isupper_char
Line
Count
Source
2116
149
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
149
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 149, False: 0]
  Branch (2117:28): [True: 21, False: 128]
2118
149
    }
encoding.c:pm_encoding_mac_greek_isupper_char
Line
Count
Source
2116
129
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
129
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 129, False: 0]
  Branch (2117:28): [True: 19, False: 110]
2118
129
    }
encoding.c:pm_encoding_mac_iceland_isupper_char
Line
Count
Source
2116
297
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
297
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 297, False: 0]
  Branch (2117:28): [True: 31, False: 266]
2118
297
    }
encoding.c:pm_encoding_mac_roman_isupper_char
Line
Count
Source
2116
34
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
34
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 34, False: 0]
  Branch (2117:28): [True: 7, False: 27]
2118
34
    }
encoding.c:pm_encoding_mac_romania_isupper_char
Line
Count
Source
2116
31
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
31
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 31, False: 0]
  Branch (2117:28): [True: 6, False: 25]
2118
31
    }
encoding.c:pm_encoding_mac_thai_isupper_char
Line
Count
Source
2116
192
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
192
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 192, False: 0]
  Branch (2117:28): [True: 7, False: 185]
2118
192
    }
encoding.c:pm_encoding_mac_turkish_isupper_char
Line
Count
Source
2116
62
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
62
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 62, False: 0]
  Branch (2117:28): [True: 6, False: 56]
2118
62
    }
encoding.c:pm_encoding_mac_ukraine_isupper_char
Line
Count
Source
2116
46
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
46
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 46, False: 0]
  Branch (2117:28): [True: 9, False: 37]
2118
46
    }
encoding.c:pm_encoding_tis_620_isupper_char
Line
Count
Source
2116
174
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
174
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 174, False: 0]
  Branch (2117:28): [True: 21, False: 153]
2118
174
    }
encoding.c:pm_encoding_windows_1250_isupper_char
Line
Count
Source
2116
140
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
140
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 140, False: 0]
  Branch (2117:28): [True: 16, False: 124]
2118
140
    }
encoding.c:pm_encoding_windows_1251_isupper_char
Line
Count
Source
2116
186
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
186
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 186, False: 0]
  Branch (2117:28): [True: 28, False: 158]
2118
186
    }
encoding.c:pm_encoding_windows_1252_isupper_char
Line
Count
Source
2116
134
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
134
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 134, False: 0]
  Branch (2117:28): [True: 26, False: 108]
2118
134
    }
encoding.c:pm_encoding_windows_1253_isupper_char
Line
Count
Source
2116
142
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
142
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 142, False: 0]
  Branch (2117:28): [True: 20, False: 122]
2118
142
    }
encoding.c:pm_encoding_windows_1254_isupper_char
Line
Count
Source
2116
94
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
94
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 94, False: 0]
  Branch (2117:28): [True: 18, False: 76]
2118
94
    }
encoding.c:pm_encoding_windows_1255_isupper_char
Line
Count
Source
2116
47
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
47
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 47, False: 0]
  Branch (2117:28): [True: 10, False: 37]
2118
47
    }
encoding.c:pm_encoding_windows_1256_isupper_char
Line
Count
Source
2116
92
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
92
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 92, False: 0]
  Branch (2117:28): [True: 12, False: 80]
2118
92
    }
encoding.c:pm_encoding_windows_1257_isupper_char
Line
Count
Source
2116
79
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
79
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 79, False: 0]
  Branch (2117:28): [True: 9, False: 70]
2118
79
    }
encoding.c:pm_encoding_windows_1258_isupper_char
Line
Count
Source
2116
65
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
65
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 65, False: 0]
  Branch (2117:28): [True: 11, False: 54]
2118
65
    }
encoding.c:pm_encoding_windows_874_isupper_char
Line
Count
Source
2116
30
    static bool pm_encoding_ ##name ## _isupper_char(const uint8_t *b, ptrdiff_t n) {           \
2117
30
        return ((n > 0) && (pm_encoding_ ##name ## _table[*b] & PRISM_ENCODING_UPPERCASE_BIT));            \
  Branch (2117:17): [True: 30, False: 0]
  Branch (2117:28): [True: 6, False: 24]
2118
30
    }
2119
2120
PRISM_ENCODING_TABLE(cp850)
2121
PRISM_ENCODING_TABLE(cp852)
2122
PRISM_ENCODING_TABLE(cp855)
2123
PRISM_ENCODING_TABLE(gb1988)
2124
PRISM_ENCODING_TABLE(ibm437)
2125
PRISM_ENCODING_TABLE(ibm720)
2126
PRISM_ENCODING_TABLE(ibm737)
2127
PRISM_ENCODING_TABLE(ibm775)
2128
PRISM_ENCODING_TABLE(ibm852)
2129
PRISM_ENCODING_TABLE(ibm855)
2130
PRISM_ENCODING_TABLE(ibm857)
2131
PRISM_ENCODING_TABLE(ibm860)
2132
PRISM_ENCODING_TABLE(ibm861)
2133
PRISM_ENCODING_TABLE(ibm862)
2134
PRISM_ENCODING_TABLE(ibm863)
2135
PRISM_ENCODING_TABLE(ibm864)
2136
PRISM_ENCODING_TABLE(ibm865)
2137
PRISM_ENCODING_TABLE(ibm866)
2138
PRISM_ENCODING_TABLE(ibm869)
2139
PRISM_ENCODING_TABLE(iso_8859_1)
2140
PRISM_ENCODING_TABLE(iso_8859_2)
2141
PRISM_ENCODING_TABLE(iso_8859_3)
2142
PRISM_ENCODING_TABLE(iso_8859_4)
2143
PRISM_ENCODING_TABLE(iso_8859_5)
2144
PRISM_ENCODING_TABLE(iso_8859_6)
2145
PRISM_ENCODING_TABLE(iso_8859_7)
2146
PRISM_ENCODING_TABLE(iso_8859_8)
2147
PRISM_ENCODING_TABLE(iso_8859_9)
2148
PRISM_ENCODING_TABLE(iso_8859_10)
2149
PRISM_ENCODING_TABLE(iso_8859_11)
2150
PRISM_ENCODING_TABLE(iso_8859_13)
2151
PRISM_ENCODING_TABLE(iso_8859_14)
2152
PRISM_ENCODING_TABLE(iso_8859_15)
2153
PRISM_ENCODING_TABLE(iso_8859_16)
2154
PRISM_ENCODING_TABLE(koi8_r)
2155
PRISM_ENCODING_TABLE(koi8_u)
2156
PRISM_ENCODING_TABLE(mac_cent_euro)
2157
PRISM_ENCODING_TABLE(mac_croatian)
2158
PRISM_ENCODING_TABLE(mac_cyrillic)
2159
PRISM_ENCODING_TABLE(mac_greek)
2160
PRISM_ENCODING_TABLE(mac_iceland)
2161
PRISM_ENCODING_TABLE(mac_roman)
2162
PRISM_ENCODING_TABLE(mac_romania)
2163
PRISM_ENCODING_TABLE(mac_thai)
2164
PRISM_ENCODING_TABLE(mac_turkish)
2165
PRISM_ENCODING_TABLE(mac_ukraine)
2166
PRISM_ENCODING_TABLE(tis_620)
2167
PRISM_ENCODING_TABLE(windows_1250)
2168
PRISM_ENCODING_TABLE(windows_1251)
2169
PRISM_ENCODING_TABLE(windows_1252)
2170
PRISM_ENCODING_TABLE(windows_1253)
2171
PRISM_ENCODING_TABLE(windows_1254)
2172
PRISM_ENCODING_TABLE(windows_1255)
2173
PRISM_ENCODING_TABLE(windows_1256)
2174
PRISM_ENCODING_TABLE(windows_1257)
2175
PRISM_ENCODING_TABLE(windows_1258)
2176
PRISM_ENCODING_TABLE(windows_874)
2177
2178
#undef PRISM_ENCODING_TABLE
2179
#endif
2180
2181
/**
2182
 * Returns the size of the next character in the ASCII encoding. This basically
2183
 * means that if the top bit is not set, the character is 1 byte long.
2184
 */
2185
static size_t
2186
3.76k
pm_encoding_ascii_char_width(const uint8_t *b, ptrdiff_t n) {
2187
3.76k
    return ((n > 0) && (*b < 0x80)) ? 
11.55k
:
02.20k
;
  Branch (2187:13): [True: 3.76k, False: 0]
  Branch (2187:24): [True: 1.55k, False: 2.20k]
2188
3.76k
}
2189
2190
/**
2191
 * Return the size of the next character in the ASCII encoding if it is an
2192
 * alphabetical character.
2193
 */
2194
static size_t
2195
6.66k
pm_encoding_ascii_alpha_char(const uint8_t *b, ptrdiff_t n) {
2196
6.66k
    return (n > 0) ? (pm_encoding_ascii_table[*b] & PRISM_ENCODING_ALPHABETIC_BIT) : 
00
;
  Branch (2196:12): [True: 6.66k, False: 0]
2197
6.66k
}
2198
2199
/**
2200
 * Certain encodings are equivalent to ASCII below 0x80, so it works for our
2201
 * purposes to have a function here that first checks the bounds and then falls
2202
 * back to checking the ASCII lookup table.
2203
 */
2204
static size_t
2205
7.07k
pm_encoding_ascii_alpha_char_7bit(const uint8_t *b, ptrdiff_t n) {
2206
7.07k
    return ((n > 0) && (*b < 0x80)) ? 
pm_encoding_ascii_alpha_char(b, n)4.28k
:
02.79k
;
  Branch (2206:13): [True: 7.07k, False: 0]
  Branch (2206:24): [True: 4.28k, False: 2.79k]
2207
7.07k
}
2208
2209
/**
2210
 * Return the size of the next character in the ASCII encoding if it is an
2211
 * alphanumeric character.
2212
 */
2213
static size_t
2214
20.6k
pm_encoding_ascii_alnum_char(const uint8_t *b, ptrdiff_t n) {
2215
20.6k
    return ((n > 0) && (pm_encoding_ascii_table[*b] & PRISM_ENCODING_ALPHANUMERIC_BIT)) ? 
114.0k
:
06.61k
;
  Branch (2215:13): [True: 20.6k, False: 0]
  Branch (2215:24): [True: 14.0k, False: 6.61k]
2216
20.6k
}
2217
2218
/**
2219
 * Certain encodings are equivalent to ASCII below 0x80, so it works for our
2220
 * purposes to have a function here that first checks the bounds and then falls
2221
 * back to checking the ASCII lookup table.
2222
 */
2223
static size_t
2224
16.2k
pm_encoding_ascii_alnum_char_7bit(const uint8_t *b, ptrdiff_t n) {
2225
16.2k
    return ((n > 0) && (*b < 0x80)) ? 
pm_encoding_ascii_alnum_char(b, n)14.6k
:
01.59k
;
  Branch (2225:13): [True: 16.2k, False: 0]
  Branch (2225:24): [True: 14.6k, False: 1.59k]
2226
16.2k
}
2227
2228
/**
2229
 * Return true if the next character in the ASCII encoding if it is an uppercase
2230
 * character.
2231
 */
2232
static bool
2233
5.54k
pm_encoding_ascii_isupper_char(const uint8_t *b, ptrdiff_t n) {
2234
5.54k
    return (n > 0) && (pm_encoding_ascii_table[*b] & PRISM_ENCODING_UPPERCASE_BIT);
  Branch (2234:12): [True: 5.54k, False: 0]
  Branch (2234:23): [True: 533, False: 5.01k]
2235
5.54k
}
2236
2237
/**
2238
 * For a lot of encodings the default is that they are a single byte long no
2239
 * matter what the codepoint, so this function is shared between them.
2240
 */
2241
static size_t
2242
10.2k
pm_encoding_single_char_width(PRISM_UNUSED const uint8_t *b, PRISM_UNUSED ptrdiff_t n) {
2243
10.2k
    return 1;
2244
10.2k
}
2245
2246
/**
2247
 * Returns the size of the next character in the EUC-JP encoding, or 0 if a
2248
 * character cannot be decoded from the given bytes.
2249
 */
2250
static size_t
2251
4.43k
pm_encoding_euc_jp_char_width(const uint8_t *b, ptrdiff_t n) {
2252
    // These are the single byte characters.
2253
4.43k
    if ((n > 0) && (*b < 0x80)) {
  Branch (2253:9): [True: 4.43k, False: 0]
  Branch (2253:20): [True: 1.23k, False: 3.20k]
2254
1.23k
        return 1;
2255
1.23k
    }
2256
2257
    // These are the double byte characters.
2258
3.20k
    if ((n > 1) && 
(3.08k
(b[0] == 0x8E)3.08k
||
(3.05k
b[0] >= 0xA13.05k
&&
b[0] <= 0xFE2.30k
)) &&
(1.83k
b[1] >= 0xA11.83k
&&
b[1] <= 0xFE1.25k
)) {
  Branch (2258:9): [True: 3.08k, False: 122]
  Branch (2258:21): [True: 25, False: 3.05k]
  Branch (2258:40): [True: 2.30k, False: 748]
  Branch (2258:56): [True: 1.81k, False: 494]
  Branch (2258:75): [True: 1.25k, False: 582]
  Branch (2258:91): [True: 1.14k, False: 116]
2259
1.14k
        return 2;
2260
1.14k
    }
2261
2262
    // These are the triple byte characters.
2263
2.06k
    if ((n > 2) && 
(b[0] == 0x8F)1.85k
&&
(602
b[1] >= 0xA1602
&&
b[1] <= 0xFE215
) &&
(214
b[2] >= 0xA1214
&&
b[2] <= 0xFE168
)) { ★ main-2: BR: False (1x)
  Branch (2263:9): [True: 1.85k, False: 211]
  Branch (2263:20): [True: 602, False: 1.24k]
  Branch (2263:39): [True: 215, False: 387]
  Branch (2263:55): [True: 214, False: 1]
  Branch (2263:73): [True: 168, False: 46]
  Branch (2263:89): [True: 168, False: 0]
2264
168
        return 3;
2265
168
    }
2266
2267
1.89k
    return 0;
2268
2.06k
}
2269
2270
/**
2271
 * Returns the size of the next character in the EUC-JP encoding if it is an
2272
 * uppercase character.
2273
 */
2274
static bool
2275
1.04k
pm_encoding_euc_jp_isupper_char(const uint8_t *b, ptrdiff_t n) {
2276
1.04k
    size_t width = pm_encoding_euc_jp_char_width(b, n);
2277
2278
1.04k
    if (width == 1) {
  Branch (2278:9): [True: 851, False: 198]
2279
851
        return pm_encoding_ascii_isupper_char(b, n);
2280
851
    } else 
if (198
width == 2198
) {
  Branch (2280:16): [True: 127, False: 71]
2281
127
        return (
2282
127
            (b[0] == 0xA3 && 
b[1] >= 0xC121
&&
b[1] <= 0xDA7
) ||
  Branch (2282:14): [True: 21, False: 106]
  Branch (2282:30): [True: 7, False: 14]
  Branch (2282:46): [True: 7, False: 0]
2283
127
            
(120
b[0] == 0xA6120
&&
b[1] >= 0xA16
&&
b[1] <= 0xB86
) ||
  Branch (2283:14): [True: 6, False: 114]
  Branch (2283:30): [True: 6, False: 0]
  Branch (2283:46): [True: 3, False: 3]
2284
127
            
(117
b[0] == 0xA7117
&&
b[1] >= 0xA13
&&
b[1] <= 0xC13
)
  Branch (2284:14): [True: 3, False: 114]
  Branch (2284:30): [True: 3, False: 0]
  Branch (2284:46): [True: 3, False: 0]
2285
127
        );
2286
127
    } else {
2287
71
        return false;
2288
71
    }
2289
1.04k
}
2290
2291
/**
2292
 * Returns the size of the next character in the Shift_JIS encoding, or 0 if a
2293
 * character cannot be decoded from the given bytes.
2294
 */
2295
static size_t
2296
12.9k
pm_encoding_shift_jis_char_width(const uint8_t *b, ptrdiff_t n) {
2297
12.9k
    if (n == 0) {
  Branch (2297:9): [True: 0, False: 12.9k]
2298
0
        return 0;
2299
0
    }
2300
    // These are the single byte characters.
2301
12.9k
    if (b[0] < 0x80 || 
(6.06k
b[0] >= 0xA16.06k
&&
b[0] <= 0xDF5.06k
)) {
  Branch (2301:9): [True: 6.87k, False: 6.06k]
  Branch (2301:25): [True: 5.06k, False: 1.00k]
  Branch (2301:41): [True: 2.27k, False: 2.78k]
2302
9.15k
        return 1;
2303
9.15k
    }
2304
2305
    // These are the double byte characters.
2306
3.79k
    if ((n > 1) && 
(3.75k
(3.75k
b[0] >= 0x813.75k
&&
b[0] <= 0x9F3.66k
) ||
(3.14k
b[0] >= 0xE03.14k
&&
b[0] <= 0xFC2.77k
)) &&
(2.67k
b[1] >= 0x402.67k
&&
b[1] <= 0xFC2.43k
&&
b[1] != 0x7F2.39k
)) {
  Branch (2306:9): [True: 3.75k, False: 37]
  Branch (2306:22): [True: 3.66k, False: 85]
  Branch (2306:38): [True: 607, False: 3.06k]
  Branch (2306:56): [True: 2.77k, False: 367]
  Branch (2306:72): [True: 2.06k, False: 713]
  Branch (2306:91): [True: 2.43k, False: 237]
  Branch (2306:107): [True: 2.39k, False: 38]
  Branch (2306:123): [True: 2.39k, False: 0]
2307
2.39k
        return 2;
2308
2.39k
    }
2309
2310
1.39k
    return 0;
2311
3.79k
}
2312
2313
/**
2314
 * Returns the size of the next character in the Shift_JIS encoding if it is an
2315
 * alphanumeric character.
2316
 */
2317
static size_t
2318
3.60k
pm_encoding_shift_jis_alnum_char(const uint8_t *b, ptrdiff_t n) {
2319
3.60k
    size_t width = pm_encoding_shift_jis_char_width(b, n);
2320
3.60k
    return width == 1 ? 
(3.27k
(b[0] >= 0x80)3.27k
||
pm_encoding_ascii_alnum_char(b, n)2.97k
) :
width328
;
  Branch (2320:12): [True: 3.27k, False: 328]
  Branch (2320:26): [True: 296, False: 2.97k]
  Branch (2320:44): [True: 1.74k, False: 1.23k]
2321
3.60k
}
2322
2323
/**
2324
 * Returns the size of the next character in the Shift_JIS encoding if it is an
2325
 * alphabetical character.
2326
 */
2327
static size_t
2328
1.46k
pm_encoding_shift_jis_alpha_char(const uint8_t *b, ptrdiff_t n) {
2329
1.46k
    size_t width = pm_encoding_shift_jis_char_width(b, n);
2330
1.46k
    return width == 1 ? 
(1.04k
(b[0] >= 0x80)1.04k
||
pm_encoding_ascii_alpha_char(b, n)999
) :
width426
;
  Branch (2330:12): [True: 1.04k, False: 426]
  Branch (2330:26): [True: 44, False: 999]
  Branch (2330:44): [True: 934, False: 65]
2331
1.46k
}
2332
2333
/**
2334
 * Returns the size of the next character in the Shift_JIS encoding if it is an
2335
 * uppercase character.
2336
 */
2337
static bool
2338
1.08k
pm_encoding_shift_jis_isupper_char(const uint8_t *b, ptrdiff_t n) {
2339
1.08k
    size_t width = pm_encoding_shift_jis_char_width(b, n);
2340
2341
1.08k
    if (width == 1) {
  Branch (2341:9): [True: 965, False: 117]
2342
965
        return pm_encoding_ascii_isupper_char(b, n);
2343
965
    } else 
if (117
width == 2117
) {
  Branch (2343:16): [True: 117, False: 0]
2344
117
        return (
2345
117
            ((b[0] == 0x82) && 
(6
b[1] >= 0x606
&&
b[1] <= 0x796
)) ||
  Branch (2345:14): [True: 6, False: 111]
  Branch (2345:33): [True: 6, False: 0]
  Branch (2345:49): [True: 3, False: 3]
2346
117
            
(114
(b[0] == 0x83)114
&&
(10
b[1] >= 0x9F10
&&
b[1] <= 0xB61
)) ||
  Branch (2346:14): [True: 10, False: 104]
  Branch (2346:33): [True: 1, False: 9]
  Branch (2346:49): [True: 1, False: 0]
2347
117
            
(113
(b[0] == 0x84)113
&&
(3
b[1] >= 0x403
&&
b[1] <= 0x603
))
  Branch (2347:14): [True: 3, False: 110]
  Branch (2347:33): [True: 3, False: 0]
  Branch (2347:49): [True: 0, False: 3]
2348
117
        );
2349
117
    } else {
2350
0
        return width;
2351
0
    }
2352
1.08k
}
2353
2354
#ifndef PRISM_ENCODING_EXCLUDE_FULL
2355
2356
/**
2357
 * Certain encodings are equivalent to ASCII below 0x80, so it works for our
2358
 * purposes to have a function here that first checks the bounds and then falls
2359
 * back to checking the ASCII lookup table.
2360
 */
2361
static bool
2362
2.98k
pm_encoding_ascii_isupper_char_7bit(const uint8_t *b, ptrdiff_t n) {
2363
2.98k
    return (n > 0) && (*b < 0x80) && 
pm_encoding_ascii_isupper_char(b, n)2.90k
;
  Branch (2363:12): [True: 2.98k, False: 0]
  Branch (2363:23): [True: 2.90k, False: 78]
  Branch (2363:38): [True: 309, False: 2.59k]
2364
2.98k
}
2365
2366
/**
2367
 * Returns the size of the next character in the Big5 encoding, or 0 if a
2368
 * character cannot be decoded from the given bytes.
2369
 */
2370
static size_t
2371
452
pm_encoding_big5_char_width(const uint8_t *b, ptrdiff_t n) {
2372
    // These are the single byte characters.
2373
452
    if ((n > 0) && (*b < 0x80)) {
  Branch (2373:9): [True: 452, False: 0]
  Branch (2373:20): [True: 300, False: 152]
2374
300
        return 1;
2375
300
    }
2376
2377
    // These are the double byte characters.
2378
152
    if ((n > 1) && 
(149
b[0] >= 0xA1149
&&
b[0] <= 0xFE82
) &&
(48
(48
b[1] >= 0x4048
&&
b[1] <= 0x7E43
) ||
(48
b[1] >= 0xA148
&&
b[1] <= 0xFE43
))) {
  Branch (2378:9): [True: 149, False: 3]
  Branch (2378:21): [True: 82, False: 67]
  Branch (2378:37): [True: 48, False: 34]
  Branch (2378:56): [True: 43, False: 5]
  Branch (2378:72): [True: 0, False: 43]
  Branch (2378:90): [True: 43, False: 5]
  Branch (2378:106): [True: 38, False: 5]
2379
38
        return 2;
2380
38
    }
2381
2382
114
    return 0;
2383
152
}
2384
2385
/**
2386
 * Returns the size of the next character in the CP949 encoding, or 0 if a
2387
 * character cannot be decoded from the given bytes.
2388
 */
2389
static size_t
2390
367
pm_encoding_cp949_char_width(const uint8_t *b, ptrdiff_t n) {
2391
    // These are the single byte characters
2392
367
    if ((n > 0) && (*b <= 0x80)) {
  Branch (2392:9): [True: 367, False: 0]
  Branch (2392:20): [True: 247, False: 120]
2393
247
        return 1;
2394
247
    }
2395
2396
    // These are the double byte characters
2397
120
    if ((n > 1) && 
(117
b[0] >= 0x81117
&&
b[0] <= 0xFE117
) &&
(91
(91
b[1] >= 0x4191
&&
b[1] <= 0x5A68
) ||
(91
b[1] >= 0x6191
&&
b[1] <= 0x7A68
) ||
(86
b[1] >= 0x8186
&&
b[1] <= 0xFE63
))) {
  Branch (2397:9): [True: 117, False: 3]
  Branch (2397:21): [True: 117, False: 0]
  Branch (2397:37): [True: 91, False: 26]
  Branch (2397:56): [True: 68, False: 23]
  Branch (2397:72): [True: 0, False: 68]
  Branch (2397:90): [True: 68, False: 23]
  Branch (2397:106): [True: 5, False: 63]
  Branch (2397:124): [True: 63, False: 23]
  Branch (2397:140): [True: 60, False: 3]
2398
65
        return 2;
2399
65
    }
2400
2401
55
    return 0;
2402
120
}
2403
2404
/**
2405
 * Returns the size of the next character in the Emacs MULE encoding, or 0 if a
2406
 * character cannot be decoded from the given bytes.
2407
 */
2408
static size_t
2409
3.15k
pm_encoding_emacs_mule_char_width(const uint8_t *b, ptrdiff_t n) {
2410
    // These are the 1 byte characters.
2411
3.15k
    if ((n > 0) && (*b < 0x80)) {
  Branch (2411:9): [True: 3.15k, False: 0]
  Branch (2411:20): [True: 758, False: 2.40k]
2412
758
        return 1;
2413
758
    }
2414
2415
    // These are the 2 byte characters.
2416
2.40k
    if ((n > 1) && 
(2.39k
b[0] >= 0x812.39k
&&
b[0] <= 0x8F2.38k
) &&
(b[1] >= 0xA0)294
) {
  Branch (2416:9): [True: 2.39k, False: 9]
  Branch (2416:21): [True: 2.38k, False: 8]
  Branch (2416:37): [True: 294, False: 2.09k]
  Branch (2416:54): [True: 42, False: 252]
2417
42
        return 2;
2418
42
    }
2419
2420
    // These are the 3 byte characters.
2421
2.35k
    if (
2422
2.35k
        (n > 2) &&
  Branch (2422:9): [True: 2.33k, False: 20]
2423
2.35k
        (
2424
2.33k
            ((b[0] >= 0x90 && 
b[0] <= 0x992.08k
) &&
(b[1] >= 0xA0)156
) ||
  Branch (2424:15): [True: 2.08k, False: 257]
  Branch (2424:31): [True: 156, False: 1.92k]
  Branch (2424:48): [True: 34, False: 122]
2425
2.33k
            
(2.30k
(2.30k
b[0] == 0x9A2.30k
||
b[0] == 0x9B2.29k
) &&
(424
b[1] >= 0xE0424
&&
b[1] <= 0xEF10
)) ★ main-2: BR: b[1] >= 0xE0 → True (10x), b[1] <= 0xEF → True (9x), b[1] <= 0xEF → False (1x)
  Branch (2425:15): [True: 8, False: 2.29k]
  Branch (2425:31): [True: 416, False: 1.88k]
  Branch (2425:49): [True: 10, False: 414]
  Branch (2425:65): [True: 9, False: 1]
2426
2.33k
        ) &&
2427
2.35k
        
(b[2] >= 0xA0)43
  Branch (2427:9): [True: 11, False: 32]
2428
2.35k
    ) {
2429
11
        return 3;
2430
11
    }
2431
2432
    // These are the 4 byte characters.
2433
2.34k
    if (
2434
2.34k
        (n > 3) &&
  Branch (2434:9): [True: 2.32k, False: 27]
2435
2.34k
        (
2436
2.32k
            ((b[0] == 0x9C) && 
(b[1] >= 0xF0)88
&&
(b[1] <= 0xF4)7
) ||
  Branch (2436:14): [True: 88, False: 2.23k]
  Branch (2436:32): [True: 7, False: 81]
  Branch (2436:50): [True: 7, False: 0]
2437
2.32k
            
(2.31k
(b[0] == 0x9D)2.31k
&&
(b[1] >= 0xF5)805
&&
(b[1] <= 0xFE)81
)
  Branch (2437:14): [True: 805, False: 1.50k]
  Branch (2437:32): [True: 81, False: 724]
  Branch (2437:50): [True: 71, False: 10]
2438
2.32k
        ) &&
2439
2.34k
        
(b[2] >= 0xA0)78
&&
(b[3] >= 0xA0)75
  Branch (2439:9): [True: 75, False: 3]
  Branch (2439:27): [True: 71, False: 4]
2440
2.34k
    ) {
2441
71
        return 4;
2442
71
    }
2443
2444
2.27k
    return 0;
2445
2.34k
}
2446
2447
/**
2448
 * Returns the size of the next character in the EUC-KR encoding, or 0 if a
2449
 * character cannot be decoded from the given bytes.
2450
 */
2451
static size_t
2452
1.15k
pm_encoding_euc_kr_char_width(const uint8_t *b, ptrdiff_t n) {
2453
    // These are the single byte characters.
2454
1.15k
    if ((n > 0) && (*b < 0x80)) {
  Branch (2454:9): [True: 1.15k, False: 0]
  Branch (2454:20): [True: 513, False: 637]
2455
513
        return 1;
2456
513
    }
2457
2458
    // These are the double byte characters.
2459
637
    if ((n > 1) && 
(634
b[0] >= 0xA1634
&&
b[0] <= 0xFE457
) &&
(342
b[1] >= 0xA1342
&&
b[1] <= 0xFE240
)) {
  Branch (2459:9): [True: 634, False: 3]
  Branch (2459:21): [True: 457, False: 177]
  Branch (2459:37): [True: 342, False: 115]
  Branch (2459:55): [True: 240, False: 102]
  Branch (2459:71): [True: 231, False: 9]
2460
231
        return 2;
2461
231
    }
2462
2463
406
    return 0;
2464
637
}
2465
2466
/**
2467
 * Returns the size of the next character in the EUC-TW encoding, or 0 if a
2468
 * character cannot be decoded from the given bytes.
2469
 */
2470
static size_t
2471
1.24k
pm_encoding_euc_tw_char_width(const uint8_t *b, ptrdiff_t n) {
2472
    // These are the single byte characters.
2473
1.24k
    if ((n > 0) && (*b < 0x80)) {
  Branch (2473:9): [True: 1.24k, False: 0]
  Branch (2473:20): [True: 203, False: 1.04k]
2474
203
        return 1;
2475
203
    }
2476
2477
    // These are the double byte characters.
2478
1.04k
    if ((n > 1) && 
(b[0] >= 0xA1)1.04k
&&
(b[0] <= 0xFE)727
&&
(b[1] >= 0xA1)393
&&
(b[1] <= 0xFE)260
) {
  Branch (2478:9): [True: 1.04k, False: 5]
  Branch (2478:20): [True: 727, False: 314]
  Branch (2478:38): [True: 393, False: 334]
  Branch (2478:56): [True: 260, False: 133]
  Branch (2478:74): [True: 168, False: 92]
2479
168
        return 2;
2480
168
    }
2481
2482
    // These are the quadruple byte characters.
2483
878
    if ((n > 3) && 
(b[0] == 0x8E)868
&&
(b[1] >= 0xA1)200
&&
(b[1] <= 0xB0)32
&&
(b[2] >= 0xA1)29
&&
(b[2] <= 0xFE)7
&&
(b[3] >= 0xA1)7
&&
(b[3] <= 0xFE)4
) {
  Branch (2483:9): [True: 868, False: 10]
  Branch (2483:20): [True: 200, False: 668]
  Branch (2483:38): [True: 32, False: 168]
  Branch (2483:56): [True: 29, False: 3]
  Branch (2483:74): [True: 7, False: 22]
  Branch (2483:92): [True: 7, False: 0]
  Branch (2483:110): [True: 4, False: 3]
  Branch (2483:128): [True: 4, False: 0]
2484
4
        return 4;
2485
4
    }
2486
2487
874
    return 0;
2488
878
}
2489
2490
/**
2491
 * Returns the size of the next character in the GB18030 encoding, or 0 if a
2492
 * character cannot be decoded from the given bytes.
2493
 */
2494
static size_t
2495
5.57k
pm_encoding_gb18030_char_width(const uint8_t *b, ptrdiff_t n) {
2496
    // These are the 1 byte characters.
2497
5.57k
    if ((n > 0) && (*b < 0x80)) {
  Branch (2497:9): [True: 5.57k, False: 0]
  Branch (2497:20): [True: 2.34k, False: 3.23k]
2498
2.34k
        return 1;
2499
2.34k
    }
2500
2501
    // These are the 2 byte characters.
2502
3.23k
    if ((n > 1) && 
(3.22k
b[0] >= 0x813.22k
&&
b[0] <= 0xFE3.20k
) &&
(2.53k
b[1] >= 0x402.53k
&&
b[1] <= 0xFE1.84k
&&
b[1] != 0x7F1.78k
)) {
  Branch (2502:9): [True: 3.22k, False: 14]
  Branch (2502:21): [True: 3.20k, False: 11]
  Branch (2502:37): [True: 2.53k, False: 673]
  Branch (2502:55): [True: 1.84k, False: 689]
  Branch (2502:71): [True: 1.78k, False: 59]
  Branch (2502:87): [True: 1.78k, False: 6]
2503
1.78k
        return 2;
2504
1.78k
    }
2505
2506
    // These are the 4 byte characters.
2507
1.45k
    if ((n > 3) && 
(1.42k
(1.42k
b[0] >= 0x811.42k
&&
b[0] <= 0xFE1.41k
) &&
(750
b[1] >= 0x30750
&&
b[1] <= 0x39124
) &&
(53
b[2] >= 0x8153
&&
b[2] <= 0xFE20
) &&
(20
b[3] >= 0x3020
&&
b[3] <= 0x397
))) {
  Branch (2507:9): [True: 1.42k, False: 30]
  Branch (2507:22): [True: 1.41k, False: 7]
  Branch (2507:38): [True: 750, False: 665]
  Branch (2507:56): [True: 124, False: 626]
  Branch (2507:72): [True: 53, False: 71]
  Branch (2507:90): [True: 20, False: 33]
  Branch (2507:106): [True: 20, False: 0]
  Branch (2507:124): [True: 7, False: 13]
  Branch (2507:140): [True: 3, False: 4]
2508
3
        return 4;
2509
3
    }
2510
2511
1.44k
    return 0;
2512
1.45k
}
2513
2514
/**
2515
 * Returns the size of the next character in the GBK encoding, or 0 if a
2516
 * character cannot be decoded from the given bytes.
2517
 */
2518
static size_t
2519
2.89k
pm_encoding_gbk_char_width(const uint8_t *b, ptrdiff_t n) {
2520
    // These are the single byte characters.
2521
2.89k
    if ((n > 0) && 
(*b <= 0x80)2.89k
) {
  Branch (2521:9): [True: 2.89k, False: 1]
  Branch (2521:20): [True: 1.70k, False: 1.18k]
2522
1.70k
        return 1;
2523
1.70k
    }
2524
2525
    // These are the double byte characters.
2526
1.19k
    if (
2527
1.19k
        (n > 1) &&
  Branch (2527:9): [True: 1.18k, False: 6]
2528
1.19k
        (
2529
1.18k
            ((b[0] >= 0xA1 && 
b[0] <= 0xA9896
) &&
(136
b[1] >= 0xA1136
&&
b[1] <= 0xFE89
)) || // GBK/1
  Branch (2529:15): [True: 896, False: 288]
  Branch (2529:31): [True: 136, False: 760]
  Branch (2529:49): [True: 89, False: 47]
  Branch (2529:65): [True: 85, False: 4]
2530
1.18k
            
(1.09k
(1.09k
b[0] >= 0xB01.09k
&&
b[0] <= 0xF7587
) &&
(158
b[1] >= 0xA1158
&&
b[1] <= 0xFE112
)) || // GBK/2
  Branch (2530:15): [True: 587, False: 512]
  Branch (2530:31): [True: 158, False: 429]
  Branch (2530:49): [True: 112, False: 46]
  Branch (2530:65): [True: 108, False: 4]
2531
1.18k
            
(991
(991
b[0] >= 0x81991
&&
b[0] <= 0xA0991
) &&
(288
b[1] >= 0x40288
&&
b[1] <= 0xFE170
) &&
(b[1] != 0x7F)158
) || // GBK/3
  Branch (2531:15): [True: 991, False: 0]
  Branch (2531:31): [True: 288, False: 703]
  Branch (2531:49): [True: 170, False: 118]
  Branch (2531:65): [True: 158, False: 12]
  Branch (2531:82): [True: 158, False: 0]
2532
1.18k
            
(833
(833
b[0] >= 0xAA833
&&
b[0] <= 0xFE652
) &&
(272
b[1] >= 0x40272
&&
b[1] <= 0xA0237
) &&
(b[1] != 0x7F)38
) || // GBK/4
  Branch (2532:15): [True: 652, False: 181]
  Branch (2532:31): [True: 272, False: 380]
  Branch (2532:49): [True: 237, False: 35]
  Branch (2532:65): [True: 38, False: 199]
  Branch (2532:82): [True: 38, False: 0]
2533
1.18k
            
(795
(795
b[0] >= 0xA8795
&&
b[0] <= 0xA9628
) &&
(14
b[1] >= 0x4014
&&
b[1] <= 0xA07
) &&
(b[1] != 0x7F)3
) || // GBK/5
  Branch (2533:15): [True: 628, False: 167]
  Branch (2533:31): [True: 14, False: 614]
  Branch (2533:49): [True: 7, False: 7]
  Branch (2533:65): [True: 3, False: 4]
  Branch (2533:82): [True: 3, False: 0]
2534
1.18k
            
(792
(792
b[0] >= 0xAA792
&&
b[0] <= 0xAF614
) &&
(167
b[1] >= 0xA1167
&&
b[1] <= 0xFE159
)) || // user-defined 1
  Branch (2534:15): [True: 614, False: 178]
  Branch (2534:31): [True: 167, False: 447]
  Branch (2534:49): [True: 159, False: 8]
  Branch (2534:65): [True: 157, False: 2]
2535
1.18k
            
(635
(635
b[0] >= 0xF8635
&&
b[0] <= 0xFE427
) &&
(47
b[1] >= 0xA147
&&
b[1] <= 0xFE36
)) || // user-defined 2
  Branch (2535:15): [True: 427, False: 208]
  Branch (2535:31): [True: 47, False: 380]
  Branch (2535:49): [True: 36, False: 11]
  Branch (2535:65): [True: 36, False: 0]
2536
1.18k
            
(599
(599
b[0] >= 0xA1599
&&
b[0] <= 0xA7469
) &&
(37
b[1] >= 0x4037
&&
b[1] <= 0xA023
) &&
(b[1] != 0x7F)23
) // user-defined 3
  Branch (2536:15): [True: 469, False: 130]
  Branch (2536:31): [True: 37, False: 432]
  Branch (2536:49): [True: 23, False: 14]
  Branch (2536:65): [True: 23, False: 0]
  Branch (2536:82): [True: 23, False: 0]
2537
1.18k
        )
2538
1.19k
    ) {
2539
608
        return 2;
2540
608
    }
2541
2542
582
    return 0;
2543
1.19k
}
2544
2545
#endif
2546
2547
/**
2548
 * This is the table of all of the encodings that prism supports.
2549
 */
2550
const pm_encoding_t pm_encodings[] = {
2551
    [PM_ENCODING_UTF_8] = {
2552
        .name = "UTF-8",
2553
        .char_width = pm_encoding_utf_8_char_width,
2554
        .alnum_char = pm_encoding_utf_8_alnum_char,
2555
        .alpha_char = pm_encoding_utf_8_alpha_char,
2556
        .isupper_char = pm_encoding_utf_8_isupper_char,
2557
        .multibyte = true
2558
    },
2559
    [PM_ENCODING_US_ASCII] = {
2560
        .name = "US-ASCII",
2561
        .char_width = pm_encoding_ascii_char_width,
2562
        .alnum_char = pm_encoding_ascii_alnum_char,
2563
        .alpha_char = pm_encoding_ascii_alpha_char,
2564
        .isupper_char = pm_encoding_ascii_isupper_char,
2565
        .multibyte = false
2566
    },
2567
    [PM_ENCODING_ASCII_8BIT] = {
2568
        .name = "ASCII-8BIT",
2569
        .char_width = pm_encoding_single_char_width,
2570
        .alnum_char = pm_encoding_ascii_alnum_char,
2571
        .alpha_char = pm_encoding_ascii_alpha_char,
2572
        .isupper_char = pm_encoding_ascii_isupper_char,
2573
        .multibyte = false
2574
    },
2575
    [PM_ENCODING_EUC_JP] = {
2576
        .name = "EUC-JP",
2577
        .char_width = pm_encoding_euc_jp_char_width,
2578
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
2579
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
2580
        .isupper_char = pm_encoding_euc_jp_isupper_char,
2581
        .multibyte = true
2582
    },
2583
    [PM_ENCODING_WINDOWS_31J] = {
2584
        .name = "Windows-31J",
2585
        .char_width = pm_encoding_shift_jis_char_width,
2586
        .alnum_char = pm_encoding_shift_jis_alnum_char,
2587
        .alpha_char = pm_encoding_shift_jis_alpha_char,
2588
        .isupper_char = pm_encoding_shift_jis_isupper_char,
2589
        .multibyte = true
2590
    },
2591
2592
#ifndef PRISM_ENCODING_EXCLUDE_FULL
2593
    [PM_ENCODING_BIG5] = {
2594
        .name = "Big5",
2595
        .char_width = pm_encoding_big5_char_width,
2596
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
2597
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
2598
        .isupper_char = pm_encoding_ascii_isupper_char_7bit,
2599
        .multibyte = true
2600
    },
2601
    [PM_ENCODING_BIG5_HKSCS] = {
2602
        .name = "Big5-HKSCS",
2603
        .char_width = pm_encoding_big5_char_width,
2604
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
2605
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
2606
        .isupper_char = pm_encoding_ascii_isupper_char_7bit,
2607
        .multibyte = true
2608
    },
2609
    [PM_ENCODING_BIG5_UAO] = {
2610
        .name = "Big5-UAO",
2611
        .char_width = pm_encoding_big5_char_width,
2612
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
2613
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
2614
        .isupper_char = pm_encoding_ascii_isupper_char_7bit,
2615
        .multibyte = true
2616
    },
2617
    [PM_ENCODING_CESU_8] = {
2618
        .name = "CESU-8",
2619
        .char_width = pm_encoding_cesu_8_char_width,
2620
        .alnum_char = pm_encoding_cesu_8_alnum_char,
2621
        .alpha_char = pm_encoding_cesu_8_alpha_char,
2622
        .isupper_char = pm_encoding_cesu_8_isupper_char,
2623
        .multibyte = true
2624
    },
2625
    [PM_ENCODING_CP51932] = {
2626
        .name = "CP51932",
2627
        .char_width = pm_encoding_euc_jp_char_width,
2628
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
2629
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
2630
        .isupper_char = pm_encoding_euc_jp_isupper_char,
2631
        .multibyte = true
2632
    },
2633
    [PM_ENCODING_CP850] = {
2634
        .name = "CP850",
2635
        .char_width = pm_encoding_single_char_width,
2636
        .alnum_char = pm_encoding_cp850_alnum_char,
2637
        .alpha_char = pm_encoding_cp850_alpha_char,
2638
        .isupper_char = pm_encoding_cp850_isupper_char,
2639
        .multibyte = false
2640
    },
2641
    [PM_ENCODING_CP852] = {
2642
        .name = "CP852",
2643
        .char_width = pm_encoding_single_char_width,
2644
        .alnum_char = pm_encoding_cp852_alnum_char,
2645
        .alpha_char = pm_encoding_cp852_alpha_char,
2646
        .isupper_char = pm_encoding_cp852_isupper_char,
2647
        .multibyte = false
2648
    },
2649
    [PM_ENCODING_CP855] = {
2650
        .name = "CP855",
2651
        .char_width = pm_encoding_single_char_width,
2652
        .alnum_char = pm_encoding_cp855_alnum_char,
2653
        .alpha_char = pm_encoding_cp855_alpha_char,
2654
        .isupper_char = pm_encoding_cp855_isupper_char,
2655
        .multibyte = false
2656
    },
2657
    [PM_ENCODING_CP949] = {
2658
        .name = "CP949",
2659
        .char_width = pm_encoding_cp949_char_width,
2660
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
2661
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
2662
        .isupper_char = pm_encoding_ascii_isupper_char_7bit,
2663
        .multibyte = true
2664
    },
2665
    [PM_ENCODING_CP950] = {
2666
        .name = "CP950",
2667
        .char_width = pm_encoding_big5_char_width,
2668
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
2669
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
2670
        .isupper_char = pm_encoding_ascii_isupper_char_7bit,
2671
        .multibyte = true
2672
    },
2673
    [PM_ENCODING_CP951] = {
2674
        .name = "CP951",
2675
        .char_width = pm_encoding_big5_char_width,
2676
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
2677
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
2678
        .isupper_char = pm_encoding_ascii_isupper_char_7bit,
2679
        .multibyte = true
2680
    },
2681
    [PM_ENCODING_EMACS_MULE] = {
2682
        .name = "Emacs-Mule",
2683
        .char_width = pm_encoding_emacs_mule_char_width,
2684
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
2685
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
2686
        .isupper_char = pm_encoding_ascii_isupper_char_7bit,
2687
        .multibyte = true
2688
    },
2689
    [PM_ENCODING_EUC_JP_MS] = {
2690
        .name = "eucJP-ms",
2691
        .char_width = pm_encoding_euc_jp_char_width,
2692
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
2693
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
2694
        .isupper_char = pm_encoding_euc_jp_isupper_char,
2695
        .multibyte = true
2696
    },
2697
    [PM_ENCODING_EUC_JIS_2004] = {
2698
        .name = "EUC-JIS-2004",
2699
        .char_width = pm_encoding_euc_jp_char_width,
2700
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
2701
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
2702
        .isupper_char = pm_encoding_euc_jp_isupper_char,
2703
        .multibyte = true
2704
    },
2705
    [PM_ENCODING_EUC_KR] = {
2706
        .name = "EUC-KR",
2707
        .char_width = pm_encoding_euc_kr_char_width,
2708
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
2709
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
2710
        .isupper_char = pm_encoding_ascii_isupper_char_7bit,
2711
        .multibyte = true
2712
    },
2713
    [PM_ENCODING_EUC_TW] = {
2714
        .name = "EUC-TW",
2715
        .char_width = pm_encoding_euc_tw_char_width,
2716
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
2717
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
2718
        .isupper_char = pm_encoding_ascii_isupper_char_7bit,
2719
        .multibyte = true
2720
    },
2721
    [PM_ENCODING_GB12345] = {
2722
        .name = "GB12345",
2723
        .char_width = pm_encoding_euc_kr_char_width,
2724
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
2725
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
2726
        .isupper_char = pm_encoding_ascii_isupper_char_7bit,
2727
        .multibyte = true
2728
    },
2729
    [PM_ENCODING_GB18030] = {
2730
        .name = "GB18030",
2731
        .char_width = pm_encoding_gb18030_char_width,
2732
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
2733
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
2734
        .isupper_char = pm_encoding_ascii_isupper_char_7bit,
2735
        .multibyte = true
2736
    },
2737
    [PM_ENCODING_GB1988] = {
2738
        .name = "GB1988",
2739
        .char_width = pm_encoding_single_char_width,
2740
        .alnum_char = pm_encoding_gb1988_alnum_char,
2741
        .alpha_char = pm_encoding_gb1988_alpha_char,
2742
        .isupper_char = pm_encoding_gb1988_isupper_char,
2743
        .multibyte = false
2744
    },
2745
    [PM_ENCODING_GB2312] = {
2746
        .name = "GB2312",
2747
        .char_width = pm_encoding_euc_kr_char_width,
2748
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
2749
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
2750
        .isupper_char = pm_encoding_ascii_isupper_char_7bit,
2751
        .multibyte = true
2752
    },
2753
    [PM_ENCODING_GBK] = {
2754
        .name = "GBK",
2755
        .char_width = pm_encoding_gbk_char_width,
2756
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
2757
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
2758
        .isupper_char = pm_encoding_ascii_isupper_char_7bit,
2759
        .multibyte = true
2760
    },
2761
    [PM_ENCODING_IBM437] = {
2762
        .name = "IBM437",
2763
        .char_width = pm_encoding_single_char_width,
2764
        .alnum_char = pm_encoding_ibm437_alnum_char,
2765
        .alpha_char = pm_encoding_ibm437_alpha_char,
2766
        .isupper_char = pm_encoding_ibm437_isupper_char,
2767
        .multibyte = false
2768
    },
2769
    [PM_ENCODING_IBM720] = {
2770
        .name = "IBM720",
2771
        .char_width = pm_encoding_single_char_width,
2772
        .alnum_char = pm_encoding_ibm720_alnum_char,
2773
        .alpha_char = pm_encoding_ibm720_alpha_char,
2774
        .isupper_char = pm_encoding_ibm720_isupper_char,
2775
        .multibyte = false
2776
    },
2777
    [PM_ENCODING_IBM737] = {
2778
        .name = "IBM737",
2779
        .char_width = pm_encoding_single_char_width,
2780
        .alnum_char = pm_encoding_ibm737_alnum_char,
2781
        .alpha_char = pm_encoding_ibm737_alpha_char,
2782
        .isupper_char = pm_encoding_ibm737_isupper_char,
2783
        .multibyte = false
2784
    },
2785
    [PM_ENCODING_IBM775] = {
2786
        .name = "IBM775",
2787
        .char_width = pm_encoding_single_char_width,
2788
        .alnum_char = pm_encoding_ibm775_alnum_char,
2789
        .alpha_char = pm_encoding_ibm775_alpha_char,
2790
        .isupper_char = pm_encoding_ibm775_isupper_char,
2791
        .multibyte = false
2792
    },
2793
    [PM_ENCODING_IBM852] = {
2794
        .name = "IBM852",
2795
        .char_width = pm_encoding_single_char_width,
2796
        .alnum_char = pm_encoding_ibm852_alnum_char,
2797
        .alpha_char = pm_encoding_ibm852_alpha_char,
2798
        .isupper_char = pm_encoding_ibm852_isupper_char,
2799
        .multibyte = false
2800
    },
2801
    [PM_ENCODING_IBM855] = {
2802
        .name = "IBM855",
2803
        .char_width = pm_encoding_single_char_width,
2804
        .alnum_char = pm_encoding_ibm855_alnum_char,
2805
        .alpha_char = pm_encoding_ibm855_alpha_char,
2806
        .isupper_char = pm_encoding_ibm855_isupper_char,
2807
        .multibyte = false
2808
    },
2809
    [PM_ENCODING_IBM857] = {
2810
        .name = "IBM857",
2811
        .char_width = pm_encoding_single_char_width,
2812
        .alnum_char = pm_encoding_ibm857_alnum_char,
2813
        .alpha_char = pm_encoding_ibm857_alpha_char,
2814
        .isupper_char = pm_encoding_ibm857_isupper_char,
2815
        .multibyte = false
2816
    },
2817
    [PM_ENCODING_IBM860] = {
2818
        .name = "IBM860",
2819
        .char_width = pm_encoding_single_char_width,
2820
        .alnum_char = pm_encoding_ibm860_alnum_char,
2821
        .alpha_char = pm_encoding_ibm860_alpha_char,
2822
        .isupper_char = pm_encoding_ibm860_isupper_char,
2823
        .multibyte = false
2824
    },
2825
    [PM_ENCODING_IBM861] = {
2826
        .name = "IBM861",
2827
        .char_width = pm_encoding_single_char_width,
2828
        .alnum_char = pm_encoding_ibm861_alnum_char,
2829
        .alpha_char = pm_encoding_ibm861_alpha_char,
2830
        .isupper_char = pm_encoding_ibm861_isupper_char,
2831
        .multibyte = false
2832
    },
2833
    [PM_ENCODING_IBM862] = {
2834
        .name = "IBM862",
2835
        .char_width = pm_encoding_single_char_width,
2836
        .alnum_char = pm_encoding_ibm862_alnum_char,
2837
        .alpha_char = pm_encoding_ibm862_alpha_char,
2838
        .isupper_char = pm_encoding_ibm862_isupper_char,
2839
        .multibyte = false
2840
    },
2841
    [PM_ENCODING_IBM863] = {
2842
        .name = "IBM863",
2843
        .char_width = pm_encoding_single_char_width,
2844
        .alnum_char = pm_encoding_ibm863_alnum_char,
2845
        .alpha_char = pm_encoding_ibm863_alpha_char,
2846
        .isupper_char = pm_encoding_ibm863_isupper_char,
2847
        .multibyte = false
2848
    },
2849
    [PM_ENCODING_IBM864] = {
2850
        .name = "IBM864",
2851
        .char_width = pm_encoding_single_char_width,
2852
        .alnum_char = pm_encoding_ibm864_alnum_char,
2853
        .alpha_char = pm_encoding_ibm864_alpha_char,
2854
        .isupper_char = pm_encoding_ibm864_isupper_char,
2855
        .multibyte = false
2856
    },
2857
    [PM_ENCODING_IBM865] = {
2858
        .name = "IBM865",
2859
        .char_width = pm_encoding_single_char_width,
2860
        .alnum_char = pm_encoding_ibm865_alnum_char,
2861
        .alpha_char = pm_encoding_ibm865_alpha_char,
2862
        .isupper_char = pm_encoding_ibm865_isupper_char,
2863
        .multibyte = false
2864
    },
2865
    [PM_ENCODING_IBM866] = {
2866
        .name = "IBM866",
2867
        .char_width = pm_encoding_single_char_width,
2868
        .alnum_char = pm_encoding_ibm866_alnum_char,
2869
        .alpha_char = pm_encoding_ibm866_alpha_char,
2870
        .isupper_char = pm_encoding_ibm866_isupper_char,
2871
        .multibyte = false
2872
    },
2873
    [PM_ENCODING_IBM869] = {
2874
        .name = "IBM869",
2875
        .char_width = pm_encoding_single_char_width,
2876
        .alnum_char = pm_encoding_ibm869_alnum_char,
2877
        .alpha_char = pm_encoding_ibm869_alpha_char,
2878
        .isupper_char = pm_encoding_ibm869_isupper_char,
2879
        .multibyte = false
2880
    },
2881
    [PM_ENCODING_ISO_8859_1] = {
2882
        .name = "ISO-8859-1",
2883
        .char_width = pm_encoding_single_char_width,
2884
        .alnum_char = pm_encoding_iso_8859_1_alnum_char,
2885
        .alpha_char = pm_encoding_iso_8859_1_alpha_char,
2886
        .isupper_char = pm_encoding_iso_8859_1_isupper_char,
2887
        .multibyte = false
2888
    },
2889
    [PM_ENCODING_ISO_8859_2] = {
2890
        .name = "ISO-8859-2",
2891
        .char_width = pm_encoding_single_char_width,
2892
        .alnum_char = pm_encoding_iso_8859_2_alnum_char,
2893
        .alpha_char = pm_encoding_iso_8859_2_alpha_char,
2894
        .isupper_char = pm_encoding_iso_8859_2_isupper_char,
2895
        .multibyte = false
2896
    },
2897
    [PM_ENCODING_ISO_8859_3] = {
2898
        .name = "ISO-8859-3",
2899
        .char_width = pm_encoding_single_char_width,
2900
        .alnum_char = pm_encoding_iso_8859_3_alnum_char,
2901
        .alpha_char = pm_encoding_iso_8859_3_alpha_char,
2902
        .isupper_char = pm_encoding_iso_8859_3_isupper_char,
2903
        .multibyte = false
2904
    },
2905
    [PM_ENCODING_ISO_8859_4] = {
2906
        .name = "ISO-8859-4",
2907
        .char_width = pm_encoding_single_char_width,
2908
        .alnum_char = pm_encoding_iso_8859_4_alnum_char,
2909
        .alpha_char = pm_encoding_iso_8859_4_alpha_char,
2910
        .isupper_char = pm_encoding_iso_8859_4_isupper_char,
2911
        .multibyte = false
2912
    },
2913
    [PM_ENCODING_ISO_8859_5] = {
2914
        .name = "ISO-8859-5",
2915
        .char_width = pm_encoding_single_char_width,
2916
        .alnum_char = pm_encoding_iso_8859_5_alnum_char,
2917
        .alpha_char = pm_encoding_iso_8859_5_alpha_char,
2918
        .isupper_char = pm_encoding_iso_8859_5_isupper_char,
2919
        .multibyte = false
2920
    },
2921
    [PM_ENCODING_ISO_8859_6] = {
2922
        .name = "ISO-8859-6",
2923
        .char_width = pm_encoding_single_char_width,
2924
        .alnum_char = pm_encoding_iso_8859_6_alnum_char,
2925
        .alpha_char = pm_encoding_iso_8859_6_alpha_char,
2926
        .isupper_char = pm_encoding_iso_8859_6_isupper_char,
2927
        .multibyte = false
2928
    },
2929
    [PM_ENCODING_ISO_8859_7] = {
2930
        .name = "ISO-8859-7",
2931
        .char_width = pm_encoding_single_char_width,
2932
        .alnum_char = pm_encoding_iso_8859_7_alnum_char,
2933
        .alpha_char = pm_encoding_iso_8859_7_alpha_char,
2934
        .isupper_char = pm_encoding_iso_8859_7_isupper_char,
2935
        .multibyte = false
2936
    },
2937
    [PM_ENCODING_ISO_8859_8] = {
2938
        .name = "ISO-8859-8",
2939
        .char_width = pm_encoding_single_char_width,
2940
        .alnum_char = pm_encoding_iso_8859_8_alnum_char,
2941
        .alpha_char = pm_encoding_iso_8859_8_alpha_char,
2942
        .isupper_char = pm_encoding_iso_8859_8_isupper_char,
2943
        .multibyte = false
2944
    },
2945
    [PM_ENCODING_ISO_8859_9] = {
2946
        .name = "ISO-8859-9",
2947
        .char_width = pm_encoding_single_char_width,
2948
        .alnum_char = pm_encoding_iso_8859_9_alnum_char,
2949
        .alpha_char = pm_encoding_iso_8859_9_alpha_char,
2950
        .isupper_char = pm_encoding_iso_8859_9_isupper_char,
2951
        .multibyte = false
2952
    },
2953
    [PM_ENCODING_ISO_8859_10] = {
2954
        .name = "ISO-8859-10",
2955
        .char_width = pm_encoding_single_char_width,
2956
        .alnum_char = pm_encoding_iso_8859_10_alnum_char,
2957
        .alpha_char = pm_encoding_iso_8859_10_alpha_char,
2958
        .isupper_char = pm_encoding_iso_8859_10_isupper_char,
2959
        .multibyte = false
2960
    },
2961
    [PM_ENCODING_ISO_8859_11] = {
2962
        .name = "ISO-8859-11",
2963
        .char_width = pm_encoding_single_char_width,
2964
        .alnum_char = pm_encoding_iso_8859_11_alnum_char,
2965
        .alpha_char = pm_encoding_iso_8859_11_alpha_char,
2966
        .isupper_char = pm_encoding_iso_8859_11_isupper_char,
2967
        .multibyte = false
2968
    },
2969
    [PM_ENCODING_ISO_8859_13] = {
2970
        .name = "ISO-8859-13",
2971
        .char_width = pm_encoding_single_char_width,
2972
        .alnum_char = pm_encoding_iso_8859_13_alnum_char,
2973
        .alpha_char = pm_encoding_iso_8859_13_alpha_char,
2974
        .isupper_char = pm_encoding_iso_8859_13_isupper_char,
2975
        .multibyte = false
2976
    },
2977
    [PM_ENCODING_ISO_8859_14] = {
2978
        .name = "ISO-8859-14",
2979
        .char_width = pm_encoding_single_char_width,
2980
        .alnum_char = pm_encoding_iso_8859_14_alnum_char,
2981
        .alpha_char = pm_encoding_iso_8859_14_alpha_char,
2982
        .isupper_char = pm_encoding_iso_8859_14_isupper_char,
2983
        .multibyte = false
2984
    },
2985
    [PM_ENCODING_ISO_8859_15] = {
2986
        .name = "ISO-8859-15",
2987
        .char_width = pm_encoding_single_char_width,
2988
        .alnum_char = pm_encoding_iso_8859_15_alnum_char,
2989
        .alpha_char = pm_encoding_iso_8859_15_alpha_char,
2990
        .isupper_char = pm_encoding_iso_8859_15_isupper_char,
2991
        .multibyte = false
2992
    },
2993
    [PM_ENCODING_ISO_8859_16] = {
2994
        .name = "ISO-8859-16",
2995
        .char_width = pm_encoding_single_char_width,
2996
        .alnum_char = pm_encoding_iso_8859_16_alnum_char,
2997
        .alpha_char = pm_encoding_iso_8859_16_alpha_char,
2998
        .isupper_char = pm_encoding_iso_8859_16_isupper_char,
2999
        .multibyte = false
3000
    },
3001
    [PM_ENCODING_KOI8_R] = {
3002
        .name = "KOI8-R",
3003
        .char_width = pm_encoding_single_char_width,
3004
        .alnum_char = pm_encoding_koi8_r_alnum_char,
3005
        .alpha_char = pm_encoding_koi8_r_alpha_char,
3006
        .isupper_char = pm_encoding_koi8_r_isupper_char,
3007
        .multibyte = false
3008
    },
3009
    [PM_ENCODING_KOI8_U] = {
3010
        .name = "KOI8-U",
3011
        .char_width = pm_encoding_single_char_width,
3012
        .alnum_char = pm_encoding_koi8_u_alnum_char,
3013
        .alpha_char = pm_encoding_koi8_u_alpha_char,
3014
        .isupper_char = pm_encoding_koi8_u_isupper_char,
3015
        .multibyte = false
3016
    },
3017
    [PM_ENCODING_MAC_CENT_EURO] = {
3018
        .name = "macCentEuro",
3019
        .char_width = pm_encoding_single_char_width,
3020
        .alnum_char = pm_encoding_mac_cent_euro_alnum_char,
3021
        .alpha_char = pm_encoding_mac_cent_euro_alpha_char,
3022
        .isupper_char = pm_encoding_mac_cent_euro_isupper_char,
3023
        .multibyte = false
3024
    },
3025
    [PM_ENCODING_MAC_CROATIAN] = {
3026
        .name = "macCroatian",
3027
        .char_width = pm_encoding_single_char_width,
3028
        .alnum_char = pm_encoding_mac_croatian_alnum_char,
3029
        .alpha_char = pm_encoding_mac_croatian_alpha_char,
3030
        .isupper_char = pm_encoding_mac_croatian_isupper_char,
3031
        .multibyte = false
3032
    },
3033
    [PM_ENCODING_MAC_CYRILLIC] = {
3034
        .name = "macCyrillic",
3035
        .char_width = pm_encoding_single_char_width,
3036
        .alnum_char = pm_encoding_mac_cyrillic_alnum_char,
3037
        .alpha_char = pm_encoding_mac_cyrillic_alpha_char,
3038
        .isupper_char = pm_encoding_mac_cyrillic_isupper_char,
3039
        .multibyte = false
3040
    },
3041
    [PM_ENCODING_MAC_GREEK] = {
3042
        .name = "macGreek",
3043
        .char_width = pm_encoding_single_char_width,
3044
        .alnum_char = pm_encoding_mac_greek_alnum_char,
3045
        .alpha_char = pm_encoding_mac_greek_alpha_char,
3046
        .isupper_char = pm_encoding_mac_greek_isupper_char,
3047
        .multibyte = false
3048
    },
3049
    [PM_ENCODING_MAC_ICELAND] = {
3050
        .name = "macIceland",
3051
        .char_width = pm_encoding_single_char_width,
3052
        .alnum_char = pm_encoding_mac_iceland_alnum_char,
3053
        .alpha_char = pm_encoding_mac_iceland_alpha_char,
3054
        .isupper_char = pm_encoding_mac_iceland_isupper_char,
3055
        .multibyte = false
3056
    },
3057
    [PM_ENCODING_MAC_JAPANESE] = {
3058
        .name = "MacJapanese",
3059
        .char_width = pm_encoding_shift_jis_char_width,
3060
        .alnum_char = pm_encoding_shift_jis_alnum_char,
3061
        .alpha_char = pm_encoding_shift_jis_alpha_char,
3062
        .isupper_char = pm_encoding_shift_jis_isupper_char,
3063
        .multibyte = true
3064
    },
3065
    [PM_ENCODING_MAC_ROMAN] = {
3066
        .name = "macRoman",
3067
        .char_width = pm_encoding_single_char_width,
3068
        .alnum_char = pm_encoding_mac_roman_alnum_char,
3069
        .alpha_char = pm_encoding_mac_roman_alpha_char,
3070
        .isupper_char = pm_encoding_mac_roman_isupper_char,
3071
        .multibyte = false
3072
    },
3073
    [PM_ENCODING_MAC_ROMANIA] = {
3074
        .name = "macRomania",
3075
        .char_width = pm_encoding_single_char_width,
3076
        .alnum_char = pm_encoding_mac_romania_alnum_char,
3077
        .alpha_char = pm_encoding_mac_romania_alpha_char,
3078
        .isupper_char = pm_encoding_mac_romania_isupper_char,
3079
        .multibyte = false
3080
    },
3081
    [PM_ENCODING_MAC_THAI] = {
3082
        .name = "macThai",
3083
        .char_width = pm_encoding_single_char_width,
3084
        .alnum_char = pm_encoding_mac_thai_alnum_char,
3085
        .alpha_char = pm_encoding_mac_thai_alpha_char,
3086
        .isupper_char = pm_encoding_mac_thai_isupper_char,
3087
        .multibyte = false
3088
    },
3089
    [PM_ENCODING_MAC_TURKISH] = {
3090
        .name = "macTurkish",
3091
        .char_width = pm_encoding_single_char_width,
3092
        .alnum_char = pm_encoding_mac_turkish_alnum_char,
3093
        .alpha_char = pm_encoding_mac_turkish_alpha_char,
3094
        .isupper_char = pm_encoding_mac_turkish_isupper_char,
3095
        .multibyte = false
3096
    },
3097
    [PM_ENCODING_MAC_UKRAINE] = {
3098
        .name = "macUkraine",
3099
        .char_width = pm_encoding_single_char_width,
3100
        .alnum_char = pm_encoding_mac_ukraine_alnum_char,
3101
        .alpha_char = pm_encoding_mac_ukraine_alpha_char,
3102
        .isupper_char = pm_encoding_mac_ukraine_isupper_char,
3103
        .multibyte = false
3104
    },
3105
    [PM_ENCODING_SHIFT_JIS] = {
3106
        .name = "Shift_JIS",
3107
        .char_width = pm_encoding_shift_jis_char_width,
3108
        .alnum_char = pm_encoding_shift_jis_alnum_char,
3109
        .alpha_char = pm_encoding_shift_jis_alpha_char,
3110
        .isupper_char = pm_encoding_shift_jis_isupper_char,
3111
        .multibyte = true
3112
    },
3113
    [PM_ENCODING_SJIS_DOCOMO] = {
3114
        .name = "SJIS-DoCoMo",
3115
        .char_width = pm_encoding_shift_jis_char_width,
3116
        .alnum_char = pm_encoding_shift_jis_alnum_char,
3117
        .alpha_char = pm_encoding_shift_jis_alpha_char,
3118
        .isupper_char = pm_encoding_shift_jis_isupper_char,
3119
        .multibyte = true
3120
    },
3121
    [PM_ENCODING_SJIS_KDDI] = {
3122
        .name = "SJIS-KDDI",
3123
        .char_width = pm_encoding_shift_jis_char_width,
3124
        .alnum_char = pm_encoding_shift_jis_alnum_char,
3125
        .alpha_char = pm_encoding_shift_jis_alpha_char,
3126
        .isupper_char = pm_encoding_shift_jis_isupper_char,
3127
        .multibyte = true
3128
    },
3129
    [PM_ENCODING_SJIS_SOFTBANK] = {
3130
        .name = "SJIS-SoftBank",
3131
        .char_width = pm_encoding_shift_jis_char_width,
3132
        .alnum_char = pm_encoding_shift_jis_alnum_char,
3133
        .alpha_char = pm_encoding_shift_jis_alpha_char,
3134
        .isupper_char = pm_encoding_shift_jis_isupper_char,
3135
        .multibyte = true
3136
    },
3137
    [PM_ENCODING_STATELESS_ISO_2022_JP] = {
3138
        .name = "stateless-ISO-2022-JP",
3139
        .char_width = pm_encoding_emacs_mule_char_width,
3140
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
3141
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
3142
        .isupper_char = pm_encoding_ascii_isupper_char_7bit,
3143
        .multibyte = true
3144
    },
3145
    [PM_ENCODING_STATELESS_ISO_2022_JP_KDDI] = {
3146
        .name = "stateless-ISO-2022-JP-KDDI",
3147
        .char_width = pm_encoding_emacs_mule_char_width,
3148
        .alnum_char = pm_encoding_ascii_alnum_char_7bit,
3149
        .alpha_char = pm_encoding_ascii_alpha_char_7bit,
3150
        .isupper_char = pm_encoding_ascii_isupper_char_7bit,
3151
        .multibyte = true
3152
    },
3153
    [PM_ENCODING_TIS_620] = {
3154
        .name = "TIS-620",
3155
        .char_width = pm_encoding_single_char_width,
3156
        .alnum_char = pm_encoding_tis_620_alnum_char,
3157
        .alpha_char = pm_encoding_tis_620_alpha_char,
3158
        .isupper_char = pm_encoding_tis_620_isupper_char,
3159
        .multibyte = false
3160
    },
3161
    [PM_ENCODING_UTF8_MAC] = {
3162
        .name = "UTF8-MAC",
3163
        .char_width = pm_encoding_utf_8_char_width,
3164
        .alnum_char = pm_encoding_utf_8_alnum_char,
3165
        .alpha_char = pm_encoding_utf_8_alpha_char,
3166
        .isupper_char = pm_encoding_utf_8_isupper_char,
3167
        .multibyte = true
3168
    },
3169
    [PM_ENCODING_UTF8_DOCOMO] = {
3170
        .name = "UTF8-DoCoMo",
3171
        .char_width = pm_encoding_utf_8_char_width,
3172
        .alnum_char = pm_encoding_utf_8_alnum_char,
3173
        .alpha_char = pm_encoding_utf_8_alpha_char,
3174
        .isupper_char = pm_encoding_utf_8_isupper_char,
3175
        .multibyte = true
3176
    },
3177
    [PM_ENCODING_UTF8_KDDI] = {
3178
        .name = "UTF8-KDDI",
3179
        .char_width = pm_encoding_utf_8_char_width,
3180
        .alnum_char = pm_encoding_utf_8_alnum_char,
3181
        .alpha_char = pm_encoding_utf_8_alpha_char,
3182
        .isupper_char = pm_encoding_utf_8_isupper_char,
3183
        .multibyte = true
3184
    },
3185
    [PM_ENCODING_UTF8_SOFTBANK] = {
3186
        .name = "UTF8-SoftBank",
3187
        .char_width = pm_encoding_utf_8_char_width,
3188
        .alnum_char = pm_encoding_utf_8_alnum_char,
3189
        .alpha_char = pm_encoding_utf_8_alpha_char,
3190
        .isupper_char = pm_encoding_utf_8_isupper_char,
3191
        .multibyte = true
3192
    },
3193
    [PM_ENCODING_WINDOWS_1250] = {
3194
        .name = "Windows-1250",
3195
        .char_width = pm_encoding_single_char_width,
3196
        .alnum_char = pm_encoding_windows_1250_alnum_char,
3197
        .alpha_char = pm_encoding_windows_1250_alpha_char,
3198
        .isupper_char = pm_encoding_windows_1250_isupper_char,
3199
        .multibyte = false
3200
    },
3201
    [PM_ENCODING_WINDOWS_1251] = {
3202
        .name = "Windows-1251",
3203
        .char_width = pm_encoding_single_char_width,
3204
        .alnum_char = pm_encoding_windows_1251_alnum_char,
3205
        .alpha_char = pm_encoding_windows_1251_alpha_char,
3206
        .isupper_char = pm_encoding_windows_1251_isupper_char,
3207
        .multibyte = false
3208
    },
3209
    [PM_ENCODING_WINDOWS_1252] = {
3210
        .name = "Windows-1252",
3211
        .char_width = pm_encoding_single_char_width,
3212
        .alnum_char = pm_encoding_windows_1252_alnum_char,
3213
        .alpha_char = pm_encoding_windows_1252_alpha_char,
3214
        .isupper_char = pm_encoding_windows_1252_isupper_char,
3215
        .multibyte = false
3216
    },
3217
    [PM_ENCODING_WINDOWS_1253] = {
3218
        .name = "Windows-1253",
3219
        .char_width = pm_encoding_single_char_width,
3220
        .alnum_char = pm_encoding_windows_1253_alnum_char,
3221
        .alpha_char = pm_encoding_windows_1253_alpha_char,
3222
        .isupper_char = pm_encoding_windows_1253_isupper_char,
3223
        .multibyte = false
3224
    },
3225
    [PM_ENCODING_WINDOWS_1254] = {
3226
        .name = "Windows-1254",
3227
        .char_width = pm_encoding_single_char_width,
3228
        .alnum_char = pm_encoding_windows_1254_alnum_char,
3229
        .alpha_char = pm_encoding_windows_1254_alpha_char,
3230
        .isupper_char = pm_encoding_windows_1254_isupper_char,
3231
        .multibyte = false
3232
    },
3233
    [PM_ENCODING_WINDOWS_1255] = {
3234
        .name = "Windows-1255",
3235
        .char_width = pm_encoding_single_char_width,
3236
        .alnum_char = pm_encoding_windows_1255_alnum_char,
3237
        .alpha_char = pm_encoding_windows_1255_alpha_char,
3238
        .isupper_char = pm_encoding_windows_1255_isupper_char,
3239
        .multibyte = false
3240
    },
3241
    [PM_ENCODING_WINDOWS_1256] = {
3242
        .name = "Windows-1256",
3243
        .char_width = pm_encoding_single_char_width,
3244
        .alnum_char = pm_encoding_windows_1256_alnum_char,
3245
        .alpha_char = pm_encoding_windows_1256_alpha_char,
3246
        .isupper_char = pm_encoding_windows_1256_isupper_char,
3247
        .multibyte = false
3248
    },
3249
    [PM_ENCODING_WINDOWS_1257] = {
3250
        .name = "Windows-1257",
3251
        .char_width = pm_encoding_single_char_width,
3252
        .alnum_char = pm_encoding_windows_1257_alnum_char,
3253
        .alpha_char = pm_encoding_windows_1257_alpha_char,
3254
        .isupper_char = pm_encoding_windows_1257_isupper_char,
3255
        .multibyte = false
3256
    },
3257
    [PM_ENCODING_WINDOWS_1258] = {
3258
        .name = "Windows-1258",
3259
        .char_width = pm_encoding_single_char_width,
3260
        .alnum_char = pm_encoding_windows_1258_alnum_char,
3261
        .alpha_char = pm_encoding_windows_1258_alpha_char,
3262
        .isupper_char = pm_encoding_windows_1258_isupper_char,
3263
        .multibyte = false
3264
    },
3265
    [PM_ENCODING_WINDOWS_874] = {
3266
        .name = "Windows-874",
3267
        .char_width = pm_encoding_single_char_width,
3268
        .alnum_char = pm_encoding_windows_874_alnum_char,
3269
        .alpha_char = pm_encoding_windows_874_alpha_char,
3270
        .isupper_char = pm_encoding_windows_874_isupper_char,
3271
        .multibyte = false
3272
    }
3273
#endif
3274
};
3275
3276
/**
3277
 * Parse the given name of an encoding and return a pointer to the corresponding
3278
 * encoding struct if one can be found, otherwise return NULL.
3279
 */
3280
const pm_encoding_t *
3281
2.73k
pm_encoding_find(const uint8_t *start, const uint8_t *end) {
3282
2.73k
    size_t width = (size_t) (end - start);
3283
3284
    // First, we're going to check for UTF-8. This is the most common encoding.
3285
    // UTF-8 can contain extra information at the end about the platform it is
3286
    // encoded on, such as UTF-8-MAC or UTF-8-UNIX. We'll ignore those suffixes.
3287
2.73k
    if ((start + 5 <= end) && 
(pm_strncasecmp(start, (const uint8_t *) "UTF-8", 5) == 0)2.31k
) {
  Branch (3287:9): [True: 2.31k, False: 416]
  Branch (3287:31): [True: 19, False: 2.29k]
3288
19
#ifndef PRISM_ENCODING_EXCLUDE_FULL
3289
        // We need to explicitly handle UTF-8-HFS, as that one needs to switch
3290
        // over to being UTF8-MAC.
3291
19
        if (width == 9 && 
(pm_strncasecmp(start + 5, (const uint8_t *) "-HFS", 4) == 0)10
) {
  Branch (3291:13): [True: 10, False: 9]
  Branch (3291:27): [True: 4, False: 6]
3292
4
            return &pm_encodings[PM_ENCODING_UTF8_MAC];
3293
4
        }
3294
15
#endif
3295
3296
        // Otherwise we'll return the default UTF-8 encoding.
3297
15
        return PM_ENCODING_UTF_8_ENTRY;
3298
19
    }
3299
3300
    // Next, we're going to loop through each of the encodings that we handle
3301
    // explicitly. If we found one that we understand, we'll use that value.
3302
24.6k
#define ENCODING1(name, encoding) if (width == sizeof(name) - 1 && 
pm_strncasecmp(start, (const uint8_t *) name, width) == 07.11k
)
return &pm_encodings[encoding]2.04k
;
  Branch (3302:39): [True: 16, False: 40]
  Branch (3302:68): [True: 4, False: 12]
  Branch (3302:39): [True: 30, False: 22]
  Branch (3302:68): [True: 27, False: 3]
  Branch (3302:39): [True: 3, False: 22]
  Branch (3302:68): [True: 0, False: 3]
  Branch (3302:39): [True: 12, False: 45]
  Branch (3302:68): [True: 7, False: 5]
  Branch (3302:39): [True: 29, False: 21]
  Branch (3302:68): [True: 26, False: 3]
  Branch (3302:39): [True: 3, False: 21]
  Branch (3302:68): [True: 0, False: 3]
  Branch (3302:39): [True: 9, False: 430]
  Branch (3302:68): [True: 1, False: 8]
  Branch (3302:39): [True: 323, False: 115]
  Branch (3302:68): [True: 305, False: 18]
  Branch (3302:39): [True: 61, False: 72]
  Branch (3302:68): [True: 0, False: 61]
  Branch (3302:39): [True: 61, False: 72]
  Branch (3302:68): [True: 0, False: 61]
  Branch (3302:39): [True: 61, False: 72]
  Branch (3302:68): [True: 0, False: 61]
  Branch (3302:39): [True: 61, False: 72]
  Branch (3302:68): [True: 0, False: 61]
  Branch (3302:39): [True: 61, False: 72]
  Branch (3302:68): [True: 14, False: 47]
  Branch (3302:39): [True: 47, False: 72]
  Branch (3302:68): [True: 11, False: 36]
  Branch (3302:39): [True: 36, False: 72]
  Branch (3302:68): [True: 7, False: 29]
  Branch (3302:39): [True: 29, False: 72]
  Branch (3302:68): [True: 1, False: 28]
  Branch (3302:39): [True: 28, False: 72]
  Branch (3302:68): [True: 4, False: 24]
  Branch (3302:39): [True: 24, False: 72]
  Branch (3302:68): [True: 1, False: 23]
  Branch (3302:39): [True: 23, False: 72]
  Branch (3302:68): [True: 1, False: 22]
  Branch (3302:39): [True: 22, False: 72]
  Branch (3302:68): [True: 1, False: 21]
  Branch (3302:39): [True: 21, False: 72]
  Branch (3302:68): [True: 0, False: 21]
  Branch (3302:39): [True: 21, False: 72]
  Branch (3302:68): [True: 0, False: 21]
  Branch (3302:39): [True: 21, False: 72]
  Branch (3302:68): [True: 2, False: 19]
  Branch (3302:39): [True: 19, False: 72]
  Branch (3302:68): [True: 0, False: 19]
  Branch (3302:39): [True: 19, False: 72]
  Branch (3302:68): [True: 1, False: 18]
  Branch (3302:39): [True: 18, False: 72]
  Branch (3302:68): [True: 1, False: 17]
  Branch (3302:39): [True: 17, False: 72]
  Branch (3302:68): [True: 0, False: 17]
  Branch (3302:39): [True: 17, False: 72]
  Branch (3302:68): [True: 14, False: 3]
  Branch (3302:39): [True: 3, False: 72]
  Branch (3302:68): [True: 0, False: 3]
  Branch (3302:39): [True: 3, False: 72]
  Branch (3302:68): [True: 0, False: 3]
  Branch (3302:39): [True: 18, False: 57]
  Branch (3302:68): [True: 1, False: 17]
  Branch (3302:39): [True: 17, False: 57]
  Branch (3302:68): [True: 0, False: 17]
  Branch (3302:39): [True: 17, False: 57]
  Branch (3302:68): [True: 0, False: 17]
  Branch (3302:39): [True: 17, False: 57]
  Branch (3302:68): [True: 0, False: 17]
  Branch (3302:39): [True: 17, False: 57]
  Branch (3302:68): [True: 0, False: 17]
  Branch (3302:39): [True: 17, False: 57]
  Branch (3302:68): [True: 0, False: 17]
  Branch (3302:39): [True: 17, False: 57]
  Branch (3302:68): [True: 0, False: 17]
  Branch (3302:39): [True: 17, False: 57]
  Branch (3302:68): [True: 0, False: 17]
  Branch (3302:39): [True: 17, False: 57]
  Branch (3302:68): [True: 0, False: 17]
  Branch (3302:39): [True: 8, False: 66]
  Branch (3302:68): [True: 0, False: 8]
  Branch (3302:39): [True: 9, False: 44]
  Branch (3302:68): [True: 6, False: 3]
  Branch (3302:39): [True: 116, False: 213]
  Branch (3302:68): [True: 101, False: 15]
  Branch (3302:39): [True: 176, False: 52]
  Branch (3302:68): [True: 75, False: 101]
  Branch (3302:39): [True: 101, False: 52]
  Branch (3302:68): [True: 92, False: 9]
  Branch (3302:39): [True: 19, False: 42]
  Branch (3302:68): [True: 14, False: 5]
  Branch (3302:39): [True: 5, False: 42]
  Branch (3302:68): [True: 0, False: 5]
  Branch (3302:39): [True: 237, False: 326]
  Branch (3302:68): [True: 18, False: 219]
  Branch (3302:39): [True: 219, False: 326]
  Branch (3302:68): [True: 8, False: 211]
  Branch (3302:39): [True: 211, False: 326]
  Branch (3302:68): [True: 13, False: 198]
  Branch (3302:39): [True: 198, False: 326]
  Branch (3302:68): [True: 19, False: 179]
  Branch (3302:39): [True: 179, False: 326]
  Branch (3302:68): [True: 3, False: 176]
  Branch (3302:39): [True: 176, False: 326]
  Branch (3302:68): [True: 11, False: 165]
  Branch (3302:39): [True: 165, False: 326]
  Branch (3302:68): [True: 8, False: 157]
  Branch (3302:39): [True: 157, False: 326]
  Branch (3302:68): [True: 53, False: 104]
  Branch (3302:39): [True: 104, False: 326]
  Branch (3302:68): [True: 6, False: 98]
  Branch (3302:39): [True: 98, False: 326]
  Branch (3302:68): [True: 26, False: 72]
  Branch (3302:39): [True: 72, False: 326]
  Branch (3302:68): [True: 8, False: 64]
  Branch (3302:39): [True: 64, False: 326]
  Branch (3302:68): [True: 7, False: 57]
  Branch (3302:39): [True: 57, False: 326]
  Branch (3302:68): [True: 7, False: 50]
  Branch (3302:39): [True: 50, False: 326]
  Branch (3302:68): [True: 7, False: 43]
  Branch (3302:39): [True: 43, False: 326]
  Branch (3302:68): [True: 13, False: 30]
  Branch (3302:39): [True: 30, False: 326]
  Branch (3302:68): [True: 10, False: 20]
  Branch (3302:39): [True: 22, False: 7]
  Branch (3302:68): [True: 11, False: 11]
  Branch (3302:39): [True: 11, False: 7]
  Branch (3302:68): [True: 8, False: 3]
  Branch (3302:39): [True: 39, False: 111]
  Branch (3302:68): [True: 12, False: 27]
  Branch (3302:39): [True: 27, False: 111]
  Branch (3302:68): [True: 9, False: 18]
  Branch (3302:39): [True: 18, False: 111]
  Branch (3302:68): [True: 15, False: 3]
  Branch (3302:39): [True: 26, False: 88]
  Branch (3302:68): [True: 14, False: 12]
  Branch (3302:39): [True: 62, False: 38]
  Branch (3302:68): [True: 33, False: 29]
  Branch (3302:39): [True: 3, False: 64]
  Branch (3302:68): [True: 0, False: 3]
  Branch (3302:39): [True: 12, False: 55]
  Branch (3302:68): [True: 0, False: 12]
  Branch (3302:39): [True: 12, False: 55]
  Branch (3302:68): [True: 7, False: 5]
  Branch (3302:39): [True: 29, False: 31]
  Branch (3302:68): [True: 6, False: 23]
  Branch (3302:39): [True: 17, False: 37]
  Branch (3302:68): [True: 13, False: 4]
  Branch (3302:39): [True: 23, False: 18]
  Branch (3302:68): [True: 10, False: 13]
  Branch (3302:39): [True: 13, False: 18]
  Branch (3302:68): [True: 8, False: 5]
  Branch (3302:39): [True: 3, False: 7]
  Branch (3302:68): [True: 0, False: 3]
  Branch (3302:39): [True: 133, False: 161]
  Branch (3302:68): [True: 128, False: 5]
  Branch (3302:39): [True: 67, False: 99]
  Branch (3302:68): [True: 64, False: 3]
  Branch (3302:39): [True: 4, False: 98]
  Branch (3302:68): [True: 0, False: 4]
  Branch (3302:39): [True: 3, False: 99]
  Branch (3302:68): [True: 0, False: 3]
  Branch (3302:39): [True: 6, False: 96]
  Branch (3302:68): [True: 2, False: 4]
  Branch (3302:39): [True: 5, False: 95]
  Branch (3302:68): [True: 1, False: 4]
  Branch (3302:39): [True: 75, False: 24]
  Branch (3302:68): [True: 72, False: 3]
  Branch (3302:39): [True: 26, False: 9]
  Branch (3302:68): [True: 21, False: 5]
  Branch (3302:39): [True: 184, False: 92]
  Branch (3302:68): [True: 125, False: 59]
  Branch (3302:39): [True: 3, False: 148]
  Branch (3302:68): [True: 0, False: 3]
  Branch (3302:39): [True: 3, False: 148]
  Branch (3302:68): [True: 0, False: 3]
  Branch (3302:39): [True: 27, False: 124]
  Branch (3302:68): [True: 20, False: 7]
  Branch (3302:39): [True: 10, False: 135]
  Branch (3302:68): [True: 0, False: 10]
  Branch (3302:39): [True: 10, False: 135]
  Branch (3302:68): [True: 5, False: 5]
  Branch (3302:39): [True: 115, False: 25]
  Branch (3302:68): [True: 11, False: 104]
  Branch (3302:39): [True: 104, False: 25]
  Branch (3302:68): [True: 14, False: 90]
  Branch (3302:39): [True: 90, False: 25]
  Branch (3302:68): [True: 19, False: 71]
  Branch (3302:39): [True: 71, False: 25]
  Branch (3302:68): [True: 17, False: 54]
  Branch (3302:39): [True: 54, False: 25]
  Branch (3302:68): [True: 10, False: 44]
  Branch (3302:39): [True: 44, False: 25]
  Branch (3302:68): [True: 8, False: 36]
  Branch (3302:39): [True: 36, False: 25]
  Branch (3302:68): [True: 12, False: 24]
  Branch (3302:39): [True: 24, False: 25]
  Branch (3302:68): [True: 10, False: 14]
  Branch (3302:39): [True: 14, False: 25]
  Branch (3302:68): [True: 10, False: 4]
  Branch (3302:39): [True: 3, False: 3]
  Branch (3302:68): [True: 0, False: 3]
  Branch (3302:39): [True: 3, False: 21]
  Branch (3302:68): [True: 0, False: 3]
  Branch (3302:39): [True: 3, False: 21]
  Branch (3302:68): [True: 0, False: 3]
  Branch (3302:39): [True: 61, False: 377]
  Branch (3302:68): [True: 0, False: 61]
  Branch (3302:39): [True: 5, False: 433]
  Branch (3302:68): [True: 0, False: 5]
  Branch (3302:39): [True: 145, False: 54]
  Branch (3302:68): [True: 96, False: 49]
  Branch (3302:39): [True: 7, False: 96]
  Branch (3302:68): [True: 1, False: 6]
  Branch (3302:39): [True: 7, False: 95]
  Branch (3302:68): [True: 4, False: 3]
  Branch (3302:39): [True: 4, False: 94]
  Branch (3302:68): [True: 1, False: 3]
  Branch (3302:39): [True: 3, False: 94]
  Branch (3302:68): [True: 0, False: 3]
  Branch (3302:39): [True: 3, False: 94]
  Branch (3302:68): [True: 0, False: 3]
  Branch (3302:39): [True: 49, False: 48]
  Branch (3302:68): [True: 0, False: 49]
  Branch (3302:39): [True: 6, False: 91]
  Branch (3302:68): [True: 0, False: 6]
  Branch (3302:39): [True: 49, False: 48]
  Branch (3302:68): [True: 0, False: 49]
  Branch (3302:39): [True: 6, False: 91]
  Branch (3302:68): [True: 0, False: 6]
  Branch (3302:39): [True: 49, False: 48]
  Branch (3302:68): [True: 43, False: 6]
  Branch (3302:39): [True: 6, False: 48]
  Branch (3302:68): [True: 1, False: 5]
  Branch (3302:39): [True: 193, False: 153]
  Branch (3302:68): [True: 19, False: 174]
  Branch (3302:39): [True: 13, False: 314]
  Branch (3302:68): [True: 2, False: 11]
  Branch (3302:39): [True: 174, False: 151]
  Branch (3302:68): [True: 12, False: 162]
  Branch (3302:39): [True: 11, False: 302]
  Branch (3302:68): [True: 0, False: 11]
  Branch (3302:39): [True: 162, False: 151]
  Branch (3302:68): [True: 9, False: 153]
  Branch (3302:39): [True: 11, False: 293]
  Branch (3302:68): [True: 0, False: 11]
  Branch (3302:39): [True: 153, False: 151]
  Branch (3302:68): [True: 9, False: 144]
  Branch (3302:39): [True: 11, False: 284]
  Branch (3302:68): [True: 0, False: 11]
  Branch (3302:39): [True: 144, False: 151]
  Branch (3302:68): [True: 11, False: 133]
  Branch (3302:39): [True: 11, False: 273]
  Branch (3302:68): [True: 1, False: 10]
  Branch (3302:39): [True: 133, False: 150]
  Branch (3302:68): [True: 89, False: 44]
  Branch (3302:39): [True: 10, False: 184]
  Branch (3302:68): [True: 1, False: 9]
  Branch (3302:39): [True: 44, False: 149]
  Branch (3302:68): [True: 15, False: 29]
  Branch (3302:39): [True: 9, False: 169]
  Branch (3302:68): [True: 0, False: 9]
  Branch (3302:39): [True: 29, False: 149]
  Branch (3302:68): [True: 7, False: 22]
  Branch (3302:39): [True: 9, False: 162]
  Branch (3302:68): [True: 0, False: 9]
  Branch (3302:39): [True: 22, False: 149]
  Branch (3302:68): [True: 10, False: 12]
  Branch (3302:39): [True: 9, False: 152]
  Branch (3302:68): [True: 0, False: 9]
  Branch (3302:39): [True: 83, False: 78]
  Branch (3302:68): [True: 12, False: 71]
  Branch (3302:39): [True: 12, False: 137]
  Branch (3302:68): [True: 0, False: 12]
  Branch (3302:39): [True: 71, False: 78]
  Branch (3302:68): [True: 11, False: 60]
  Branch (3302:39): [True: 12, False: 126]
  Branch (3302:68): [True: 0, False: 12]
  Branch (3302:39): [True: 60, False: 78]
  Branch (3302:68): [True: 36, False: 24]
  Branch (3302:39): [True: 12, False: 90]
  Branch (3302:68): [True: 3, False: 9]
  Branch (3302:39): [True: 24, False: 75]
  Branch (3302:68): [True: 7, False: 17]
  Branch (3302:39): [True: 9, False: 83]
  Branch (3302:68): [True: 0, False: 9]
  Branch (3302:39): [True: 17, False: 75]
  Branch (3302:68): [True: 6, False: 11]
  Branch (3302:39): [True: 9, False: 77]
  Branch (3302:68): [True: 0, False: 9]
  Branch (3302:39): [True: 11, False: 75]
  Branch (3302:68): [True: 5, False: 6]
  Branch (3302:39): [True: 9, False: 72]
  Branch (3302:68): [True: 0, False: 9]
  Branch (3302:39): [True: 59, False: 92]
  Branch (3302:68): [True: 0, False: 59]
  Branch (3302:39): [True: 3, False: 148]
  Branch (3302:68): [True: 0, False: 3]
3303
4.43k
#define ENCODING2(name1, name2, encoding) ENCODING1(name1, encoding) 
ENCODING14.03k
(name2, encoding)
3304
3305
2.71k
    if (width >= 3) {
  Branch (3305:9): [True: 2.64k, False: 69]
3306
2.64k
        switch (*start) {
  Branch (3306:17): [True: 2.58k, False: 57]
3307
56
            
case 'A': 46
case 'a':
  Branch (3307:13): [True: 46, False: 2.59k]
  Branch (3307:23): [True: 10, False: 2.63k]
3308
56
                ENCODING1("ASCII", PM_ENCODING_US_ASCII);
3309
52
                ENCODING1("ASCII-8BIT", PM_ENCODING_ASCII_8BIT);
3310
25
                ENCODING1("ANSI_X3.4-1968", PM_ENCODING_US_ASCII);
3311
25
                break;
3312
57
            
case 'B': 42
case 'b':
  Branch (3312:13): [True: 42, False: 2.60k]
  Branch (3312:23): [True: 15, False: 2.63k]
3313
57
                ENCODING1("BINARY", PM_ENCODING_ASCII_8BIT);
3314
50
#ifndef PRISM_ENCODING_EXCLUDE_FULL
3315
50
                ENCODING1("Big5", PM_ENCODING_BIG5);
3316
24
                ENCODING2("Big5-HKSCS", "Big5-HKSCS:2008", PM_ENCODING_BIG5_HKSCS);
3317
24
                ENCODING1("Big5-UAO", PM_ENCODING_BIG5_UAO);
3318
24
#endif
3319
24
                break;
3320
439
            
case 'C': 435
case 'c':
  Branch (3320:13): [True: 435, False: 2.21k]
  Branch (3320:23): [True: 4, False: 2.64k]
3321
439
                ENCODING1("CP65001", PM_ENCODING_UTF_8);
3322
438
                ENCODING2("CP932", "csWindows31J", PM_ENCODING_WINDOWS_31J);
3323
438
#ifndef PRISM_ENCODING_EXCLUDE_FULL
3324
438
                ENCODING1("CESU-8", PM_ENCODING_CESU_8);
3325
133
                ENCODING1("CP437", PM_ENCODING_IBM437);
3326
133
                ENCODING1("CP720", PM_ENCODING_IBM720);
3327
133
                ENCODING1("CP737", PM_ENCODING_IBM737);
3328
133
                ENCODING1("CP775", PM_ENCODING_IBM775);
3329
133
                ENCODING1("CP850", PM_ENCODING_CP850);
3330
119
                ENCODING1("CP852", PM_ENCODING_CP852);
3331
108
                ENCODING1("CP855", PM_ENCODING_CP855);
3332
101
                ENCODING1("CP857", PM_ENCODING_IBM857);
3333
100
                ENCODING1("CP860", PM_ENCODING_IBM860);
3334
96
                ENCODING1("CP861", PM_ENCODING_IBM861);
3335
95
                ENCODING1("CP862", PM_ENCODING_IBM862);
3336
94
                ENCODING1("CP864", PM_ENCODING_IBM864);
3337
93
                ENCODING1("CP865", PM_ENCODING_IBM865);
3338
93
                ENCODING1("CP866", PM_ENCODING_IBM866);
3339
93
                ENCODING1("CP869", PM_ENCODING_IBM869);
3340
91
                ENCODING1("CP874", PM_ENCODING_WINDOWS_874);
3341
91
                ENCODING1("CP878", PM_ENCODING_KOI8_R);
3342
90
                ENCODING1("CP863", PM_ENCODING_IBM863);
3343
89
                ENCODING1("CP936", PM_ENCODING_GBK);
3344
89
                ENCODING1("CP949", PM_ENCODING_CP949);
3345
75
                ENCODING1("CP950", PM_ENCODING_CP950);
3346
75
                ENCODING1("CP951", PM_ENCODING_CP951);
3347
75
                ENCODING1("CP1250", PM_ENCODING_WINDOWS_1250);
3348
74
                ENCODING1("CP1251", PM_ENCODING_WINDOWS_1251);
3349
74
                ENCODING1("CP1252", PM_ENCODING_WINDOWS_1252);
3350
74
                ENCODING1("CP1253", PM_ENCODING_WINDOWS_1253);
3351
74
                ENCODING1("CP1254", PM_ENCODING_WINDOWS_1254);
3352
74
                ENCODING1("CP1255", PM_ENCODING_WINDOWS_1255);
3353
74
                ENCODING1("CP1256", PM_ENCODING_WINDOWS_1256);
3354
74
                ENCODING1("CP1257", PM_ENCODING_WINDOWS_1257);
3355
74
                ENCODING1("CP1258", PM_ENCODING_WINDOWS_1258);
3356
74
                ENCODING1("CP51932", PM_ENCODING_CP51932);
3357
74
#endif
3358
74
                break;
3359
199
            
case 'E': 72
case 'e':
  Branch (3359:13): [True: 72, False: 2.57k]
  Branch (3359:23): [True: 127, False: 2.51k]
3360
199
                ENCODING2
(103
"EUC-JP", "eucJP", PM_ENCODING_EUC_JP);
3361
102
#ifndef PRISM_ENCODING_EXCLUDE_FULL
3362
102
                ENCODING2
(98
"eucJP-ms", "euc-jp-ms", PM_ENCODING_EUC_JP_MS);
3363
97
                ENCODING2("EUC-JIS-2004", "EUC-JISX0213", PM_ENCODING_EUC_JIS_2004);
3364
97
                ENCODING2("EUC-KR", "eucKR", PM_ENCODING_EUC_KR);
3365
97
                ENCODING2("EUC-CN", "eucCN", PM_ENCODING_GB2312);
3366
97
                ENCODING2
(54
"EUC-TW", "eucTW", PM_ENCODING_EUC_TW);
3367
53
                ENCODING1("Emacs-Mule", PM_ENCODING_EMACS_MULE);
3368
47
#endif
3369
47
                break;
3370
329
            
case 'G': 326
case 'g':
  Branch (3370:13): [True: 326, False: 2.31k]
  Branch (3370:23): [True: 3, False: 2.64k]
3371
329
#ifndef PRISM_ENCODING_EXCLUDE_FULL
3372
329
                ENCODING1("GBK", PM_ENCODING_GBK);
3373
228
                ENCODING1("GB12345", PM_ENCODING_GB12345);
3374
153
                ENCODING1("GB18030", PM_ENCODING_GB18030);
3375
61
                ENCODING1("GB1988", PM_ENCODING_GB1988);
3376
47
                ENCODING1("GB2312", PM_ENCODING_GB2312);
3377
47
#endif
3378
47
                break;
3379
563
            
case 'I': 545
case 'i':
  Branch (3379:13): [True: 545, False: 2.10k]
  Branch (3379:23): [True: 18, False: 2.62k]
3380
563
#ifndef PRISM_ENCODING_EXCLUDE_FULL
3381
563
                ENCODING1("IBM437", PM_ENCODING_IBM437);
3382
545
                ENCODING1("IBM720", PM_ENCODING_IBM720);
3383
537
                ENCODING1("IBM737", PM_ENCODING_IBM737);
3384
524
                ENCODING1("IBM775", PM_ENCODING_IBM775);
3385
505
                ENCODING1("IBM850", PM_ENCODING_CP850);
3386
502
                ENCODING1("IBM852", PM_ENCODING_IBM852);
3387
491
                ENCODING1("IBM855", PM_ENCODING_IBM855);
3388
483
                ENCODING1("IBM857", PM_ENCODING_IBM857);
3389
430
                ENCODING1("IBM860", PM_ENCODING_IBM860);
3390
424
                ENCODING1("IBM861", PM_ENCODING_IBM861);
3391
398
                ENCODING1("IBM862", PM_ENCODING_IBM862);
3392
390
                ENCODING1("IBM863", PM_ENCODING_IBM863);
3393
383
                ENCODING1("IBM864", PM_ENCODING_IBM864);
3394
376
                ENCODING1("IBM865", PM_ENCODING_IBM865);
3395
369
                ENCODING1("IBM866", PM_ENCODING_IBM866);
3396
356
                ENCODING1("IBM869", PM_ENCODING_IBM869);
3397
346
                ENCODING2
(327
"ISO-8859-1", "ISO8859-1", PM_ENCODING_ISO_8859_1);
3398
325
                ENCODING2
(313
"ISO-8859-2", "ISO8859-2", PM_ENCODING_ISO_8859_2);
3399
313
                ENCODING2
(304
"ISO-8859-3", "ISO8859-3", PM_ENCODING_ISO_8859_3);
3400
304
                ENCODING2
(295
"ISO-8859-4", "ISO8859-4", PM_ENCODING_ISO_8859_4);
3401
295
                ENCODING2
(284
"ISO-8859-5", "ISO8859-5", PM_ENCODING_ISO_8859_5);
3402
283
                ENCODING2
(194
"ISO-8859-6", "ISO8859-6", PM_ENCODING_ISO_8859_6);
3403
193
                ENCODING2
(178
"ISO-8859-7", "ISO8859-7", PM_ENCODING_ISO_8859_7);
3404
178
                ENCODING2
(171
"ISO-8859-8", "ISO8859-8", PM_ENCODING_ISO_8859_8);
3405
171
                ENCODING2
(161
"ISO-8859-9", "ISO8859-9", PM_ENCODING_ISO_8859_9);
3406
161
                ENCODING2
(149
"ISO-8859-10", "ISO8859-10", PM_ENCODING_ISO_8859_10);
3407
149
                ENCODING2
(138
"ISO-8859-11", "ISO8859-11", PM_ENCODING_ISO_8859_11);
3408
138
                ENCODING2
(102
"ISO-8859-13", "ISO8859-13", PM_ENCODING_ISO_8859_13);
3409
99
                ENCODING2
(92
"ISO-8859-14", "ISO8859-14", PM_ENCODING_ISO_8859_14);
3410
92
                ENCODING2
(86
"ISO-8859-15", "ISO8859-15", PM_ENCODING_ISO_8859_15);
3411
86
                ENCODING2
(81
"ISO-8859-16", "ISO8859-16", PM_ENCODING_ISO_8859_16);
3412
81
#endif
3413
81
                break;
3414
29
            
case 'K': 26
case 'k':
  Branch (3414:13): [True: 26, False: 2.61k]
  Branch (3414:23): [True: 3, False: 2.64k]
3415
29
#ifndef PRISM_ENCODING_EXCLUDE_FULL
3416
29
                ENCODING1("KOI8-R", PM_ENCODING_KOI8_R);
3417
18
                ENCODING1("KOI8-U", PM_ENCODING_KOI8_U);
3418
10
#endif
3419
10
                break;
3420
150
            
case 'M': 5
case 'm':
  Branch (3420:13): [True: 5, False: 2.64k]
  Branch (3420:23): [True: 145, False: 2.50k]
3421
150
#ifndef PRISM_ENCODING_EXCLUDE_FULL
3422
150
                ENCODING1("macCentEuro", PM_ENCODING_MAC_CENT_EURO);
3423
138
                ENCODING1("macCroatian", PM_ENCODING_MAC_CROATIAN);
3424
129
                ENCODING1("macCyrillic", PM_ENCODING_MAC_CYRILLIC);
3425
114
                ENCODING1("macGreek", PM_ENCODING_MAC_GREEK);
3426
100
                ENCODING1("macIceland", PM_ENCODING_MAC_ICELAND);
3427
67
                ENCODING1("MacJapanese", PM_ENCODING_MAC_JAPANESE);
3428
67
                ENCODING1("MacJapan", PM_ENCODING_MAC_JAPANESE);
3429
67
                ENCODING1("macRoman", PM_ENCODING_MAC_ROMAN);
3430
60
                ENCODING1("macRomania", PM_ENCODING_MAC_ROMANIA);
3431
54
                ENCODING1("macThai", PM_ENCODING_MAC_THAI);
3432
41
                ENCODING1("macTurkish", PM_ENCODING_MAC_TURKISH);
3433
31
                ENCODING1("macUkraine", PM_ENCODING_MAC_UKRAINE);
3434
23
#endif
3435
23
                break;
3436
10
            
case 'P': 3
case 'p':
  Branch (3436:13): [True: 3, False: 2.64k]
  Branch (3436:23): [True: 7, False: 2.63k]
3437
10
                ENCODING1("PCK", PM_ENCODING_WINDOWS_31J);
3438
10
                break;
3439
294
            
case 'S': 83
case 's':
  Branch (3439:13): [True: 83, False: 2.56k]
  Branch (3439:23): [True: 211, False: 2.43k]
3440
294
                ENCODING1("SJIS", PM_ENCODING_WINDOWS_31J);
3441
166
#ifndef PRISM_ENCODING_EXCLUDE_FULL
3442
166
                ENCODING1("Shift_JIS", PM_ENCODING_SHIFT_JIS);
3443
102
                ENCODING1("SJIS-DoCoMo", PM_ENCODING_SJIS_DOCOMO);
3444
102
                ENCODING1("SJIS-KDDI", PM_ENCODING_SJIS_KDDI);
3445
102
                ENCODING1("SJIS-SoftBank", PM_ENCODING_SJIS_SOFTBANK);
3446
100
                ENCODING1("stateless-ISO-2022-JP", PM_ENCODING_STATELESS_ISO_2022_JP);
3447
99
                ENCODING1("stateless-ISO-2022-JP-KDDI", PM_ENCODING_STATELESS_ISO_2022_JP_KDDI);
3448
27
#endif
3449
27
                break;
3450
35
            
case 'T': 31
case 't':
  Branch (3450:13): [True: 31, False: 2.61k]
  Branch (3450:23): [True: 4, False: 2.64k]
3451
35
#ifndef PRISM_ENCODING_EXCLUDE_FULL
3452
35
                ENCODING1("TIS-620", PM_ENCODING_TIS_620);
3453
14
#endif
3454
14
                break;
3455
276
            
case 'U': 253
case 'u':
  Branch (3455:13): [True: 253, False: 2.39k]
  Branch (3455:23): [True: 23, False: 2.62k]
3456
276
                ENCODING1("US-ASCII", PM_ENCODING_US_ASCII);
3457
151
#ifndef PRISM_ENCODING_EXCLUDE_FULL
3458
151
                ENCODING2("UTF8-MAC", "UTF-8-HFS", PM_ENCODING_UTF8_MAC);
3459
151
                ENCODING1("UTF8-DoCoMo", PM_ENCODING_UTF8_DOCOMO);
3460
151
                ENCODING1("UTF8-KDDI", PM_ENCODING_UTF8_KDDI);
3461
151
                ENCODING1("UTF8-SoftBank", PM_ENCODING_UTF8_SOFTBANK);
3462
131
#endif
3463
131
                break;
3464
145
            
case 'W': 141
case 'w':
  Branch (3464:13): [True: 141, False: 2.50k]
  Branch (3464:23): [True: 4, False: 2.64k]
3465
145
                ENCODING1("Windows-31J", PM_ENCODING_WINDOWS_31J);
3466
145
#ifndef PRISM_ENCODING_EXCLUDE_FULL
3467
145
                ENCODING1("Windows-874", PM_ENCODING_WINDOWS_874);
3468
140
                ENCODING1("Windows-1250", PM_ENCODING_WINDOWS_1250);
3469
129
                ENCODING1("Windows-1251", PM_ENCODING_WINDOWS_1251);
3470
115
                ENCODING1("Windows-1252", PM_ENCODING_WINDOWS_1252);
3471
96
                ENCODING1("Windows-1253", PM_ENCODING_WINDOWS_1253);
3472
79
                ENCODING1("Windows-1254", PM_ENCODING_WINDOWS_1254);
3473
69
                ENCODING1("Windows-1255", PM_ENCODING_WINDOWS_1255);
3474
61
                ENCODING1("Windows-1256", PM_ENCODING_WINDOWS_1256);
3475
49
                ENCODING1("Windows-1257", PM_ENCODING_WINDOWS_1257);
3476
39
                ENCODING1("Windows-1258", PM_ENCODING_WINDOWS_1258);
3477
29
#endif
3478
29
                break;
3479
6
            case '6':
  Branch (3479:13): [True: 6, False: 2.63k]
3480
6
                ENCODING1("646", PM_ENCODING_US_ASCII);
3481
6
                break;
3482
2.64k
        }
3483
2.64k
    }
3484
3485
674
#undef ENCODING2
3486
674
#undef ENCODING1
3487
3488
    // If we didn't match any encodings, return NULL.
3489
674
    return NULL;
3490
2.71k
}