Lines Matching full:invalid
165 // As conversion stops upon encountering an invalid character, we
166 // need to test each invalid character separately, to make sure it
167 // is recognized as invalid.
169 printf("\n----- Invalid characters -----\n");
182 printf("\n----- Invalid characters if m3 == 1 -----\n");
183 uint8_t invalid_if_m3[] = { // contains all such invalid characters
193 printf("\n----- 1st char valid, 2nd char invalid -----\n");
196 0xaa // invalid
228 // Test for invalid two-byte characters where the 1st byte is valid
229 // The 2nd byte is invalid if not in range 0x80..0xbf, inclusive
231 // As conversion stops upon encountering an invalid character, we
232 // need to test each invalid character separately, to make sure it
233 // is recognized as invalid.
235 printf("\n----- Invalid characters if m3 == 1 -----\n");
254 printf("\n----- 1st char valid, 2nd char invalid -----\n");
257 0xc4, 0x00 // invalid
310 printf("\n----- Invalid characters (2nd byte is invalid) -----\n");
311 // Test for invalid three-byte characters where the 1st byte is valid
312 // The 2nd byte is invalid.
314 // As conversion stops upon encountering an invalid character, we
315 // need to test each invalid character separately, to make sure it
316 // is recognized as invalid.
319 e0[1] = 0x9f; // invalid because outside [0xa0 .. 0xbf]
322 e0[1] = 0xc0; // invalid because outside [0xa0 .. 0xbf]
326 ed[1] = 0x7f; // invalid because outside [0x80 .. 0x9f]
329 ed[1] = 0xa0; // invalid because outside [0x80 .. 0x9f]
345 printf("\n----- Invalid characters (3rd byte is invalid) -----\n");
358 printf("\n----- Invalid 2nd char AND output exhausted -----\n");
359 /* The character is invalid in its 2nd byte AND the output buffer is
366 printf("\n----- Invalid 3rd char AND output exhausted -----\n");
367 /* The character is invalid in its 3rd byte AND the output buffer is
374 printf("\n----- 1st char valid, 2nd char invalid -----\n");
377 0xe1, 0x00, 0x90 // invalid
430 // As conversion stops upon encountering an invalid character, we
431 // need to test each invalid character separately, to make sure it
432 // is recognized as invalid.
434 printf("\n----- Invalid characters (2nd byte is invalid) -----\n");
435 // Test for invalid four-byte characters where the 2nd byte is invalid.
440 f0[1] = 0x8f; // invalid because outside [0x90 .. 0xbf]
444 f0[1] = 0xc0; // invalid because outside [0x90 .. 0xbf]
448 f4[1] = 0x7f; // invalid because outside [0x80 .. 0x8f]
452 f4[1] = 0x90; // invalid because outside [0x80 .. 0x9f]
468 printf("\n----- Invalid characters (3rd byte is invalid) -----\n");
469 // Test for invalid four-byte characters where the 3rd byte is invalid.
482 printf("\n----- Invalid characters (4th byte is invalid) -----\n");
483 // Test for invalid four-byte characters where the 3rd byte is invalid.
496 printf("\n----- Invalid 2nd char AND output exhausted -----\n");
497 /* The character is invalid in its 2nd byte AND the output buffer is
504 printf("\n----- Invalid 3rd char AND output exhausted -----\n");
505 /* The character is invalid in its 3rd byte AND the output buffer is
512 printf("\n----- Invalid 4th char AND output exhausted -----\n");
513 /* The character is invalid in its 4th byte AND the output buffer is
520 printf("\n----- 1st char valid, 2nd char invalid -----\n");
523 0xf0, 0x00, 0x00, 0x00 // invalid