MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / is_escaped

Function is_escaped

libraries/hoedown/src/document.c:498–507  ·  view source on GitHub ↗

is_escaped • returns whether special char at data[loc] is escaped by '\\' */

Source from the content-addressed store, hash-verified

496
497/* is_escaped • returns whether special char at data[loc] is escaped by '\\' */
498static int
499is_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 */
510static size_t

Callers 3

find_emph_charFunction · 0.85
parse_mathFunction · 0.85
char_linkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected