is_escaped • returns whether special char at data[loc] is escaped by '\\' */
| 496 | |
| 497 | /* is_escaped • returns whether special char at data[loc] is escaped by '\\' */ |
| 498 | static int |
| 499 | is_escaped(uint8_t *data, size_t loc) |
| 500 | { |
| 501 | size_t i = loc; |
| 502 | while (i >= 1 && data[i - 1] == '\\') |
| 503 | i--; |
| 504 | |
| 505 | /* odd numbers of backslashes escapes data[loc] */ |
| 506 | return (loc - i) % 2; |
| 507 | } |
| 508 | |
| 509 | /* find_emph_char • looks for the next emph uint8_t, skipping other constructs */ |
| 510 | static size_t |
no outgoing calls
no test coverage detected