Lines Matching defs:illegal
73 * In Unicode, all UTF-8 byte sequences with more than 4 bytes are illegal;
74 * lead bytes above 0xf4 are illegal.
99 3, 3, 3, /* illegal in Unicode */
100 4, 4, 4, 4, /* illegal in Unicode */
101 5, 5, /* illegal in Unicode */
102 0, 0 /* illegal bytes 0xfe and 0xff */
119 * <0 "Safe" behavior of U8_NEXT(): All illegal byte sequences yield a negative
122 * All illegal byte sequences yield a positive code point such that this
124 * the illegal sequence.
127 * like illegal sequences.
141 uint8 trail, illegal=0;
144 /* count==0 for illegally leading trail bytes and the illegal bytes 0xfe and 0xff */
149 /* count>=4 is always illegal: no more than 3 trail bytes in Unicode's UTF-8 */
150 illegal=1;
156 illegal|=(trail&0xc0)^0x80;
159 illegal=1;
165 illegal|=(trail&0xc0)^0x80;
169 illegal|=(trail&0xc0)^0x80;
184 * Starting with Unicode 3.0.1, non-shortest forms are illegal.
192 /* illegal is also set if count>=4 */
193 if(illegal || (c)<utf8_minLegal[count] || (CBU_IS_SURROGATE(c) && strict!=-2)) {
214 /* don't just set (i)=(length) in case there is an illegal sequence */