Lines Matching defs:trail
269 * *ps points to after the lead byte and will be moved to after the last trail byte.
276 uint8_t trail, illegal=0;
280 /* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */
285 /* count>=4 is always illegal: no more than 3 trail bytes in Unicode's UTF-8 */
289 trail=(uint8_t)(*s++ - 0x80);
290 c=(c<<6)|trail;
291 if(trail>0x3f || c>=0x110) {
292 /* not a trail byte, or code point>0x10ffff (outside Unicode) */
297 trail=(uint8_t)(*s++ - 0x80);
298 if(trail>0x3f) {
299 /* not a trail byte */
303 c=(c<<6)|trail;
305 trail=(uint8_t)(*s++ - 0x80);
306 if(trail>0x3f) {
307 /* not a trail byte */
310 c=(c<<6)|trail;
317 /* correct sequence - all trail bytes have (b7..b6)==(10)? */
338 * *ps points to after the lead byte and will be moved to after the last trail byte.
345 uint8_t trail, illegal=0;
349 /* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */
354 /* count>=4 is always illegal: no more than 3 trail bytes in Unicode's UTF-8 */
358 trail=*s++;
359 c=(c<<6)|(trail&0x3f);
361 illegal|=(trail&0xc0)^0x80;
368 trail=*s++;
369 c=(c<<6)|(trail&0x3f);
370 illegal|=(trail&0xc0)^0x80;
372 trail=*s++;
373 c=(c<<6)|(trail&0x3f);
374 illegal|=(trail&0xc0)^0x80;
384 /* correct sequence - all trail bytes have (b7..b6)==(10)? */
414 uint8_t t1, t2; /* trail bytes */
452 * A NUL byte in the trail byte position fails the trail byte range check anyway.
766 uint8_t t1, t2, t3; /* trail bytes */
771 * ASCII, or a trail byte in lead position which is treated like
819 * ASCII, or a trail byte in lead position which is treated like
874 * ASCII, or a trail byte in lead position which is treated like
904 * ASCII, or a trail byte in lead position which is treated like
1272 uint8_t t1, t2; /* trail bytes */