Skip to main content

ecgetstr_wordcode

Function ecgetstr_wordcode 

Source
pub fn ecgetstr_wordcode(buf: &[u32], pc: usize) -> (String, usize)
Expand description

P9b decoder (wordcode-pipeline variant): direct port of ecgetstr(Estate s, int dup, int *tokflag) from Src/parse.c:2855-2890. Reads a wordcode at pc, decodes the encoded string back to owned String. Returns (string, pc_after_consumed). Distinct from the existing ecgetstr (which takes a separate strs buffer for text.rs) — this variant uses the live ECSTRS_REVERSE HashMap populated at ecstrcode time.