code wiki / (root) / nx_cite.nx

nx_cite.nx

buildroot/runtime/nx_cite.nx

6328 B136 linesdepth 1pulls 1 transitivereach 0 importersview sourcekind orphan librarytopic cite
docsdependenciesstructsconstsfunctions

about

nx_cite.nx -- WRITING arc, rung W-CITE-1: the CITATION manager (papers cluster). Operator intent: "write research papers". nx_paper_gen already compiles cited papers from measured work; this organ formats a REFERENCE record into the four styles a human author needs: APA 7 / MLA 9 / Chicago (notes-biblio) / IEEE. The reference is a key:value record (operator/lane DATA, the seam) parsed by REUSING nx_scenario's field parser (DRY). v1 scope = a single-author JOURNAL ARTICLE with PRE-SPLIT author name (author_last + author_first) so name parsing is unambiguous. HONEST LIMITS (later rungs): multi-author lists, books/web, and per-style title-case normalization -- this organ does STRUCTURE (order, punctuation, italic markers), not orthography (titles are emitted verbatim). author_last / author_first / year / title / journal / volume / issue / pages Pure integer, NO syscalls. license_tier: ORIGINAL module: nishi-core.write.cite depends: nishi-core.write.scenario capability: WRITE_CITATION

dependencies 1 imports · 0 importers

nx_scenario.nx nx_cite.nx

imports: nx_scenario.nx

imported by: nobody (leaf or entry point)

structs

none

consts

21const CITE_APA: i64 = 0
22const CITE_MLA: i64 = 1
23const CITE_CHICAGO: i64 = 2
24const CITE_IEEE: i64 = 3

functions

27func ct_app_initial(buf: *u8, n: i64, out: *u8, p: i64, cap: i64) -> i64
39func ct_apa(buf: *u8, n: i64, out: *u8, cap: i64) -> i64
62func ct_mla(buf: *u8, n: i64, out: *u8, cap: i64) -> i64
called by 1: ct_format calls 2: sc_app_fieldsc_app_lit
85func ct_chicago(buf: *u8, n: i64, out: *u8, cap: i64) -> i64
called by 1: ct_format calls 2: sc_app_fieldsc_app_lit
108func ct_ieee(buf: *u8, n: i64, out: *u8, cap: i64) -> i64
131func ct_format(buf: *u8, n: i64, style: i64, out: *u8, cap: i64) -> i64