Expand description
C ABI for the 32-bit game exe. Header: include/hpl_cjk_text.h (cbindgen, checked by
tests/header.rs). Rules: fixed-width types only, no panic crosses the boundary, Rust
never keeps caller pointers.
Structs§
- HplCjk
Decode Result - Result of
hpl_cjk_decode_utf8.
Constants§
- HPL_
CJK_ ABI_ VERSION - Bumped whenever an exported signature or struct changes.
- HPL_
CJK_ BUFFER_ TOO_ SMALL dst_capwas too small;out.lenholds the length needed.- HPL_
CJK_ NULL_ POINTER - A required pointer was null.
- HPL_
CJK_ OK - Success.
- HPL_
CJK_ PANIC - Internal error (a caught panic).
Functions§
- hpl_
cjk_ abi_ version - hpl_
cjk_ break_ allowed - 1 if a line may break between UTF-16 code units
prevandnext, else 0. - hpl_
cjk_ ⚠decode_ utf8 - Decodes UTF-8 into BMP-only UTF-16.
dst_cap >= src_lenalways suffices. - hpl_
cjk_ is_ cjk - 1 if
ccounts as CJK for line breaking, else 0.