code wiki / _hdl_build / nx_site_import.nx
nx_site_import.nx
buildroot/runtime/_hdl_build/nx_site_import.nx
about
nx_site_import.nx -- the MIGRATION IMPORTER: the no-lock-in CAPABILITY (not architecture). Ingest a foreign site's
HTML (e.g., a Wix/Webflow/any export) and produce our PORTABLE, SOVEREIGN blueprint: title + structure counts +
stripped visible content, with all third-party JS/tracking REMOVED. Lock-in platforms can't import a competitor's
site; we can -- so "no-lock-in" becomes a thing you can DO (migrate TO us from anywhere), measurably better-at-job.
100% sovereign string processing. license_tier: ORIGINAL
dependencies 1 imports · 2 importers
imports: nx_syscalls.nx
imported by: nx_site_import_gate.nxnx_site_migrate.nx
structs
| none |
consts
| 7 | const K_MAGIC_65536: i64 = 65536 |
functions
| 9 | func mi_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 10 | func mi_match_at(h: *u8, i: i64, n: i64, lit: *u8) -> i64 |
| 17 | func mi_find_from(h: *u8, start: i64, n: i64, lit: *u8) -> i64 |
| 24 | func mi_count(h: *u8, n: i64, lit: *u8) -> i64 |
| 32 | func mi_strip_tags(h: *u8, n: i64, out: *u8, cap: i64) -> i64 |
| 59 | func mi_extract_between(h: *u8, n: i64, open: *u8, close: *u8, out: *u8, cap: i64) -> i64 |
| 70 | func mi_w(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 } |
| 71 | func mi_wn(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(fd,"-" as *u8,1)} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1} sys_write(fd,bb,k); return 0 } |
| 74 | func mi_to_blueprint(h: *u8, n: i64, fd: i64) -> i64 |