| line |
true |
false |
branch |
|
66
|
0 |
0 |
return c == 0 || isspace(c) || ispunct(c); |
|
|
0 |
0 |
return c == 0 || isspace(c) || ispunct(c); |
|
80
|
0 |
0 |
for (p = single_quote_list; *p; ++p) { |
|
82
|
0 |
0 |
if (size >= len && memcmp(text, *p, len) == 0) { |
|
|
0 |
0 |
if (size >= len && memcmp(text, *p, len) == 0) { |
|
96
|
0 |
0 |
if (*is_open && !word_boundary(next_char)) |
|
|
0 |
0 |
if (*is_open && !word_boundary(next_char)) |
|
99
|
0 |
0 |
if (!(*is_open) && !word_boundary(previous_char)) |
|
|
0 |
0 |
if (!(*is_open) && !word_boundary(previous_char)) |
|
102
|
0 |
0 |
snprintf(ent, sizeof(ent), "&%c%cquo;", (*is_open) ? 'r' : 'l', quote); |
|
118
|
0 |
0 |
if (size >= 2) { |
|
123
|
0 |
0 |
if (next_squote_len > 0) { |
|
124
|
0 |
0 |
uint8_t next_char = (size > 1+next_squote_len) ? text[1+next_squote_len] : 0; |
|
125
|
0 |
0 |
if (smartypants_quotes(ob, previous_char, next_char, 'd', &smrt->in_dquote)) |
|
130
|
0 |
0 |
if ((t1 == 's' || t1 == 't' || t1 == 'm' || t1 == 'd') && |
|
|
0 |
0 |
if ((t1 == 's' || t1 == 't' || t1 == 'm' || t1 == 'd') && |
|
|
0 |
0 |
if ((t1 == 's' || t1 == 't' || t1 == 'm' || t1 == 'd') && |
|
131
|
0 |
0 |
(size == 3 || word_boundary(text[2]))) { |
|
137
|
0 |
0 |
if (size >= 3) { |
|
140
|
0 |
0 |
if (((t1 == 'r' && t2 == 'e') || |
|
|
0 |
0 |
if (((t1 == 'r' && t2 == 'e') || |
|
141
|
0 |
0 |
(t1 == 'l' && t2 == 'l') || |
|
142
|
0 |
0 |
(t1 == 'v' && t2 == 'e')) && |
|
143
|
0 |
0 |
(size == 4 || word_boundary(text[3]))) { |
|
150
|
0 |
0 |
if (smartypants_quotes(ob, previous_char, size > 0 ? text[1] : 0, 's', &smrt->in_squote)) |
|
|
0 |
0 |
if (smartypants_quotes(ob, previous_char, size > 0 ? text[1] : 0, 's', &smrt->in_squote)) |
|
168
|
0 |
0 |
if (size >= 3) { |
|
172
|
0 |
0 |
if (t1 == 'c' && t2 == ')') { |
|
177
|
0 |
0 |
if (t1 == 'r' && t2 == ')') { |
|
182
|
0 |
0 |
if (size >= 4 && t1 == 't' && t2 == 'm' && text[3] == ')') { |
|
|
0 |
0 |
if (size >= 4 && t1 == 't' && t2 == 'm' && text[3] == ')') { |
|
|
0 |
0 |
if (size >= 4 && t1 == 't' && t2 == 'm' && text[3] == ')') { |
|
196
|
0 |
0 |
if (size >= 3 && text[1] == '-' && text[2] == '-') { |
|
|
0 |
0 |
if (size >= 3 && text[1] == '-' && text[2] == '-') { |
|
|
0 |
0 |
if (size >= 3 && text[1] == '-' && text[2] == '-') { |
|
201
|
0 |
0 |
if (size >= 2 && text[1] == '-') { |
|
|
0 |
0 |
if (size >= 2 && text[1] == '-') { |
|
215
|
0 |
0 |
if (size >= 6 && memcmp(text, """, 6) == 0) { |
|
|
0 |
0 |
if (size >= 6 && memcmp(text, """, 6) == 0) { |
|
216
|
0 |
0 |
if (smartypants_quotes(ob, previous_char, size >= 7 ? text[6] : 0, 'd', &smrt->in_dquote)) |
|
|
0 |
0 |
if (smartypants_quotes(ob, previous_char, size >= 7 ? text[6] : 0, 'd', &smrt->in_dquote)) |
|
221
|
0 |
0 |
if (len > 0) { |
|
225
|
0 |
0 |
if (size >= 4 && memcmp(text, "", 4) == 0) |
|
|
0 |
0 |
if (size >= 4 && memcmp(text, "", 4) == 0) |
|
236
|
0 |
0 |
if (size >= 3 && text[1] == '.' && text[2] == '.') { |
|
|
0 |
0 |
if (size >= 3 && text[1] == '.' && text[2] == '.') { |
|
|
0 |
0 |
if (size >= 3 && text[1] == '.' && text[2] == '.') { |
|
241
|
0 |
0 |
if (size >= 5 && text[1] == ' ' && text[2] == '.' && text[3] == ' ' && text[4] == '.') { |
|
|
0 |
0 |
if (size >= 5 && text[1] == ' ' && text[2] == '.' && text[3] == ' ' && text[4] == '.') { |
|
|
0 |
0 |
if (size >= 5 && text[1] == ' ' && text[2] == '.' && text[3] == ' ' && text[4] == '.') { |
|
|
0 |
0 |
if (size >= 5 && text[1] == ' ' && text[2] == '.' && text[3] == ' ' && text[4] == '.') { |
|
|
0 |
0 |
if (size >= 5 && text[1] == ' ' && text[2] == '.' && text[3] == ' ' && text[4] == '.') { |
|
254
|
0 |
0 |
if (size >= 2 && text[1] == '`') { |
|
|
0 |
0 |
if (size >= 2 && text[1] == '`') { |
|
255
|
0 |
0 |
if (smartypants_quotes(ob, previous_char, size >= 3 ? text[2] : 0, 'd', &smrt->in_dquote)) |
|
|
0 |
0 |
if (smartypants_quotes(ob, previous_char, size >= 3 ? text[2] : 0, 'd', &smrt->in_dquote)) |
|
267
|
0 |
0 |
if (word_boundary(previous_char) && size >= 3) { |
|
|
0 |
0 |
if (word_boundary(previous_char) && size >= 3) { |
|
268
|
0 |
0 |
if (text[0] == '1' && text[1] == '/' && text[2] == '2') { |
|
|
0 |
0 |
if (text[0] == '1' && text[1] == '/' && text[2] == '2') { |
|
|
0 |
0 |
if (text[0] == '1' && text[1] == '/' && text[2] == '2') { |
|
269
|
0 |
0 |
if (size == 3 || word_boundary(text[3])) { |
|
|
0 |
0 |
if (size == 3 || word_boundary(text[3])) { |
|
275
|
0 |
0 |
if (text[0] == '1' && text[1] == '/' && text[2] == '4') { |
|
|
0 |
0 |
if (text[0] == '1' && text[1] == '/' && text[2] == '4') { |
|
|
0 |
0 |
if (text[0] == '1' && text[1] == '/' && text[2] == '4') { |
|
276
|
0 |
0 |
if (size == 3 || word_boundary(text[3]) || |
|
|
0 |
0 |
if (size == 3 || word_boundary(text[3]) || |
|
|
0 |
0 |
if (size == 3 || word_boundary(text[3]) || |
|
277
|
0 |
0 |
(size >= 5 && tolower(text[3]) == 't' && tolower(text[4]) == 'h')) { |
|
|
0 |
0 |
(size >= 5 && tolower(text[3]) == 't' && tolower(text[4]) == 'h')) { |
|
283
|
0 |
0 |
if (text[0] == '3' && text[1] == '/' && text[2] == '4') { |
|
|
0 |
0 |
if (text[0] == '3' && text[1] == '/' && text[2] == '4') { |
|
|
0 |
0 |
if (text[0] == '3' && text[1] == '/' && text[2] == '4') { |
|
284
|
0 |
0 |
if (size == 3 || word_boundary(text[3]) || |
|
|
0 |
0 |
if (size == 3 || word_boundary(text[3]) || |
|
|
0 |
0 |
if (size == 3 || word_boundary(text[3]) || |
|
285
|
0 |
0 |
(size >= 6 && tolower(text[3]) == 't' && tolower(text[4]) == 'h' && tolower(text[5]) == 's')) { |
|
|
0 |
0 |
(size >= 6 && tolower(text[3]) == 't' && tolower(text[4]) == 'h' && tolower(text[5]) == 's')) { |
|
|
0 |
0 |
(size >= 6 && tolower(text[3]) == 't' && tolower(text[4]) == 'h' && tolower(text[5]) == 's')) { |
|
300
|
0 |
0 |
if (!smartypants_quotes(ob, previous_char, size > 0 ? text[1] : 0, 'd', &smrt->in_dquote)) |
|
|
0 |
0 |
if (!smartypants_quotes(ob, previous_char, size > 0 ? text[1] : 0, 'd', &smrt->in_dquote)) |
|
317
|
0 |
0 |
if (i + 4 < size && memcmp(text + i, "", 3) != 0) |
|
|
0 |
0 |
while (i + 3 < size && memcmp(text + i, "-->", 3) != 0) |
|
326
|
0 |
0 |
while (i < size && text[i] != '>') |
|
|
0 |
0 |
while (i < size && text[i] != '>') |
|
329
|
0 |
0 |
for (tag = 0; tag < skip_tags_count; ++tag) { |
|
330
|
0 |
0 |
if (hoedown_html_is_tag(text, size, skip_tags[tag]) == HOEDOWN_HTML_TAG_OPEN) |
|
334
|
0 |
0 |
if (tag < skip_tags_count) { |
|
336
|
0 |
0 |
while (i < size && text[i] != '<') |
|
|
0 |
0 |
while (i < size && text[i] != '<') |
|
339
|
0 |
0 |
if (i == size) |
|
342
|
0 |
0 |
if (hoedown_html_is_tag(text + i, size - i, skip_tags[tag]) == HOEDOWN_HTML_TAG_CLOSE) |
|
348
|
0 |
0 |
while (i < size && text[i] != '>') |
|
|
0 |
0 |
while (i < size && text[i] != '>') |
|
359
|
0 |
0 |
if (size < 2) |
|
362
|
0 |
0 |
switch (text[1]) { |
|
|
0 |
0 |
switch (text[1]) { |
|
414
|
0 |
0 |
if (!text) |
|
419
|
0 |
0 |
for (i = 0; i < size; ++i) { |
|
424
|
0 |
0 |
while (i < size && (action = smartypants_cb_chars[text[i]]) == 0) |
|
|
0 |
0 |
while (i < size && (action = smartypants_cb_chars[text[i]]) == 0) |
|
427
|
0 |
0 |
if (i > org) |
|
430
|
0 |
0 |
if (i < size) { |
|
431
|
0 |
0 |
i += smartypants_cb_ptrs[(int)action] |