code wiki / (root) / nx_html_entities.nx

nx_html_entities.nx

buildroot/runtime/nx_html_entities.nx

34246 B350 linesdepth 2pulls 2 transitivereach 293 importersview sourcekind librarytopic html
docsdependenciesstructsconstsfunctions

about

nx_html_entities.nx -- data-driven HTML named-entity table for the sovereign browser's text renderer (X-HTML-ENT-001 follow-on: the named half). 110 common-on-the-web entities, codepoints sourced AUTHORITATIVELY from python html.entities.html5 (verified, not from memory). Single-responsibility organ (rule 9) so the table has ONE home and is KAT-testable on its own; nx_html_to_text imports it. expect_exit: 0 license_tier: ORIGINAL genealogy_id: international-research-sources/whatwg/html5-named-charrefs

dependencies 1 imports · 11 importers

nx_syscalls.nx nx_html_entities.nx nx_browse.nx nx_browser.nx nx_browser_render.nx nx_fold_punct_gate.nx nx_html_decode_entities_test.nx nx_html_table.nx nx_html_to_text.nx nx_js_eval.nx nx_real_page_gate.nx nx_render_html.nx

diagram shows first 10 each side; +0 more imports, +1 more importers in the complete lists below.

imports: nx_syscalls.nx

imported by: nx_browse.nxnx_browser.nxnx_browser_render.nxnx_fold_punct_gate.nxnx_html_decode_entities_test.nxnx_html_table.nxnx_html_to_text.nxnx_js_eval.nxnx_real_page_gate.nxnx_render_html.nxnx_wiki_boxdump.nx

structs

none

consts

none

functions

15func nx_html_entity_lookup(name: *u8, nlen: i64, out_cp: *i64) -> i64
132func _ent_utf8(out: *u8, o0: i64, cap: i64, cp: i64) -> i64
155func _fold_cp(cp: i64) -> i64
called by 1: nx_fold_ascii
248func nx_fold_ascii(src: *u8, off: i64, len: i64, out: *u8, out_cap: i64) -> i64
279func nx_html_decode_entities(src: *u8, off: i64, len: i64, out: *u8, out_cap: i64) -> i64