Lines Matching full:linear
321 * ASCII code points can be looked up with a linear array access into stage 3.
347 * ASCII code points can be looked up with a linear array access into stage 3.
365 /* helper macros for linear values for GB 18030 four-byte sequences */
370 #define LINEAR(x) LINEAR_18030(x>>24, (x>>16)&0xff, (x>>8)&0xff, x&0xff)
383 {0x10000, 0x10FFFF, LINEAR(0x90308130), LINEAR(0xE3329A35)},
384 {0x9FA6, 0xD7FF, LINEAR(0x82358F33), LINEAR(0x8336C738)},
385 {0x0452, 0x200F, LINEAR(0x8130D330), LINEAR(0x8136A531)},
386 {0xE865, 0xF92B, LINEAR(0x8336D030), LINEAR(0x84308534)},
387 {0x2643, 0x2E80, LINEAR(0x8137A839), LINEAR(0x8138FD38)},
388 {0xFA2A, 0xFE2F, LINEAR(0x84309C38), LINEAR(0x84318537)},
389 {0x3CE1, 0x4055, LINEAR(0x8231D438), LINEAR(0x8232AF32)},
390 {0x361B, 0x3917, LINEAR(0x8230A633), LINEAR(0x8230F237)},
391 {0x49B8, 0x4C76, LINEAR(0x8234A131), LINEAR(0x8234E733)},
392 {0x4160, 0x4336, LINEAR(0x8232C937), LINEAR(0x8232F837)},
393 {0x478E, 0x4946, LINEAR(0x8233E838), LINEAR(0x82349638)},
394 {0x44D7, 0x464B, LINEAR(0x8233A339), LINEAR(0x8233C931)},
395 {0xFFE6, 0xFFFF, LINEAR(0x8431A234), LINEAR(0x8431A439)}
944 * Definition of LINEAR macros and gb18030Ranges see near the beginning of the file.
990 uint32_t linear;
993 /* get the linear value of the first GB 18030 code in this range */
994 linear=range[2]-LINEAR_18030_BASE;
997 linear+=((uint32_t)cp-range[0]);
1000 bytes[3]=(char)(0x30+linear%10); linear/=10;
1001 bytes[2]=(char)(0x81+linear%126); linear/=126;
1002 bytes[1]=(char)(0x30+linear%10); linear/=10;
1003 bytes[0]=(char)(0x81+linear);
1049 uint32_t linear;
1052 linear=LINEAR_18030(cnv->toUBytes[0], cnv->toUBytes[1], cnv->toUBytes[2], cnv->toUBytes[3]);
1055 if(range[2]<=linear && linear<=range[3]) {
1059 /* add the linear difference between the input and start sequences to the start code point */
1060 linear=range[0]+(linear-range[2]);
1063 ucnv_toUWriteCodePoint(cnv, linear, target, targetLimit, offsets, sourceIndex, pErrorCode);