Lines Matching defs:trail

58     UChar c, trail;
93 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) {
99 target[2]=(uint8_t)(trail>>8);
100 target[3]=(uint8_t)trail;
131 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
136 target[2]=(uint8_t)(trail>>8);
137 target[3]=(uint8_t)trail;
153 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
158 target[2]=(uint8_t)(trail>>8);
159 target[3]=(uint8_t)trail;
210 if(U16_IS_TRAIL(trail=*source)) {
215 overflow[2]=(char)(trail>>8);
216 overflow[3]=(char)trail;
224 /* see if the trail surrogate is in the next buffer */
227 /* unmatched trail surrogate */
262 UChar c, trail;
292 * where the byte turned out not to belong to a trail surrogate
319 /* continue collecting bytes for the trail surrogate */
322 /* fall through to error handling for an unmatched trail surrogate */
327 trail=((UChar)p[2]<<8)|p[3];
328 if(U16_IS_TRAIL(trail)) {
332 *target++=trail;
340 cnv->UCharErrorBuffer[0]=trail;
356 * if the trail unit's first byte was in a previous buffer, then
392 U16_IS_TRAIL(trail=((UChar)source[0]<<8)|source[1])
397 *target++=trail;
411 U16_IS_TRAIL(trail=((UChar)source[0]<<8)|source[1])
416 *target++=trail;
430 /* keep c for surrogate handling, trail will be set there */
448 if(U16_IS_TRAIL(trail=((UChar)source[0]<<8)|source[1])) {
456 cnv->UCharErrorBuffer[0]=trail;
465 /* see if the trail surrogate is in the next buffer */
468 /* unmatched trail surrogate */
526 UChar trail;
528 /* get a second UChar and see if it is a trail surrogate */
529 trail=((UChar)*s<<8)|s[1];
530 if(U16_IS_TRAIL(trail)) {
531 c=U16_GET_SUPPLEMENTARY(c, trail);
550 /* unmatched trail surrogate */
657 UChar c, trail;
692 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) {
698 target[2]=(uint8_t)trail;
699 target[3]=(uint8_t)(trail>>8);
730 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
735 target[2]=(uint8_t)trail;
736 target[3]=(uint8_t)(trail>>8);
752 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
757 target[2]=(uint8_t)trail;
758 target[3]=(uint8_t)(trail>>8);
809 if(U16_IS_TRAIL(trail=*source)) {
814 overflow[2]=(char)trail;
815 overflow[3]=(char)(trail>>8);
823 /* see if the trail surrogate is in the next buffer */
826 /* unmatched trail surrogate */
861 UChar c, trail;
891 * where the byte turned out not to belong to a trail surrogate
918 /* continue collecting bytes for the trail surrogate */
921 /* fall through to error handling for an unmatched trail surrogate */
926 trail=((UChar)p[3]<<8)|p[2];
927 if(U16_IS_TRAIL(trail)) {
931 *target++=trail;
939 cnv->UCharErrorBuffer[0]=trail;
955 * if the trail unit's first byte was in a previous buffer, then
991 U16_IS_TRAIL(trail=((UChar)source[1]<<8)|source[0])
996 *target++=trail;
1010 U16_IS_TRAIL(trail=((UChar)source[1]<<8)|source[0])
1015 *target++=trail;
1029 /* keep c for surrogate handling, trail will be set there */
1047 if(U16_IS_TRAIL(trail=((UChar)source[1]<<8)|source[0])) {
1055 cnv->UCharErrorBuffer[0]=trail;
1064 /* see if the trail surrogate is in the next buffer */
1067 /* unmatched trail surrogate */
1125 UChar trail;
1127 /* get a second UChar and see if it is a trail surrogate */
1128 trail=((UChar)s[1]<<8)|*s;
1129 if(U16_IS_TRAIL(trail)) {
1130 c=U16_GET_SUPPLEMENTARY(c, trail);
1149 /* unmatched trail surrogate */