MCPcopy Create free account
hub / github.com/commonmark/cmark / cmark_parse_document

Function cmark_parse_document

src/blocks.c:561–570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561cmark_node *cmark_parse_document(const char *buffer, size_t len, int options) {
562 cmark_parser *parser = cmark_parser_new(options);
563 cmark_node *document;
564
565 S_parser_feed(parser, (const unsigned char *)buffer, len, true);
566
567 document = cmark_parser_finish(parser);
568 cmark_parser_free(parser);
569 return document;
570}
571
572void cmark_parser_feed(cmark_parser *parser, const char *buffer, size_t len) {
573 S_parser_feed(parser, (const unsigned char *)buffer, len, false);

Callers 14

accessorsFunction · 0.85
free_parentFunction · 0.85
iteratorFunction · 0.85
iterator_deleteFunction · 0.85
render_htmlFunction · 0.85
render_xmlFunction · 0.85
render_manFunction · 0.85
render_latexFunction · 0.85
render_commonmarkFunction · 0.85
source_posFunction · 0.85
source_pos_inlinesFunction · 0.85
ref_source_posFunction · 0.85

Calls 4

cmark_parser_newFunction · 0.85
S_parser_feedFunction · 0.85
cmark_parser_finishFunction · 0.85
cmark_parser_freeFunction · 0.85

Tested by

no test coverage detected