Lines Matching defs:trail

56     UChar c, trail;
91 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) {
97 target[2]=(uint8_t)(trail>>8);
98 target[3]=(uint8_t)trail;
129 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
134 target[2]=(uint8_t)(trail>>8);
135 target[3]=(uint8_t)trail;
151 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
156 target[2]=(uint8_t)(trail>>8);
157 target[3]=(uint8_t)trail;
208 if(U16_IS_TRAIL(trail=*source)) {
213 overflow[2]=(char)(trail>>8);
214 overflow[3]=(char)trail;
222 /* see if the trail surrogate is in the next buffer */
225 /* unmatched trail surrogate */
260 UChar c, trail;
290 * where the byte turned out not to belong to a trail surrogate
317 /* continue collecting bytes for the trail surrogate */
320 /* fall through to error handling for an unmatched trail surrogate */
325 trail=((UChar)p[2]<<8)|p[3];
326 if(U16_IS_TRAIL(trail)) {
330 *target++=trail;
338 cnv->UCharErrorBuffer[0]=trail;
354 * if the trail unit's first byte was in a previous buffer, then
390 U16_IS_TRAIL(trail=((UChar)source[0]<<8)|source[1])
395 *target++=trail;
409 U16_IS_TRAIL(trail=((UChar)source[0]<<8)|source[1])
414 *target++=trail;
428 /* keep c for surrogate handling, trail will be set there */
446 if(U16_IS_TRAIL(trail=((UChar)source[0]<<8)|source[1])) {
454 cnv->UCharErrorBuffer[0]=trail;
463 /* see if the trail surrogate is in the next buffer */
466 /* unmatched trail surrogate */
524 UChar trail;
526 /* get a second UChar and see if it is a trail surrogate */
527 trail=((UChar)*s<<8)|s[1];
528 if(U16_IS_TRAIL(trail)) {
529 c=U16_GET_SUPPLEMENTARY(c, trail);
548 /* unmatched trail surrogate */
655 UChar c, trail;
690 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) {
696 target[2]=(uint8_t)trail;
697 target[3]=(uint8_t)(trail>>8);
728 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
733 target[2]=(uint8_t)trail;
734 target[3]=(uint8_t)(trail>>8);
750 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
755 target[2]=(uint8_t)trail;
756 target[3]=(uint8_t)(trail>>8);
807 if(U16_IS_TRAIL(trail=*source)) {
812 overflow[2]=(char)trail;
813 overflow[3]=(char)(trail>>8);
821 /* see if the trail surrogate is in the next buffer */
824 /* unmatched trail surrogate */
859 UChar c, trail;
889 * where the byte turned out not to belong to a trail surrogate
916 /* continue collecting bytes for the trail surrogate */
919 /* fall through to error handling for an unmatched trail surrogate */
924 trail=((UChar)p[3]<<8)|p[2];
925 if(U16_IS_TRAIL(trail)) {
929 *target++=trail;
937 cnv->UCharErrorBuffer[0]=trail;
953 * if the trail unit's first byte was in a previous buffer, then
989 U16_IS_TRAIL(trail=((UChar)source[1]<<8)|source[0])
994 *target++=trail;
1008 U16_IS_TRAIL(trail=((UChar)source[1]<<8)|source[0])
1013 *target++=trail;
1027 /* keep c for surrogate handling, trail will be set there */
1045 if(U16_IS_TRAIL(trail=((UChar)source[1]<<8)|source[0])) {
1053 cnv->UCharErrorBuffer[0]=trail;
1062 /* see if the trail surrogate is in the next buffer */
1065 /* unmatched trail surrogate */
1123 UChar trail;
1125 /* get a second UChar and see if it is a trail surrogate */
1126 trail=((UChar)s[1]<<8)|*s;
1127 if(U16_IS_TRAIL(trail)) {
1128 c=U16_GET_SUPPLEMENTARY(c, trail);
1147 /* unmatched trail surrogate */