line |
true |
false |
branch |
62
|
2895 |
56 |
if ((c & 0x80) == 0) { |
65
|
36 |
20 |
} else if ((c & 0xE0) == 0xC0) { |
68
|
20 |
0 |
} else if ((c & 0xF0) == 0xE0) { |
71
|
0 |
0 |
} else if ((c & 0xF8) == 0xF0) { |
74
|
0 |
0 |
} else if ((c & 0xFC) == 0xF8) { |
77
|
0 |
0 |
} else if ((c & 0xFE) == 0xFC) { |
128
|
0 |
1974 |
BSON_ASSERT (utf8); |
130
|
2951 |
1971 |
for (i = 0; i < utf8_len; i += seq_length) { |
136
|
0 |
2951 |
if (!seq_length) { |
143
|
3 |
2948 |
if ((utf8_len - i) < seq_length) { |
156
|
70 |
2948 |
for (j = i + 1; j < (i + seq_length); j++) { |
158
|
0 |
70 |
if ((utf8[j] & 0xC0) != 0x80) { |
171
|
2463 |
485 |
if (!allow_null) { |
172
|
2465 |
2463 |
for (j = 0; j < seq_length; j++) { |
173
|
2465 |
0 |
if (((i + j) > utf8_len) || !utf8[i + j]) { |
|
0 |
2465 |
if (((i + j) > utf8_len) || !utf8[i + j]) { |
182
|
0 |
2948 |
if (c > 0x0010FFFF) { |
190
|
0 |
2948 |
if ((c & 0xFFFFF800) == 0xD800) { |
199
|
2895 |
0 |
if (c <= 0x007F) { |
205
|
36 |
0 |
if ((c >= 0x0080) && (c <= 0x07FF)) { |
|
36 |
0 |
if ((c >= 0x0080) && (c <= 0x07FF)) { |
207
|
0 |
0 |
} else if (c == 0) { |
214
|
17 |
0 |
if (((c >= 0x0800) && (c <= 0x0FFF)) || |
|
17 |
0 |
if (((c >= 0x0800) && (c <= 0x0FFF)) || |
|
17 |
0 |
if (((c >= 0x0800) && (c <= 0x0FFF)) || |
215
|
17 |
0 |
((c >= 0x1000) && (c <= 0xFFFF))) { |
221
|
0 |
0 |
if (((c >= 0x10000) && (c <= 0x3FFFF)) || |
|
0 |
0 |
if (((c >= 0x10000) && (c <= 0x3FFFF)) || |
|
0 |
0 |
if (((c >= 0x10000) && (c <= 0x3FFFF)) || |
222
|
0 |
0 |
((c >= 0x40000) && (c <= 0xFFFFF)) || |
|
0 |
0 |
((c >= 0x40000) && (c <= 0xFFFFF)) || |
223
|
0 |
0 |
((c >= 0x100000) && (c <= 0x10FFFF))) { |
272
|
0 |
0 |
BSON_ASSERT (utf8); |
276
|
0 |
0 |
if (utf8_len < 0) { |
283
|
0 |
0 |
while (utf8 < end) { |
309
|
0 |
0 |
if (c < ' ') { |
317
|
0 |
0 |
if (c) { |
320
|
0 |
0 |
if (length_provided && !*utf8) { |
|
0 |
0 |
if (length_provided && !*utf8) { |
362
|
0 |
0 |
BSON_ASSERT (utf8); |
367
|
0 |
0 |
for (i = 1; i < num; i++) { |
401
|
0 |
0 |
BSON_ASSERT (utf8); |
438
|
0 |
0 |
BSON_ASSERT (utf8); |
439
|
0 |
0 |
BSON_ASSERT (len); |
441
|
0 |
0 |
if (unichar <= 0x7F) { |
444
|
0 |
0 |
} else if (unichar <= 0x7FF) { |
448
|
0 |
0 |
} else if (unichar <= 0xFFFF) { |
453
|
0 |
0 |
} else if (unichar <= 0x1FFFFF) { |
459
|
0 |
0 |
} else if (unichar <= 0x3FFFFFF) { |
466
|
0 |
0 |
} else if (unichar <= 0x7FFFFFFF) { |