line |
true |
false |
branch |
20
|
0 |
18 |
if (!dest) /* malloc failed */ |
31
|
1 |
17 |
if (len == 0) { |
36
|
135 |
17 |
while (len > 0) { |
43
|
54 |
81 |
if (leading && !isSPACE(c)) |
|
18 |
36 |
if (leading && !isSPACE(c)) |
46
|
99 |
36 |
if (!leading) { |
48
|
94 |
5 |
if (isEOL(c)) { |
|
9 |
85 |
if (isEOL(c)) { |
49
|
4 |
5 |
if (trailing) ptr = trailing; |
50
|
5 |
4 |
if ( c == '\r' ) c = '\n'; /* Normalise EOL */ |
53
|
13 |
77 |
else if (isSPACE(c)) { |
54
|
9 |
4 |
if (!trailing) trailing = ptr; |
65
|
6 |
11 |
if (trailing) { |
68
|
6 |
0 |
if (isEOL(c)) { ptr++; } |
|
3 |
3 |
if (isEOL(c)) { ptr++; } |
82
|
0 |
38 |
if (!dest) /* malloc failed */ |
93
|
2 |
36 |
if (len == 0) { |
98
|
282 |
36 |
while (len > 0) { |
102
|
269 |
13 |
if (UTF8_IS_INVARIANT(c)) { |
109
|
2 |
11 |
if (c == 0) { |
112
|
11 |
2 |
if ((int) skip > 0) { |
128
|
118 |
164 |
if (leading && !isSPACE(c)) |
|
112 |
6 |
if (leading && !isSPACE(c)) |
|
36 |
76 |
if (leading && !isSPACE(c)) |
131
|
206 |
76 |
if (!leading) { |
133
|
203 |
3 |
if (isEOL_UTF8(c)) { |
|
184 |
19 |
if (isEOL_UTF8(c)) { |
|
187 |
0 |
if (isEOL_UTF8(c)) { |
|
181 |
6 |
if (isEOL_UTF8(c)) { |
|
0 |
181 |
if (isEOL_UTF8(c)) { |
134
|
13 |
12 |
if (trailing) ptr = trailing; |
135
|
10 |
15 |
if ( c == '\r' ) c = '\n'; /* Normalise EOL */ |
138
|
179 |
2 |
else if (isSPACE(c)) { |
|
30 |
149 |
else if (isSPACE(c)) { |
139
|
17 |
13 |
if (!trailing) trailing = ptr; |
145
|
193 |
13 |
if (UTF8_IS_INVARIANT(c)) |
154
|
13 |
23 |
if (trailing) { |
158
|
2 |
11 |
if (!UTF8_IS_INVARIANT(c)) { |
160
|
0 |
2 |
if (c == 0) { |
164
|
13 |
0 |
if (isEOL_UTF8(c)) { |
|
6 |
7 |
if (isEOL_UTF8(c)) { |
|
6 |
0 |
if (isEOL_UTF8(c)) { |
|
4 |
2 |
if (isEOL_UTF8(c)) { |
|
0 |
4 |
if (isEOL_UTF8(c)) { |
165
|
0 |
9 |
if ((int) skip <= 0) { |
191
|
1 |
38 |
if (SvOK(inStr)) { |
|
1 |
0 |
if (SvOK(inStr)) { |
|
0 |
1 |
if (SvOK(inStr)) { |
195
|
38 |
0 |
if (outStr != NULL) { |
198
|
2 |
36 |
if (is_utf8) |
220
|
1 |
18 |
if (SvOK(inStr)) { |
|
1 |
0 |
if (SvOK(inStr)) { |
|
0 |
1 |
if (SvOK(inStr)) { |
224
|
18 |
0 |
if (outStr != NULL) { |