code wiki / (root) / nx_img_extract_demo.nx

nx_img_extract_demo.nx

buildroot/runtime/nx_img_extract_demo.nx

1433 B30 linesdepth 4pulls 8 transitivereach 0 importersview sourcekind sketch/demotopic img
docsdependenciesstructsconstsfunctions

about

nx_img_extract_demo.nx -- show the parser finding media (image URLs) in HTML.

dependencies 2 imports · 0 importers

nx_str.nx nx_html_extract_imgs.nx nx_img_extract_demo.nx

imports: nx_str.nxnx_html_extract_imgs.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_html_extract_imgs sys_mmap nx_html_cursor_init nx_html_next_token _scan_name _is_name _is_void_element _lc nx_html_is_raw_text_tag _lc ↻ nx_html_consume_raw_text _lc ↻ _is_ws _img_name_eq_img nx_dom_find_attr _dq_strlen _dq_find_substr_ci _dq_byte_eq_ci _dq_lc nx_url_resolve _ur_copy _ur_find_scheme_colon _ur_lc sys_mmap ↻ _ur_resolve_dot_segments _ur_putc _ur_copy ↻ _ur_putc ↻ nx_str_len nx_puts nx_str_len ↻ nx_put_i64 nx_putc nx_putc ↻

structs

none

consts

4const K_MAGIC_8192: i64 = 8192

functions

6func nx_putc(c: i64) -> i64 { let b: *u8 = sys_mmap(1); b[0] = c; sys_write(1, b, 1); return 0 }
called by 2: nx_put_i64main
7func nx_puts(s: *u8) -> i64 { sys_write(1, s, nx_str_len(s)); return 0 }
called by 1: main calls 1: nx_str_len
8func nx_put_i64(n: i64) -> i64
called by 1: main calls 1: nx_putc
16func main() -> i64