Lines Matching refs:trail
60 UChar c, trail; in _UTF16BEFromUnicodeWithOffsets() local
95 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { in _UTF16BEFromUnicodeWithOffsets()
101 target[2]=(uint8_t)(trail>>8); in _UTF16BEFromUnicodeWithOffsets()
102 target[3]=(uint8_t)trail; in _UTF16BEFromUnicodeWithOffsets()
133 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) { in _UTF16BEFromUnicodeWithOffsets()
138 target[2]=(uint8_t)(trail>>8); in _UTF16BEFromUnicodeWithOffsets()
139 target[3]=(uint8_t)trail; in _UTF16BEFromUnicodeWithOffsets()
155 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) { in _UTF16BEFromUnicodeWithOffsets()
160 target[2]=(uint8_t)(trail>>8); in _UTF16BEFromUnicodeWithOffsets()
161 target[3]=(uint8_t)trail; in _UTF16BEFromUnicodeWithOffsets()
212 if(U16_IS_TRAIL(trail=*source)) { in _UTF16BEFromUnicodeWithOffsets()
217 overflow[2]=(char)(trail>>8); in _UTF16BEFromUnicodeWithOffsets()
218 overflow[3]=(char)trail; in _UTF16BEFromUnicodeWithOffsets()
264 UChar c, trail; in _UTF16BEToUnicodeWithOffsets() local
329 trail=((UChar)p[2]<<8)|p[3]; in _UTF16BEToUnicodeWithOffsets()
330 if(U16_IS_TRAIL(trail)) { in _UTF16BEToUnicodeWithOffsets()
334 *target++=trail; in _UTF16BEToUnicodeWithOffsets()
342 cnv->UCharErrorBuffer[0]=trail; in _UTF16BEToUnicodeWithOffsets()
394 U16_IS_TRAIL(trail=((UChar)source[0]<<8)|source[1]) in _UTF16BEToUnicodeWithOffsets()
399 *target++=trail; in _UTF16BEToUnicodeWithOffsets()
413 U16_IS_TRAIL(trail=((UChar)source[0]<<8)|source[1]) in _UTF16BEToUnicodeWithOffsets()
418 *target++=trail; in _UTF16BEToUnicodeWithOffsets()
450 if(U16_IS_TRAIL(trail=((UChar)source[0]<<8)|source[1])) { in _UTF16BEToUnicodeWithOffsets()
458 cnv->UCharErrorBuffer[0]=trail; in _UTF16BEToUnicodeWithOffsets()
528 UChar trail; in _UTF16BEGetNextUChar() local
531 trail=((UChar)*s<<8)|s[1]; in _UTF16BEGetNextUChar()
532 if(U16_IS_TRAIL(trail)) { in _UTF16BEGetNextUChar()
533 c=U16_GET_SUPPLEMENTARY(c, trail); in _UTF16BEGetNextUChar()
661 UChar c, trail; in _UTF16LEFromUnicodeWithOffsets() local
696 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) { in _UTF16LEFromUnicodeWithOffsets()
702 target[2]=(uint8_t)trail; in _UTF16LEFromUnicodeWithOffsets()
703 target[3]=(uint8_t)(trail>>8); in _UTF16LEFromUnicodeWithOffsets()
734 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) { in _UTF16LEFromUnicodeWithOffsets()
739 target[2]=(uint8_t)trail; in _UTF16LEFromUnicodeWithOffsets()
740 target[3]=(uint8_t)(trail>>8); in _UTF16LEFromUnicodeWithOffsets()
756 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) { in _UTF16LEFromUnicodeWithOffsets()
761 target[2]=(uint8_t)trail; in _UTF16LEFromUnicodeWithOffsets()
762 target[3]=(uint8_t)(trail>>8); in _UTF16LEFromUnicodeWithOffsets()
813 if(U16_IS_TRAIL(trail=*source)) { in _UTF16LEFromUnicodeWithOffsets()
818 overflow[2]=(char)trail; in _UTF16LEFromUnicodeWithOffsets()
819 overflow[3]=(char)(trail>>8); in _UTF16LEFromUnicodeWithOffsets()
865 UChar c, trail; in _UTF16LEToUnicodeWithOffsets() local
930 trail=((UChar)p[3]<<8)|p[2]; in _UTF16LEToUnicodeWithOffsets()
931 if(U16_IS_TRAIL(trail)) { in _UTF16LEToUnicodeWithOffsets()
935 *target++=trail; in _UTF16LEToUnicodeWithOffsets()
943 cnv->UCharErrorBuffer[0]=trail; in _UTF16LEToUnicodeWithOffsets()
995 U16_IS_TRAIL(trail=((UChar)source[1]<<8)|source[0]) in _UTF16LEToUnicodeWithOffsets()
1000 *target++=trail; in _UTF16LEToUnicodeWithOffsets()
1014 U16_IS_TRAIL(trail=((UChar)source[1]<<8)|source[0]) in _UTF16LEToUnicodeWithOffsets()
1019 *target++=trail; in _UTF16LEToUnicodeWithOffsets()
1051 if(U16_IS_TRAIL(trail=((UChar)source[1]<<8)|source[0])) { in _UTF16LEToUnicodeWithOffsets()
1059 cnv->UCharErrorBuffer[0]=trail; in _UTF16LEToUnicodeWithOffsets()
1129 UChar trail; in _UTF16LEGetNextUChar() local
1132 trail=((UChar)s[1]<<8)|*s; in _UTF16LEGetNextUChar()
1133 if(U16_IS_TRAIL(trail)) { in _UTF16LEGetNextUChar()
1134 c=U16_GET_SUPPLEMENTARY(c, trail); in _UTF16LEGetNextUChar()