Lines Matching refs:b1
92 private static boolean isMalformed2(int b1, int b2) {
93 return (b1 & 0x1e) == 0x0 || (b2 & 0xc0) != 0x80;
98 private static boolean isMalformed3(int b1, int b2, int b3) {
99 return (b1 == (byte)0xe0 && (b2 & 0xe0) == 0x80) ||
125 int b1 = src.get();
126 if ((b1 >> 2) == -2) {
132 if ((b1 >> 1) == -2) {
142 b1 = src.get();
145 ((b1 == (byte)0xe0 && (b2 & 0xe0) == 0x80) ||
148 b1 = src.get() & 0xff;
150 if (b1 > 0xf4 ||
151 (b1 == 0xf0 && (b2 < 0x90 || b2 > 0xbf)) ||
152 (b1 == 0xf4 && (b2 & 0xf0) != 0x80) ||
215 int b1 = sa[sp];
216 if (b1 >= 0) {
220 da[dp++] = (char) b1;
222 } else if ((b1 >> 5) == -2) {
227 if (isMalformed2(b1, b2))
229 da[dp++] = (char) (((b1 << 6) ^ b2)
234 } else if ((b1 >> 4) == -2) {
240 if (isMalformed3(b1, b2, b3))
243 ((b1 << 12) ^
250 } else if ((b1 >> 3) == -2) {
257 int uc = ((b1 << 18) ^
285 int b1 = src.get();
286 if (b1 >= 0) {
290 dst.put((char) b1);
292 } else if ((b1 >> 5) == -2) {
297 if (isMalformed2(b1, b2))
299 dst.put((char) (((b1 << 6) ^ b2)
304 } else if ((b1 >> 4) == -2) {
310 if (isMalformed3(b1, b2, b3))
313 ((b1 << 12) ^
320 } else if ((b1 >> 3) == -2) {
327 int uc = ((b1 << 18) ^
380 int b1 = sa[sp++];
381 if (b1 >= 0) {
383 da[dp++] = (char) b1;
384 } else if ((b1 >> 5) == -2) {
388 if (isMalformed2(b1, b2)) {
394 da[dp++] = (char) (((b1 << 6) ^ b2)^
404 } else if ((b1 >> 4) == -2) {
409 if (isMalformed3(b1, b2, b3)) {
417 da[dp++] = (char)((b1 << 12) ^
430 } else if ((b1 >> 3) == -2) {
436 int uc = ((b1 << 18) ^