line |
true |
false |
branch |
62
|
0 |
0 |
ret->len = str ? (int)strlen (str) : 0; |
65
|
0 |
0 |
if (!bson_is_power_of_two (ret->alloc)) { |
69
|
0 |
0 |
BSON_ASSERT (ret->alloc >= 1); |
73
|
0 |
0 |
if (str) { |
110
|
0 |
0 |
BSON_ASSERT (string); |
112
|
0 |
0 |
if (!free_segment) { |
146
|
0 |
0 |
BSON_ASSERT (string); |
147
|
0 |
0 |
BSON_ASSERT (str); |
151
|
0 |
0 |
if ((string->alloc - string->len - 1) < len) { |
153
|
0 |
0 |
if (!bson_is_power_of_two (string->alloc)) { |
190
|
0 |
0 |
BSON_ASSERT (string); |
192
|
0 |
0 |
if (BSON_UNLIKELY (string->alloc == (string->len + 1))) { |
227
|
0 |
0 |
BSON_ASSERT (string); |
228
|
0 |
0 |
BSON_ASSERT (unichar); |
232
|
0 |
0 |
if (len <= 6) { |
263
|
0 |
0 |
BSON_ASSERT (string); |
264
|
0 |
0 |
BSON_ASSERT (format); |
299
|
0 |
0 |
BSON_ASSERT (string); |
300
|
0 |
0 |
BSON_ASSERT (len < INT_MAX); |
304
|
0 |
0 |
if (alloc < 16) { |
308
|
0 |
0 |
if (!bson_is_power_of_two (alloc)) { |
342
|
0 |
0 |
if (!str) { |
349
|
0 |
0 |
if (!out) { |
384
|
0 |
0 |
BSON_ASSERT (format); |
393
|
0 |
0 |
if (n > -1 && n < len) { |
|
0 |
0 |
if (n > -1 && n < len) { |
397
|
0 |
0 |
if (n > -1) { |
432
|
0 |
0 |
BSON_ASSERT (format); |
464
|
0 |
0 |
BSON_ASSERT (str); |
496
|
0 |
0 |
if (str) { |
497
|
0 |
0 |
for (i = 0; str [i]; i++) |
658
|
0 |
0 |
BSON_ASSERT (str); |
678
|
0 |
0 |
if (!s) { |
685
|
0 |
0 |
while (isspace (c)) { |
689
|
0 |
0 |
if (!isdigit (c) && (c != '+') && (c != '-')) { |
|
0 |
0 |
if (!isdigit (c) && (c != '+') && (c != '-')) { |
|
0 |
0 |
if (!isdigit (c) && (c != '+') && (c != '-')) { |
695
|
0 |
0 |
if (c == '-') { |
700
|
0 |
0 |
if (c == '+') { |
704
|
0 |
0 |
if (c == '0' && tok[1] != '\0' && |
705
|
0 |
0 |
(isdigit (tok[1]) || tok[1] == 'x' || tok[1] == 'X')) { |
|
0 |
0 |
(isdigit (tok[1]) || tok[1] == 'x' || tok[1] == 'X')) { |
710
|
0 |
0 |
if (c == 'x' || c == 'X') { /* Hex */ |
|
0 |
0 |
if (c == 'x' || c == 'X') { /* Hex */ |
711
|
0 |
0 |
if (base != 16) { |
718
|
0 |
0 |
if (!isxdigit (c)) { |
726
|
0 |
0 |
} while (isxdigit (c)); |
729
|
0 |
0 |
if (base != 8) { |
735
|
0 |
0 |
if (c < '0' || c >= '8') { |
|
0 |
0 |
if (c < '0' || c >= '8') { |
743
|
0 |
0 |
} while (('0' <= c) && (c < '8')); |
|
0 |
0 |
} while (('0' <= c) && (c < '8')); |
746
|
0 |
0 |
while (c == 'l' || c == 'L' || c == 'u' || c == 'U') { |
|
0 |
0 |
while (c == 'l' || c == 'L' || c == 'u' || c == 'U') { |
|
0 |
0 |
while (c == 'l' || c == 'L' || c == 'u' || c == 'U') { |
|
0 |
0 |
while (c == 'l' || c == 'L' || c == 'u' || c == 'U') { |
752
|
0 |
0 |
if (base != 10) { |
761
|
0 |
0 |
} while (isdigit (c)); |
763
|
0 |
0 |
while (c == 'l' || c == 'L' || c == 'u' || c == 'U') { |
|
0 |
0 |
while (c == 'l' || c == 'L' || c == 'u' || c == 'U') { |
|
0 |
0 |
while (c == 'l' || c == 'L' || c == 'u' || c == 'U') { |
|
0 |
0 |
while (c == 'l' || c == 'L' || c == 'u' || c == 'U') { |