fn decode_unicode4(it: &mut Iterator<Item = char>) -> Result<char> {
    let mut res = 0u32;

    for x in 0..4u32 {
        let c = it.next().ok_or("expected hex character")?.to_string();
        let c = u32::from_str_radix(&c, 16)?;
        res += c << (4 * (3 - x));
    }

    Ok(::std::char::from_u32(res).ok_or("expected valid character")?)
}
/// Decode the next four characters as a unicode escape sequence.
Decode the next four characters as a unicode escape sequence.
Decode the next four characters as a unicode escape sequence .
fn decode_unicode4(it: &mut Iterator<Item = char>) -> Result<char> {
    let mut res = 0u32;
    for x in 0..4u32 {
        let c = it.next().ok_or("expected hex character")?.to_string();
        let c = u32::from_str_radix(&c, 16)?;
        res += c << (4 * (3 - x));
    }
    Ok(::std::char::from_u32(res).ok_or("expected valid character")?)
}
fn decode_unicode4 ( it : & mut Iterator < Item = char > ) -> Result < char > { let mut res = 0u32 ; for x in 0 .. 4u32 { let c = it . next ( ) . ok_or ( " " ) ? . to_string ( ) ; let c = u32 :: from_str_radix ( & c , 16 ) ? ; res += c << ( 4 * ( 3 - x ) ) ; } Ok ( :: std :: char :: from_u32 ( res ) . ok_or ( " " ) ? ) }
Decode the next four characters as a unicode escape sequence.
Decode the next four characters as a unicode escape sequence .
it
&mut Iterator<Item = char>
it
&mut Iterator<Item = char>