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

Function is_empty

libraries/hoedown/src/document.c:1346–1356  ·  view source on GitHub ↗

is_empty • returns the line length when it is empty, 0 otherwise */

Source from the content-addressed store, hash-verified

1344
1345/* is_empty • returns the line length when it is empty, 0 otherwise */
1346static size_t
1347is_empty(const uint8_t *data, size_t size)
1348{
1349 size_t i;
1350
1351 for (i = 0; i < size && data[i] != '\n'; i++)
1352 if (data[i] != ' ')
1353 return 0;
1354
1355 return i + 1;
1356}
1357
1358/* is_hrule • returns whether a line is a horizontal rule */
1359static int

Callers 10

parse_blockquoteFunction · 0.85
parse_paragraphFunction · 0.85
parse_fencedcodeFunction · 0.85
parse_blockcodeFunction · 0.85
parse_listitemFunction · 0.85
htmlblock_is_endFunction · 0.85
parse_htmlblockFunction · 0.85
parse_blockFunction · 0.85
is_footnoteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected