Lines Matching refs:trail

60     UChar c, trail;
95 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) {
101 target[2]=(uint8_t)(trail>>8);
102 target[3]=(uint8_t)trail;
133 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
138 target[2]=(uint8_t)(trail>>8);
139 target[3]=(uint8_t)trail;
155 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
160 target[2]=(uint8_t)(trail>>8);
161 target[3]=(uint8_t)trail;
212 if(U16_IS_TRAIL(trail=*source)) {
217 overflow[2]=(char)(trail>>8);
218 overflow[3]=(char)trail;
226 /* see if the trail surrogate is in the next buffer */
229 /* unmatched trail surrogate */
264 UChar c, trail;
294 * where the byte turned out not to belong to a trail surrogate
321 /* continue collecting bytes for the trail surrogate */
324 /* fall through to error handling for an unmatched trail surrogate */
329 trail=((UChar)p[2]<<8)|p[3];
330 if(U16_IS_TRAIL(trail)) {
334 *target++=trail;
342 cnv->UCharErrorBuffer[0]=trail;
358 * if the trail unit's first byte was in a previous buffer, then
394 U16_IS_TRAIL(trail=((UChar)source[0]<<8)|source[1])
399 *target++=trail;
413 U16_IS_TRAIL(trail=((UChar)source[0]<<8)|source[1])
418 *target++=trail;
432 /* keep c for surrogate handling, trail will be set there */
450 if(U16_IS_TRAIL(trail=((UChar)source[0]<<8)|source[1])) {
458 cnv->UCharErrorBuffer[0]=trail;
467 /* see if the trail surrogate is in the next buffer */
470 /* unmatched trail surrogate */
528 UChar trail;
530 /* get a second UChar and see if it is a trail surrogate */
531 trail=((UChar)*s<<8)|s[1];
532 if(U16_IS_TRAIL(trail)) {
533 c=U16_GET_SUPPLEMENTARY(c, trail);
552 /* unmatched trail surrogate */
661 UChar c, trail;
696 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) {
702 target[2]=(uint8_t)trail;
703 target[3]=(uint8_t)(trail>>8);
734 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
739 target[2]=(uint8_t)trail;
740 target[3]=(uint8_t)(trail>>8);
756 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
761 target[2]=(uint8_t)trail;
762 target[3]=(uint8_t)(trail>>8);
813 if(U16_IS_TRAIL(trail=*source)) {
818 overflow[2]=(char)trail;
819 overflow[3]=(char)(trail>>8);
827 /* see if the trail surrogate is in the next buffer */
830 /* unmatched trail surrogate */
865 UChar c, trail;
895 * where the byte turned out not to belong to a trail surrogate
922 /* continue collecting bytes for the trail surrogate */
925 /* fall through to error handling for an unmatched trail surrogate */
930 trail=((UChar)p[3]<<8)|p[2];
931 if(U16_IS_TRAIL(trail)) {
935 *target++=trail;
943 cnv->UCharErrorBuffer[0]=trail;
959 * if the trail unit's first byte was in a previous buffer, then
995 U16_IS_TRAIL(trail=((UChar)source[1]<<8)|source[0])
1000 *target++=trail;
1014 U16_IS_TRAIL(trail=((UChar)source[1]<<8)|source[0])
1019 *target++=trail;
1033 /* keep c for surrogate handling, trail will be set there */
1051 if(U16_IS_TRAIL(trail=((UChar)source[1]<<8)|source[0])) {
1059 cnv->UCharErrorBuffer[0]=trail;
1068 /* see if the trail surrogate is in the next buffer */
1071 /* unmatched trail surrogate */
1129 UChar trail;
1131 /* get a second UChar and see if it is a trail surrogate */
1132 trail=((UChar)s[1]<<8)|*s;
1133 if(U16_IS_TRAIL(trail)) {
1134 c=U16_GET_SUPPLEMENTARY(c, trail);
1153 /* unmatched trail surrogate */