line |
true |
false |
branch |
158
|
0 |
0 |
if (r == 0) { |
288
|
0 |
0 |
if (c == 0) { |
292
|
0 |
0 |
if (l == 1) { |
296
|
0 |
0 |
if (l == 2) { |
300
|
0 |
0 |
if (d < 0x80 || d > 0xBF) { |
|
0 |
0 |
if (d < 0x80 || d > 0xBF) { |
303
|
0 |
0 |
if (c <= 0xC1) { |
311
|
0 |
0 |
if (l == 3) { |
319
|
0 |
0 |
if (d < 0x80 || d > 0xBF || |
|
0 |
0 |
if (d < 0x80 || d > 0xBF || |
|
0 |
0 |
if (d < 0x80 || d > 0xBF || |
320
|
0 |
0 |
e < 0x80 || e > 0xBF) { |
323
|
0 |
0 |
if (c == 0xe0 && d < 0xa0) { |
|
0 |
0 |
if (c == 0xe0 && d < 0xa0) { |
332
|
0 |
0 |
REJECT_SURROGATE(r); |
|
0 |
0 |
REJECT_SURROGATE(r); |
333
|
0 |
0 |
REJECT_FFFF(r); |
334
|
0 |
0 |
REJECT_NOT_CHAR(r); |
|
0 |
0 |
REJECT_NOT_CHAR(r); |
338
|
0 |
0 |
else if (l == 4) { |
349
|
0 |
0 |
if (/* c must be 11110xxx. */ |
350
|
0 |
0 |
c >= 0xf8 || |
352
|
0 |
0 |
d < 0x80 || d >= 0xC0 || |
|
0 |
0 |
d < 0x80 || d >= 0xC0 || |
353
|
0 |
0 |
e < 0x80 || e >= 0xC0 || |
|
0 |
0 |
e < 0x80 || e >= 0xC0 || |
354
|
0 |
0 |
f < 0x80 || f >= 0xC0) { |
358
|
0 |
0 |
if (c == 0xf0 && d < 0x90) { |
|
0 |
0 |
if (c == 0xf0 && d < 0x90) { |
367
|
0 |
0 |
if (v > UNICODE_MAXIMUM) { |
371
|
0 |
0 |
REJECT_FFFF(v); |
413
|
0 |
31 |
REJECT_FFFF(ucs2); |
414
|
5 |
26 |
if (ucs2 < 0x80) { |
419
|
0 |
26 |
if (ucs2 < 0x800) { |
425
|
21 |
5 |
if (ucs2 < 0xFFFF) { |
430
|
12 |
9 |
REJECT_SURROGATE(ucs2); |
|
12 |
0 |
REJECT_SURROGATE(ucs2); |
431
|
0 |
9 |
REJECT_NOT_CHAR(ucs2); |
|
0 |
0 |
REJECT_NOT_CHAR(ucs2); |
434
|
5 |
0 |
if (ucs2 <= UNICODE_UTF8_4) { |
467
|
0 |
0 |
if (unicode < HALF_BASE) { |
491
|
5 |
0 |
if (hi < UNI_SUR_HIGH_START || hi > UNI_SUR_HIGH_END || |
|
5 |
0 |
if (hi < UNI_SUR_HIGH_START || hi > UNI_SUR_HIGH_END || |
|
5 |
0 |
if (hi < UNI_SUR_HIGH_START || hi > UNI_SUR_HIGH_END || |
492
|
0 |
5 |
lo < UNI_SUR_LOW_START || lo > UNI_SUR_LOW_END) { |
518
|
0 |
5 |
if (C < 0) { |
537
|
0 |
0 |
if (len == 0 && n_chars != 0) { |
|
0 |
0 |
if (len == 0 && n_chars != 0) { |
540
|
0 |
0 |
for (i = 0; i < n_chars; i++) { |
542
|
0 |
0 |
if (ucs2 < 0) { |
561
|
0 |
0 |
while (*p) { |
564
|
0 |
0 |
if (len == 0) { |
589
|
0 |
0 |
if (len == 0) { |
592
|
0 |
0 |
while (p - utf8 < len) { |
595
|
0 |
0 |
if (ucs2 < 0) { |
600
|
0 |
0 |
if (*p == '\0') { |
711
|
0 |
0 |
if (error < 0) { |
759
|
0 |
0 |
if (i >= len) { |
769
|
0 |
0 |
if (c == 0) { |
773
|
0 |
0 |
if (c < 0x80) { |
820
|
0 |
0 |
switch (UNICODENEXTBYTE) { |
829
|
0 |
0 |
switch (UNICODENEXTBYTE) { |
834
|
0 |
0 |
if (c >= 0x90 && c <= 0xAF) { |
|
0 |
0 |
if (c >= 0x90 && c <= 0xAF) { |
857
|
0 |
0 |
switch (UNICODENEXTBYTE) { |
880
|
0 |
0 |
switch (UNICODENEXTBYTE) { |
890
|
0 |
0 |
switch (UNICODENEXTBYTE) { |
895
|
0 |
0 |
if (c >= 0xA0 && c <= 0xBF) { |
|
0 |
0 |
if (c >= 0xA0 && c <= 0xBF) { |
905
|
0 |
0 |
switch (UNICODENEXTBYTE) { |
915
|
0 |
0 |
switch (UNICODENEXTBYTE) { |
925
|
0 |
0 |
switch (UNICODENEXTBYTE) { |
930
|
0 |
0 |
if (c >= 0x90) { |
976
|
0 |
0 |
REJECT_FE_FF (c); |
|
0 |
0 |
REJECT_FE_FF (c); |
979
|
0 |
0 |
if (c == 0xC0 || c == 0x00) { |
|
0 |
0 |
if (c == 0xC0 || c == 0x00) { |
982
|
0 |
0 |
for (i = 0; i < UTF8_MAX_LENGTH - 1; i++) { |
984
|
0 |
0 |
REJECT_FE_FF (c); |
|
0 |
0 |
REJECT_FE_FF (c); |
985
|
0 |
0 |
if ((c & 0x80) != 0x80 || (c & 0x40) != 0) { |
|
0 |
0 |
if ((c & 0x80) != 0x80 || (c & 0x40) != 0) { |