cmark
My personal build of CMark ✏️
scanners.h (2685B)
1 #include "cmark.h" 2 #include "chunk.h" 3 4 #ifdef __cplusplus 5 extern "C" { 6 #endif 7 8 bufsize_t _scan_at(bufsize_t (*scanner)(const unsigned char *), cmark_chunk *c, 9 bufsize_t offset); 10 bufsize_t _scan_scheme(const unsigned char *p); 11 bufsize_t _scan_autolink_uri(const unsigned char *p); 12 bufsize_t _scan_autolink_email(const unsigned char *p); 13 bufsize_t _scan_html_tag(const unsigned char *p); 14 bufsize_t _scan_html_block_start(const unsigned char *p); 15 bufsize_t _scan_html_block_start_7(const unsigned char *p); 16 bufsize_t _scan_html_block_end_1(const unsigned char *p); 17 bufsize_t _scan_html_block_end_2(const unsigned char *p); 18 bufsize_t _scan_html_block_end_3(const unsigned char *p); 19 bufsize_t _scan_html_block_end_4(const unsigned char *p); 20 bufsize_t _scan_html_block_end_5(const unsigned char *p); 21 bufsize_t _scan_link_title(const unsigned char *p); 22 bufsize_t _scan_spacechars(const unsigned char *p); 23 bufsize_t _scan_atx_heading_start(const unsigned char *p); 24 bufsize_t _scan_setext_heading_line(const unsigned char *p); 25 bufsize_t _scan_open_code_fence(const unsigned char *p); 26 bufsize_t _scan_close_code_fence(const unsigned char *p); 27 bufsize_t _scan_entity(const unsigned char *p); 28 bufsize_t _scan_dangerous_url(const unsigned char *p); 29 30 #define scan_scheme(c, n) _scan_at(&_scan_scheme, c, n) 31 #define scan_autolink_uri(c, n) _scan_at(&_scan_autolink_uri, c, n) 32 #define scan_autolink_email(c, n) _scan_at(&_scan_autolink_email, c, n) 33 #define scan_html_tag(c, n) _scan_at(&_scan_html_tag, c, n) 34 #define scan_html_block_start(c, n) _scan_at(&_scan_html_block_start, c, n) 35 #define scan_html_block_start_7(c, n) _scan_at(&_scan_html_block_start_7, c, n) 36 #define scan_html_block_end_1(c, n) _scan_at(&_scan_html_block_end_1, c, n) 37 #define scan_html_block_end_2(c, n) _scan_at(&_scan_html_block_end_2, c, n) 38 #define scan_html_block_end_3(c, n) _scan_at(&_scan_html_block_end_3, c, n) 39 #define scan_html_block_end_4(c, n) _scan_at(&_scan_html_block_end_4, c, n) 40 #define scan_html_block_end_5(c, n) _scan_at(&_scan_html_block_end_5, c, n) 41 #define scan_link_title(c, n) _scan_at(&_scan_link_title, c, n) 42 #define scan_spacechars(c, n) _scan_at(&_scan_spacechars, c, n) 43 #define scan_atx_heading_start(c, n) _scan_at(&_scan_atx_heading_start, c, n) 44 #define scan_setext_heading_line(c, n) \ 45 _scan_at(&_scan_setext_heading_line, c, n) 46 #define scan_open_code_fence(c, n) _scan_at(&_scan_open_code_fence, c, n) 47 #define scan_close_code_fence(c, n) _scan_at(&_scan_close_code_fence, c, n) 48 #define scan_entity(c, n) _scan_at(&_scan_entity, c, n) 49 #define scan_dangerous_url(c, n) _scan_at(&_scan_dangerous_url, c, n) 50 51 #ifdef __cplusplus 52 } 53 #endif