pub fn ecgetstr_wordcode(buf: &[u32], pc: usize) -> (String, usize)Expand description
Port of ecgetstr from Src/parse.c:2855 — C decl ecgetstr(Estate s, int dup, int *tokflag). Rust fn ecgetstr_wordcode is the wordcode-pipeline decoder variant; the AST-side ecgetstr is at parse.rs:3869.
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.