nx_html_links.nx
buildroot/runtime/nx_html_links.nx
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
imports: nx_syscalls.nx
imported by: nx_entity_discover.nxnx_html_links_test.nx
structs
| none |
consts
| none |
functions
| 16 | func hl_lc(c: i64) -> i64 { if c >= 0x41 { if c <= 0x5A { return c + 0x20 } } return c } |
| 19 | func hl_is_href(html: *u8, n: i64, i: i64) -> i64 |
| 30 | func hl_is_https(html: *u8, n: i64, p: i64) -> i64 |
| 45 | func nx_html_links(html: *u8, n: i64, store: *u8, store_cap: i64, |