pub fn strtr<'a>(s: &'a [u8], from: &[u8], to: &[u8]) -> Cow<'a, [u8]>Expand description
PHP strtr($string, $from, $to): translates each byte of from to the
byte at the same position of to, ignoring the extra bytes of the longer
one. When a byte appears twice in from, the last one wins.