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

Function prefix_quote

libraries/hoedown/src/document.c:1508–1524  ·  view source on GitHub ↗

prefix_quote • returns blockquote prefix length */

Source from the content-addressed store, hash-verified

1506
1507/* prefix_quote • returns blockquote prefix length */
1508static size_t
1509prefix_quote(uint8_t *data, size_t size)
1510{
1511 size_t i = 0;
1512 if (i < size && data[i] == ' ') i++;
1513 if (i < size && data[i] == ' ') i++;
1514 if (i < size && data[i] == ' ') i++;
1515
1516 if (i < size && data[i] == '>') {
1517 if (i + 1 < size && data[i + 1] == ' ')
1518 return i + 2;
1519
1520 return i + 1;
1521 }
1522
1523 return 0;
1524}
1525
1526/* prefix_code • returns prefix length for block code*/
1527static size_t

Callers 3

parse_blockquoteFunction · 0.85
parse_paragraphFunction · 0.85
parse_blockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected