line |
true |
false |
branch |
20
|
0 |
41 |
if( stripper->o_debug ) { |
24
|
3247 |
41 |
while( p_raw < raw_end ) { |
25
|
1873 |
1374 |
width = is_utf8_p ? utf8_char_width(p_raw) : 1; |
28
|
0 |
3247 |
if( stripper->o_debug ) { |
29
|
0 |
0 |
printf( "[DEBUG] char:%C w%i state:%c%c%c tag:%5s last:%c%c%c%c in:%c%c%c quote:%c ", |
|
0 |
0 |
printf( "[DEBUG] char:%C w%i state:%c%c%c tag:%5s last:%c%c%c%c in:%c%c%c quote:%c ", |
|
0 |
0 |
printf( "[DEBUG] char:%C w%i state:%c%c%c tag:%5s last:%c%c%c%c in:%c%c%c quote:%c ", |
|
0 |
0 |
printf( "[DEBUG] char:%C w%i state:%c%c%c tag:%5s last:%c%c%c%c in:%c%c%c quote:%c ", |
|
0 |
0 |
printf( "[DEBUG] char:%C w%i state:%c%c%c tag:%5s last:%c%c%c%c in:%c%c%c quote:%c ", |
|
0 |
0 |
printf( "[DEBUG] char:%C w%i state:%c%c%c tag:%5s last:%c%c%c%c in:%c%c%c quote:%c ", |
|
0 |
0 |
printf( "[DEBUG] char:%C w%i state:%c%c%c tag:%5s last:%c%c%c%c in:%c%c%c quote:%c ", |
|
0 |
0 |
printf( "[DEBUG] char:%C w%i state:%c%c%c tag:%5s last:%c%c%c%c in:%c%c%c quote:%c ", |
|
0 |
0 |
printf( "[DEBUG] char:%C w%i state:%c%c%c tag:%5s last:%c%c%c%c in:%c%c%c quote:%c ", |
|
0 |
0 |
printf( "[DEBUG] char:%C w%i state:%c%c%c tag:%5s last:%c%c%c%c in:%c%c%c quote:%c ", |
|
0 |
0 |
printf( "[DEBUG] char:%C w%i state:%c%c%c tag:%5s last:%c%c%c%c in:%c%c%c quote:%c ", |
47
|
723 |
2524 |
if( stripper->f_in_tag ) { |
50
|
622 |
101 |
if( !stripper->f_full_tagname && !stripper->f_in_decl ) { |
|
429 |
193 |
if( !stripper->f_full_tagname && !stripper->f_in_decl ) { |
52
|
162 |
267 |
if( stripper->p_tagname == stripper->tagname && *p_raw == '!' ) { |
|
6 |
156 |
if( stripper->p_tagname == stripper->tagname && *p_raw == '!' ) { |
56
|
156 |
267 |
else if( stripper->p_tagname == stripper->tagname && *p_raw == '/' ) { |
|
47 |
109 |
else if( stripper->p_tagname == stripper->tagname && *p_raw == '/' ) { |
61
|
197 |
179 |
else if( !stripper->f_closing && stripper->f_in_striptag && stripper->p_tagname == stripper->tagname && *p_raw != '/' ) { |
|
3 |
194 |
else if( !stripper->f_closing && stripper->f_in_striptag && stripper->p_tagname == stripper->tagname && *p_raw != '/' ) { |
|
3 |
0 |
else if( !stripper->f_closing && stripper->f_in_striptag && stripper->p_tagname == stripper->tagname && *p_raw != '/' ) { |
|
3 |
0 |
else if( !stripper->f_closing && stripper->f_in_striptag && stripper->p_tagname == stripper->tagname && *p_raw != '/' ) { |
66
|
48 |
325 |
} else if( !stripper->f_in_striptag || stripper->f_closing ) { |
|
48 |
0 |
} else if( !stripper->f_in_striptag || stripper->f_closing ) { |
70
|
369 |
4 |
if( (!isspace( *p_raw ) && *p_raw != '/' && *p_raw != '>') && |
|
369 |
0 |
if( (!isspace( *p_raw ) && *p_raw != '/' && *p_raw != '>') && |
|
267 |
102 |
if( (!isspace( *p_raw ) && *p_raw != '/' && *p_raw != '>') && |
|
267 |
0 |
if( (!isspace( *p_raw ) && *p_raw != '/' && *p_raw != '>') && |
77
|
8 |
98 |
if( stripper->f_in_striptag && stripper->f_closing ) { |
|
8 |
0 |
if( stripper->f_in_striptag && stripper->f_closing ) { |
78
|
7 |
1 |
if( strcasecmp( stripper->tagname, stripper->striptag ) == 0 ) { |
83
|
98 |
0 |
} else if( !stripper->f_in_striptag && !stripper->f_closing ) { |
|
59 |
39 |
} else if( !stripper->f_in_striptag && !stripper->f_closing ) { |
84
|
12 |
47 |
if( strcasecmp( stripper->tagname, "p" ) || |
|
12 |
0 |
if( strcasecmp( stripper->tagname, "p" ) || |
86
|
0 |
59 |
if( stripper->o_emit_newlines ) { |
87
|
0 |
0 |
if( stripper->o_debug ) { |
95
|
214 |
51 |
for( i = 0; i < stripper->numstriptags; i++ ) { |
96
|
8 |
206 |
if( strcasecmp( stripper->tagname, stripper->o_striptags[i] ) == 0 ) { |
109
|
113 |
181 |
if( stripper->f_in_quote ) { |
112
|
5 |
108 |
if( *p_raw == stripper->quote ) { |
119
|
73 |
108 |
if( !stripper->f_in_comment && |
|
73 |
0 |
if( !stripper->f_in_comment && |
120
|
5 |
68 |
( *p_raw == '\'' || *p_raw == '\"' ) ) { |
127
|
146 |
30 |
if( stripper->f_in_decl ) { |
129
|
10 |
136 |
if( stripper->f_lastchar_minus ) { |
131
|
10 |
0 |
if( *p_raw == '-' ) { |
137
|
10 |
126 |
if( *p_raw == '-' ) { |
141
|
38 |
108 |
if( !stripper->f_in_comment ) { |
154
|
115 |
2409 |
if( *p_raw == '<' ) { |
164
|
2066 |
343 |
if( !stripper->f_in_striptag ) { |
166
|
2066 |
0 |
if( stripper->o_emit_spaces ){ |
170
|
1779 |
287 |
if( !isspace(*p_raw) && |
|
1492 |
287 |
if( !isspace(*p_raw) && |
172
|
20 |
1472 |
!stripper->f_outputted_space && |
174
|
0 |
20 |
if( stripper->o_debug ) { |
182
|
0 |
2066 |
if( stripper->o_debug ) { |
190
|
1779 |
287 |
if (!isspace(*p_raw)) { |
199
|
0 |
3247 |
if( stripper->o_debug ) { |
206
|
6 |
35 |
if (stripper->o_auto_reset) { |
213
|
568 |
1305 |
if (~*string & 128) { // 0xxxxxxx |
215
|
0 |
1305 |
} else if ((*string & 192) == 128) { // 10xxxxxx |
221
|
0 |
0 |
while ((*p++ & 192) == 128) { |
225
|
1302 |
3 |
} else if ((*string & 224) == 192) { // 110xxxxx |
227
|
3 |
0 |
} else if ((*string & 240) == 224) { // 1110xxxx |
229
|
0 |
0 |
} else if ((*string & 248) == 240) { // 11110xxx |
272
|
75 |
0 |
if( stripper->numstriptags < MAX_STRIPTAGS-1 ) { |
282
|
1 |
173 |
if( end == '/' ) { |
290
|
61 |
112 |
if( (end == '>') || |
|
6 |
55 |
if( (end == '>') || |
291
|
0 |
6 |
(stripper->f_in_striptag && stripper->f_closing && isspace(end)) ) { |
|
0 |
0 |
(stripper->f_in_striptag && stripper->f_closing && isspace(end)) ) { |
298
|
0 |
112 |
if( stripper->f_lastchar_slash && |
|
0 |
0 |
if( stripper->f_lastchar_slash && |