Home | History | Annotate | Download | only in charset

Lines Matching defs:LINEAR

1080     /* helper macros for linear values for GB 18030 four-byte sequences */
1087 private static int LINEAR(int x) {
1099 { 0x10000, 0x10FFFF, LINEAR(0x90308130), LINEAR(0xE3329A35) },
1100 { 0x9FA6, 0xD7FF, LINEAR(0x82358F33), LINEAR(0x8336C738) },
1101 { 0x0452, 0x1E3E, LINEAR(0x8130D330), LINEAR(0x8135F436) },
1102 { 0x1E40, 0x200F, LINEAR(0x8135F438), LINEAR(0x8136A531) },
1103 { 0xE865, 0xF92B, LINEAR(0x8336D030), LINEAR(0x84308534) },
1104 { 0x2643, 0x2E80, LINEAR(0x8137A839), LINEAR(0x8138FD38) },
1105 { 0xFA2A, 0xFE2F, LINEAR(0x84309C38), LINEAR(0x84318537) },
1106 { 0x3CE1, 0x4055, LINEAR(0x8231D438), LINEAR(0x8232AF32) },
1107 { 0x361B, 0x3917, LINEAR(0x8230A633), LINEAR(0x8230F237) },
1108 { 0x49B8, 0x4C76, LINEAR(0x8234A131), LINEAR(0x8234E733) },
1109 { 0x4160, 0x4336, LINEAR(0x8232C937), LINEAR(0x8232F837) },
1110 { 0x478E, 0x4946, LINEAR(0x8233E838), LINEAR(0x82349638) },
1111 { 0x44D7, 0x464B, LINEAR(0x8233A339), LINEAR(0x8233C931) },
1112 { 0xFFE6, 0xFFFF, LINEAR(0x8431A234), LINEAR(0x8431A439) } };
1497 /* linear search for the last part */
1545 /* direct access on a linear array */
1571 /* linear search for the last part */
1889 int linear;
1892 linear = LINEAR_18030(toUBytesArray[0], toUBytesArray[1], toUBytesArray[2], toUBytesArray[3]);
1895 if (range[2] <= linear && linear <= range[3]) {
1899 /* add the linear difference between the input and start sequences to the start code point */
1900 linear = range[0] + (linear - range[2]);
1903 cr[0] = toUWriteCodePoint(linear, target, offsets, sourceIndex);
3902 int linear;
3905 /* get the linear value of the first GB 18030 code in this range */
3906 linear = range[2] - LINEAR_18030_BASE;
3909 linear += (cp - range[0]);
3911 bytes[3] = (byte) (0x30 + linear % 10);
3912 linear /= 10;
3913 bytes[2] = (byte) (0x81 + linear % 126);
3914 linear /= 126;
3915 bytes[1] = (byte) (0x30 + linear % 10);
3916 linear /= 10;
3917 bytes[0] = (byte) (0x81 + linear);