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 */
658 UChar c, trail;
693 if((c=(UChar)cnv->fromUChar32)!=0 && U16_IS_TRAIL(trail=*source) && targetCapacity>=4) {
699 target[2]=(uint8_t)trail;
700 target[3]=(uint8_t)(trail>>8);
731 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
736 target[2]=(uint8_t)trail;
737 target[3]=(uint8_t)(trail>>8);
753 } else if(U16_IS_SURROGATE_LEAD(c) && count>=2 && U16_IS_TRAIL(trail=*source)) {
758 target[2]=(uint8_t)trail;
759 target[3]=(uint8_t)(trail>>8);
810 if(U16_IS_TRAIL(trail=*source)) {
815 overflow[2]=(char)trail;
816 overflow[3]=(char)(trail>>8);
824 /* see if the trail surrogate is in the next buffer */
827 /* unmatched trail surrogate */
862 UChar c, trail;
892 * where the byte turned out not to belong to a trail surrogate
919 /* continue collecting bytes for the trail surrogate */
922 /* fall through to error handling for an unmatched trail surrogate */
927 trail=((UChar)p[3]<<8)|p[2];
928 if(U16_IS_TRAIL(trail)) {
932 *target++=trail;
940 cnv->UCharErrorBuffer[0]=trail;
956 * if the trail unit's first byte was in a previous buffer, then
992 U16_IS_TRAIL(trail=((UChar)source[1]<<8)|source[0])
997 *target++=trail;
1011 U16_IS_TRAIL(trail=((UChar)source[1]<<8)|source[0])
1016 *target++=trail;
1030 /* keep c for surrogate handling, trail will be set there */
1048 if(U16_IS_TRAIL(trail=((UChar)source[1]<<8)|source[0])) {
1056 cnv->UCharErrorBuffer[0]=trail;
1065 /* see if the trail surrogate is in the next buffer */
1068 /* unmatched trail surrogate */
1126 UChar trail;
1128 /* get a second UChar and see if it is a trail surrogate */
1129 trail=((UChar)s[1]<<8)|*s;
1130 if(U16_IS_TRAIL(trail)) {
1131 c=U16_GET_SUPPLEMENTARY(c, trail);
1150 /* unmatched trail surrogate */