pub fn varexpand(s: &str, mode: u32) -> String
Expands ${x?then:else} variable expressions according to mode execution bits, matching varexpand in softmagic.c.
${x?then:else}
varexpand
softmagic.c