Home | History | Annotate | Download | only in common

Lines Matching defs:trail

130         uint8_t trail;
133 /* support NUL-terminated strings: do not read beyond the first non-trail byte */
137 /* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */
140 /* count>=4 is always illegal: no more than 3 trail bytes in Unicode's UTF-8 */
143 trail=s[i++]-0x80;
144 c=(c<<6)|trail;
146 if(c>=0x110 || trail>0x3f) { break; }
148 trail=s[i++]-0x80;
149 c=(c<<6)|trail;
154 if(((c&0xffe0)==0x360 && strict!=-2) || trail>0x3f) { break; }
156 trail=s[i++]-0x80;
157 c=(c<<6)|trail;
158 if(trail>0x3f) { break; }
159 /* correct sequence - all trail bytes have (b7..b6)==(10) */
236 /* extract value bits from the last trail byte */
267 /* the lead byte does not match the number of trail bytes */
269 include the trail byte that we started with */
279 /* trail byte */
284 /* more than 5 trail bytes is illegal */