code wiki / (root) / nx_html_links.nx

nx_html_links.nx

buildroot/runtime/nx_html_links.nx

3624 B88 linesdepth 2pulls 2 transitivereach 2 importersview sourcekind librarytopic html
docsdependenciesstructsconstsfunctions

about

nx_html_links.nx -- LINK EXTRACTION kernel: the crawler's discovery primitive. module: nishi-core.search.html_links depends: (none beyond syscalls) -- pure scan, no allocation surprises capability: CORE_COMPUTE Scans HTML for href= attribute values (case-insensitive, ' or " quoted) and collects ABSOLUTE https:// URLs into a caller-provided flat store (null-terminated each, offsets out). Relative/protocol-relative/http/ fragment links are skipped at this layer -- the crawler follows the validated-HTTPS web only; duplicates are the CALLER's policy (dedupe is a crawl decision, not a parse decision). KATs: nx_html_links_test.nx.

dependencies 1 imports · 2 importers

nx_syscalls.nx nx_html_links.nx nx_entity_discover.nx nx_html_links_test.nx

imports: nx_syscalls.nx

imported by: nx_entity_discover.nxnx_html_links_test.nx

structs

none

consts

none

functions

16func hl_lc(c: i64) -> i64 { if c >= 0x41 { if c <= 0x5A { return c + 0x20 } } return c }
19func hl_is_href(html: *u8, n: i64, i: i64) -> i64
called by 1: nx_html_links calls 1: hl_lc
30func hl_is_https(html: *u8, n: i64, p: i64) -> i64
called by 1: nx_html_links calls 1: hl_lc