Home | History | Annotate | Download | only in common

Lines Matching defs:illegal

44  * In Unicode, all UTF-8 byte sequences with more than 4 bytes are illegal;
45 * lead bytes above 0xf4 are illegal.
70 3, 3, 3, /* illegal in Unicode */
71 4, 4, 4, 4, /* illegal in Unicode */
72 5, 5, /* illegal in Unicode */
73 0, 0 /* illegal bytes 0xfe and 0xff */
90 * <0 "Safe" behavior of U8_NEXT(): All illegal byte sequences yield a negative
93 * All illegal byte sequences yield a positive code point such that this
95 * the illegal sequence.
98 * like illegal sequences.
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 */
121 illegal=1;
127 illegal|=(trail&0xc0)^0x80;
130 illegal=1;
136 illegal|=(trail&0xc0)^0x80;
140 illegal|=(trail&0xc0)^0x80;
155 * Starting with Unicode 3.0.1, non-shortest forms are illegal.
163 /* illegal is also set if count>=4 */
164 if(illegal || (c)<utf8_minLegal[count] || (UTF_IS_SURROGATE(c) && strict!=-2)) {
185 /* don't just set (i)=(length) in case there is an illegal sequence */
276 /* illegal sequence or (strict and non-character) */
314 /* more than 5 trail bytes is illegal */