Home | History | Annotate | Download | only in common

Lines Matching refs:trail

112         uint8_t trail, illegal=0;
115 /* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */
120 /* count>=4 is always illegal: no more than 3 trail bytes in Unicode's UTF-8 */
124 trail=s[(i)++];
125 (c)=((c)<<6)|(trail&0x3f);
127 illegal|=(trail&0xc0)^0x80;
134 trail=s[(i)++];
135 (c)=((c)<<6)|(trail&0x3f);
136 illegal|=(trail&0xc0)^0x80;
138 trail=s[(i)++];
139 (c)=((c)<<6)|(trail&0x3f);
140 illegal|=(trail&0xc0)^0x80;
162 /* correct sequence - all trail bytes have (b7..b6)==(10)? */
249 /* extract value bits from the last trail byte */
289 /* the lead byte does not match the number of trail bytes */
291 include the trail byte that we started with */
309 /* trail byte */
314 /* more than 5 trail bytes is illegal */