Lines Matching defs:ch
441 u_int32_t ch;
451 ch = byte; ch <<= 6; /* 1st byte */
455 ch += byte;
456 ch -= 0x00003080UL;
457 if (ch < 0x0080)
459 ucs_ch = ch;
462 ch = byte; ch <<= 6; /* 1st byte */
466 ch += byte; ch <<= 6;
470 ch += byte;
471 ch -= 0x000E2080UL;
472 if (ch < 0x0800)
474 if (ch >= 0xD800) {
475 if (ch <= 0xDFFF)
477 if (ch == 0xFFFE || ch == 0xFFFF)
480 ucs_ch = ch;
483 ch = byte; ch <<= 6; /* 1st byte */
487 ch += byte; ch <<= 6;
491 ch += byte; ch <<= 6;
495 ch += byte;
496 ch -= 0x03C82080UL + SP_HALF_BASE;
497 ucs_ch = (ch >> SP_HALF_SHIFT) + SP_HIGH_FIRST;
503 ucs_ch = (ch & SP_HALF_MASK) + SP_LOW_FIRST;
625 u_int32_t ch;
641 ch = byte; ch <<= 6; /* 1st byte */
645 ch += byte;
646 ch -= 0x00003080UL;
647 if (ch < 0x0080)
651 ch = byte; ch <<= 6; /* 1st byte */
655 ch += byte; ch <<= 6;
659 ch += byte;
660 ch -= 0x000E2080UL;
661 if (ch < 0x0800)
663 if (ch >= 0xD800) {
664 if (ch <= 0xDFFF)
666 if (ch == 0xFFFE || ch == 0xFFFF)
671 ch = byte; ch <<= 6; /* 1st byte */
675 ch += byte; ch <<= 6;
679 ch += byte; ch <<= 6;
683 ch += byte;
684 ch -= 0x03C82080UL + SP_HALF_BASE;
685 ucs_ch = (ch >> SP_HALF_SHIFT) + SP_HIGH_FIRST;
688 ucs_ch = (ch & SP_HALF_MASK) + SP_LOW_FIRST;