fn char_to_utf8_single_buffer_iterator() {
    let mybuffer = [ '\u{7F}', '\u{80}', '\u{81}', '\u{82}' ];
    let mut char_ref_iter = mybuffer.iter();
    let mut parser = FromUnicode::new();
    let mut iterator = parser.char_ref_to_utf8_with_iter(& mut char_ref_iter);
    while let Some(utf8_val) = iterator.next()  {
        println!("{:#02x}", utf8_val);
        println!("{}", iterator.has_invalid_sequence());
    }
}
/// Single buffer iterator based char parsing converting to UTF8
Single buffer iterator based char parsing converting to UTF8
Single buffer iterator based char parsing converting to UTF8
fn char_to_utf8_single_buffer_iterator() {
    let mybuffer = [ '\u{7F}', '\u{80}', '\u{81}', '\u{82}' ];
    let mut char_ref_iter = mybuffer.iter();
    let mut parser = FromUnicode::new();
    let mut iterator = parser.char_ref_to_utf8_with_iter(& mut char_ref_iter);
    while let Some(utf8_val) = iterator.next()  {
        println!("{:#02x}", utf8_val);
        println!("{}", iterator.has_invalid_sequence());
    }
}
fn char_to_utf8_single_buffer_iterator ( ) { let mybuffer = [ '\u{7F}' , '\u{80}' , '\u{81}' , '\u{82}' ] ; let mut char_ref_iter = mybuffer . iter ( ) ; let mut parser = FromUnicode :: new ( ) ; let mut iterator = parser . char_ref_to_utf8_with_iter ( & mut char_ref_iter ) ; while let Some ( utf8_val ) = iterator . next ( ) { println ! ( " " utf8_val ) ; println ! ( " " iterator has_invalid_sequence ( ) ) ; } }
Single buffer iterator based char parsing converting to UTF8
Single buffer iterator based char parsing converting to UTF8