| line |
true |
false |
branch |
|
18
|
875776 |
35913 |
for (; len--; s++) |
|
19
|
89976 |
785800 |
*s = toLOWER(*s); |
|
26
|
1880 |
269 |
while (n--) { |
|
27
|
1874 |
6 |
if (ignore_case) { |
|
28
|
1868 |
6 |
if (toLOWER(*s1) != toLOWER(*s2)) |
|
|
1874 |
0 |
if (toLOWER(*s1) != toLOWER(*s2)) |
|
|
1 |
1873 |
if (toLOWER(*s1) != toLOWER(*s2)) |
|
32
|
0 |
6 |
if (*s1 != *s2) |
|
53
|
27 |
0 |
SvGROW(sv, e_offset + grow + 1); |
|
|
4 |
23 |
SvGROW(sv, e_offset + grow + 1); |
|
85
|
73637 |
3877 |
while (s < end) { |
|
88
|
72947 |
690 |
if ((*t++ = *s++) != '&') |
|
95
|
683 |
7 |
if (s < end && *s == '#') { |
|
|
109 |
574 |
if (s < end && *s == '#') { |
|
99
|
109 |
0 |
if (s < end && (*s == 'x' || *s == 'X')) { |
|
|
71 |
38 |
if (s < end && (*s == 'x' || *s == 'X')) { |
|
|
3 |
68 |
if (s < end && (*s == 'x' || *s == 'X')) { |
|
101
|
162 |
12 |
while (s < end) { |
|
103
|
25 |
137 |
if (!tmp) |
|
106
|
4 |
133 |
if (num > 0x10FFFF) { |
|
116
|
276 |
4 |
while (s < end && isDIGIT(*s)) { |
|
|
214 |
62 |
while (s < end && isDIGIT(*s)) { |
|
118
|
2 |
212 |
if (num > 0x10FFFF) { |
|
127
|
102 |
7 |
if (num && ok) { |
|
|
96 |
6 |
if (num && ok) { |
|
128
|
56 |
40 |
if (!SvUTF8(sv) && num <= 255) { |
|
|
41 |
15 |
if (!SvUTF8(sv) && num <= 255) { |
|
134
|
55 |
0 |
else if (num == 0xFFFE || num == 0xFFFF) { |
|
|
54 |
1 |
else if (num == 0xFFFE || num == 0xFFFF) { |
|
139
|
1 |
53 |
if ((num & 0xFFFFFC00) == 0xDC00) { /* low-surrogate */ |
|
140
|
1 |
0 |
if (high_surrogate != 0) { |
|
149
|
2 |
51 |
else if ((num & 0xFFFFFC00) == 0xD800) { /* high-surrogate */ |
|
156
|
8 |
43 |
if ((num >= 0xFDD0 && num <= 0xFDEF) || |
|
|
4 |
4 |
if ((num >= 0xFDD0 && num <= 0xFDEF) || |
|
157
|
46 |
1 |
((num & 0xFFFE) == 0xFFFE) || |
|
|
0 |
46 |
((num & 0xFFFE) == 0xFFFE) || |
|
173
|
2095 |
25 |
while (s < end && isALNUM(*s)) |
|
|
1539 |
556 |
while (s < end && isALNUM(*s)) |
|
175
|
365 |
216 |
if (ent_name != s && entity2char) { |
|
|
364 |
1 |
if (ent_name != s && entity2char) { |
|
177
|
83 |
281 |
if ( (svp = hv_fetch(entity2char, ent_name, s - ent_name, 0)) || |
|
178
|
16 |
67 |
(*s == ';' && (svp = hv_fetch(entity2char, ent_name, s - ent_name + 1, 0))) |
|
|
13 |
3 |
(*s == ';' && (svp = hv_fetch(entity2char, ent_name, s - ent_name + 1, 0))) |
|
183
|
1 |
293 |
if ((SV*)*svp == sv) { |
|
188
|
1 |
0 |
Newx(repl_allocated, repl_len ? repl_len : 1, char); |
|
195
|
4 |
66 |
else if (expand_prefix) { |
|
197
|
14 |
2 |
while (ss > ent_name) { |
|
199
|
2 |
12 |
if (svp) { |
|
202
|
0 |
2 |
if ((SV*)*svp == sv) { |
|
203
|
0 |
0 |
Newx(repl_allocated, repl_len ? repl_len : 1, char); |
|
219
|
391 |
299 |
if (repl) { |
|
223
|
366 |
25 |
if (s < end && *s == ';') |
|
|
246 |
120 |
if (s < end && *s == ';') |
|
227
|
102 |
289 |
if (*s != '&') { |
|
231
|
130 |
261 |
if (!SvUTF8(sv) && repl_utf8) { |
|
|
18 |
112 |
if (!SvUTF8(sv) && repl_utf8) { |
|
248
|
261 |
112 |
else if (SvUTF8(sv) && !repl_utf8) { |
|
|
212 |
49 |
else if (SvUTF8(sv) && !repl_utf8) { |
|
253
|
27 |
364 |
if (t + repl_len > s) { |
|
259
|
8980 |
391 |
while (repl_len--) |
|
262
|
213 |
178 |
if (repl_allocated) |
|
266
|
185 |
299 |
while (ent_start < s) |
|
280
|
25 |
4 |
while (s < e) { |
|
282
|
9 |
16 |
if (!UTF8_IS_INVARIANT(ch)) { |
|
297
|
17 |
1 |
while (s < e && UTF8_IS_CONTINUATION((U8)*(e - 1))) |
|
|
5 |
12 |
while (s < e && UTF8_IS_CONTINUATION((U8)*(e - 1))) |
|
299
|
12 |
1 |
if (s < e && UTF8_IS_START((U8)*(e - 1))) |
|
|
6 |
6 |
if (s < e && UTF8_IS_START((U8)*(e - 1))) |
|
302
|
6 |
7 |
if (clen && UTF8SKIP(e) == clen) { |
|
|
2 |
4 |
if (clen && UTF8SKIP(e) == clen) { |
|
307
|
4 |
9 |
if (!has_hibit(s, e)) |