We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd3cd35 commit 0fccd6fCopy full SHA for 0fccd6f
generation/gen-dbcs.js
@@ -126,18 +126,8 @@ async.parallel({
126
eucKr[i] = i;
127
for (var i = 0x8100; i < 0xFF00; i++) {
128
var lead = i >> 8, byte = i & 0xFF, ptr = null, t;
129
- if (lead <= 0xC6) {
130
- t = (26+26+126)*(lead-0x81) + byte;
131
- if (0x41 <= byte && byte <= 0x5A)
132
- ptr = t - 0x41;
133
- else if (0x61 <= byte && byte <= 0x7A)
134
- ptr = t + 26 - 0x61;
135
- else if (0x81 <= byte && byte <= 0xFE)
136
- ptr = t + 26 + 26 - 0x81;
137
- } else {
138
- if (0xA1 <= byte && byte <= 0xFE)
139
- ptr = (26+26+126)*(0xC7-0x81) + (lead-0xC7)*94+(byte-0xA1);
140
- }
+ if (0x41 <= byte && byte <= 0xFE)
+ ptr = (lead-0x81) * 190 + (byte-0x41);
141
if (ptr !== null)
142
eucKr[i] = data.$eucKr[ptr];
143
0 commit comments