Lines Matching defs:trail

263  * *ps points to after the lead byte and will be moved to after the last trail byte.
270 uint8_t trail, illegal=0;
273 /* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */
278 /* count>=4 is always illegal: no more than 3 trail bytes in Unicode's UTF-8 */
282 trail=(uint8_t)(*s++ - 0x80);
283 c=(c<<6)|trail;
284 if(trail>0x3f || c>=0x110) {
285 /* not a trail byte, or code point>0x10ffff (outside Unicode) */
290 trail=(uint8_t)(*s++ - 0x80);
291 if(trail>0x3f) {
292 /* not a trail byte */
296 c=(c<<6)|trail;
298 trail=(uint8_t)(*s++ - 0x80);
299 if(trail>0x3f) {
300 /* not a trail byte */
303 c=(c<<6)|trail;
310 /* correct sequence - all trail bytes have (b7..b6)==(10)? */
331 * *ps points to after the lead byte and will be moved to after the last trail byte.
338 uint8_t trail, illegal=0;
342 /* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */
347 /* count>=4 is always illegal: no more than 3 trail bytes in Unicode's UTF-8 */
351 trail=*s++;
352 c=(c<<6)|(trail&0x3f);
354 illegal|=(trail&0xc0)^0x80;
361 trail=*s++;
362 c=(c<<6)|(trail&0x3f);
363 illegal|=(trail&0xc0)^0x80;
365 trail=*s++;
366 c=(c<<6)|(trail&0x3f);
367 illegal|=(trail&0xc0)^0x80;
377 /* correct sequence - all trail bytes have (b7..b6)==(10)? */
406 uint8_t t1, t2; /* trail bytes */
444 * A NUL byte in the trail byte position fails the trail byte range check anyway.
758 uint8_t t1, t2, t3; /* trail bytes */
763 * ASCII, or a trail byte in lead position which is treated like
811 * ASCII, or a trail byte in lead position which is treated like
866 * ASCII, or a trail byte in lead position which is treated like
896 * ASCII, or a trail byte in lead position which is treated like
1264 uint8_t t1, t2; /* trail bytes */