Lines Matching refs:ch

53     uint32_t ch, i;  in T_UConverter_toUnicode_UTF32_BE()  local
60ch = args->converter->toUnicodeStatus - 1;/*Stores the previously calculated ch from a previous ca… in T_UConverter_toUnicode_UTF32_BE()
67 ch = 0; in T_UConverter_toUnicode_UTF32_BE()
71 ch = (ch << 8) | (uint8_t)(*mySource); in T_UConverter_toUnicode_UTF32_BE()
77 args->converter->toUnicodeStatus = ch + 1; in T_UConverter_toUnicode_UTF32_BE()
83 if (ch <= MAXIMUM_UTF && !U_IS_SURROGATE(ch)) { in T_UConverter_toUnicode_UTF32_BE()
85 if (ch <= MAXIMUM_UCS2) in T_UConverter_toUnicode_UTF32_BE()
88 *(myTarget++) = (UChar) ch; in T_UConverter_toUnicode_UTF32_BE()
92 *(myTarget++) = U16_LEAD(ch); in T_UConverter_toUnicode_UTF32_BE()
93 ch = U16_TRAIL(ch); in T_UConverter_toUnicode_UTF32_BE()
95 *(myTarget++) = (UChar)ch; in T_UConverter_toUnicode_UTF32_BE()
99 args->converter->UCharErrorBuffer[0] = (UChar) ch; in T_UConverter_toUnicode_UTF32_BE()
133 uint32_t ch, i; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC() local
141ch = args->converter->toUnicodeStatus - 1;/*Stores the previously calculated ch from a previous ca… in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
148 ch = 0; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
152 ch = (ch << 8) | (uint8_t)(*mySource); in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
158 args->converter->toUnicodeStatus = ch + 1; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
164 if (ch <= MAXIMUM_UTF && !U_IS_SURROGATE(ch)) { in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
166 if (ch <= MAXIMUM_UCS2) { in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
168 *(myTarget++) = (UChar) ch; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
173 *(myTarget++) = U16_LEAD(ch); in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
175 ch = U16_TRAIL(ch); in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
178 *(myTarget++) = (UChar)ch; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
183 args->converter->UCharErrorBuffer[0] = (UChar) ch; in T_UConverter_toUnicode_UTF32_BE_OFFSET_LOGIC()
218 UChar32 ch, ch2; in T_UConverter_fromUnicode_UTF32_BE() local
242 ch = args->converter->fromUChar32; in T_UConverter_fromUnicode_UTF32_BE()
248 ch = *(mySource++); in T_UConverter_fromUnicode_UTF32_BE()
250 if (U_IS_SURROGATE(ch)) { in T_UConverter_fromUnicode_UTF32_BE()
251 if (U_IS_LEAD(ch)) { in T_UConverter_fromUnicode_UTF32_BE()
256 ch = ((ch - SURROGATE_HIGH_START) << HALF_SHIFT) + ch2 + SURROGATE_LOW_BASE; in T_UConverter_fromUnicode_UTF32_BE()
262 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_BE()
269 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_BE()
281 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_BE()
288 temp[1] = (uint8_t) (ch >> 16 & 0x1F); in T_UConverter_fromUnicode_UTF32_BE()
289 temp[2] = (uint8_t) (ch >> 8); /* unsigned cast implicitly does (ch & FF) */ in T_UConverter_fromUnicode_UTF32_BE()
290 temp[3] = (uint8_t) (ch); /* unsigned cast implicitly does (ch & FF) */ in T_UConverter_fromUnicode_UTF32_BE()
320 UChar32 ch, ch2; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC() local
346 ch = args->converter->fromUChar32; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
352 ch = *(mySource++); in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
354 if (U_IS_SURROGATE(ch)) { in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
355 if (U_IS_LEAD(ch)) { in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
360 ch = ((ch - SURROGATE_HIGH_START) << HALF_SHIFT) + ch2 + SURROGATE_LOW_BASE; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
366 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
373 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
385 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
392 temp[1] = (uint8_t) (ch >> 16 & 0x1F); in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
393 temp[2] = (uint8_t) (ch >> 8); /* unsigned cast implicitly does (ch & FF) */ in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
394 temp[3] = (uint8_t) (ch); /* unsigned cast implicitly does (ch & FF) */ in T_UConverter_fromUnicode_UTF32_BE_OFFSET_LOGIC()
512 uint32_t ch, i; in T_UConverter_toUnicode_UTF32_LE() local
521 ch = args->converter->toUnicodeStatus - 1; in T_UConverter_toUnicode_UTF32_LE()
529 ch = 0; in T_UConverter_toUnicode_UTF32_LE()
535 ch |= ((uint8_t)(*mySource)) << (i * 8); in T_UConverter_toUnicode_UTF32_LE()
542 args->converter->toUnicodeStatus = ch + 1; in T_UConverter_toUnicode_UTF32_LE()
548 if (ch <= MAXIMUM_UTF && !U_IS_SURROGATE(ch)) { in T_UConverter_toUnicode_UTF32_LE()
550 if (ch <= MAXIMUM_UCS2) { in T_UConverter_toUnicode_UTF32_LE()
552 *(myTarget++) = (UChar) ch; in T_UConverter_toUnicode_UTF32_LE()
556 *(myTarget++) = U16_LEAD(ch); in T_UConverter_toUnicode_UTF32_LE()
557 ch = U16_TRAIL(ch); in T_UConverter_toUnicode_UTF32_LE()
559 *(myTarget++) = (UChar)ch; in T_UConverter_toUnicode_UTF32_LE()
563 args->converter->UCharErrorBuffer[0] = (UChar) ch; in T_UConverter_toUnicode_UTF32_LE()
598 uint32_t ch, i; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC() local
608 ch = args->converter->toUnicodeStatus - 1; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
616 ch = 0; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
622 ch |= ((uint8_t)(*mySource)) << (i * 8); in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
629 args->converter->toUnicodeStatus = ch + 1; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
635 if (ch <= MAXIMUM_UTF && !U_IS_SURROGATE(ch)) in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
638 if (ch <= MAXIMUM_UCS2) in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
641 *(myTarget++) = (UChar) ch; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
646 *(myTarget++) = U16_LEAD(ch); in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
648 ch = U16_TRAIL(ch); in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
651 *(myTarget++) = (UChar)ch; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
657 args->converter->UCharErrorBuffer[0] = (UChar) ch; in T_UConverter_toUnicode_UTF32_LE_OFFSET_LOGIC()
693 UChar32 ch, ch2; in T_UConverter_fromUnicode_UTF32_LE() local
718 ch = args->converter->fromUChar32; in T_UConverter_fromUnicode_UTF32_LE()
725 ch = *(mySource++); in T_UConverter_fromUnicode_UTF32_LE()
727 if (U16_IS_SURROGATE(ch)) { in T_UConverter_fromUnicode_UTF32_LE()
728 if (U16_IS_LEAD(ch)) in T_UConverter_fromUnicode_UTF32_LE()
735 ch = ((ch - SURROGATE_HIGH_START) << HALF_SHIFT) + ch2 + SURROGATE_LOW_BASE; in T_UConverter_fromUnicode_UTF32_LE()
741 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_LE()
748 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_LE()
760 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_LE()
767 temp[2] = (uint8_t) (ch >> 16 & 0x1F); in T_UConverter_fromUnicode_UTF32_LE()
768 temp[1] = (uint8_t) (ch >> 8); /* unsigned cast implicitly does (ch & FF) */ in T_UConverter_fromUnicode_UTF32_LE()
769 temp[0] = (uint8_t) (ch); /* unsigned cast implicitly does (ch & FF) */ in T_UConverter_fromUnicode_UTF32_LE()
803 UChar32 ch, ch2; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC() local
830 ch = args->converter->fromUChar32; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
837 ch = *(mySource++); in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
839 if (U16_IS_SURROGATE(ch)) { in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
840 if (U16_IS_LEAD(ch)) in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
848 ch = ((ch - SURROGATE_HIGH_START) << HALF_SHIFT) + ch2 + SURROGATE_LOW_BASE; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
854 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
861 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
873 args->converter->fromUChar32 = ch; in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
880 temp[2] = (uint8_t) (ch >> 16 & 0x1F); in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
881 temp[1] = (uint8_t) (ch >> 8); /* unsigned cast implicitly does (ch & FF) */ in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()
882 temp[0] = (uint8_t) (ch); /* unsigned cast implicitly does (ch & FF) */ in T_UConverter_fromUnicode_UTF32_LE_OFFSET_LOGIC()