#utf-8 #iterator #bufread #read-char

utf8-chars

Char-by-char iterator and read_char method for BufRead

34 releases (14 stable)

3.0.5 Oct 19, 2024
3.0.3 May 18, 2024
3.0.2 Feb 19, 2024
3.0.1 Aug 22, 2023
0.1.2 Sep 30, 2019

#194 in Encoding

Download history 1456/week @ 2025-03-07 1900/week @ 2025-03-14 2010/week @ 2025-03-21 1533/week @ 2025-03-28 1488/week @ 2025-04-04 1507/week @ 2025-04-11 1969/week @ 2025-04-18 1824/week @ 2025-04-25 1519/week @ 2025-05-02 1502/week @ 2025-05-09 1590/week @ 2025-05-16 975/week @ 2025-05-23 1111/week @ 2025-05-30 1132/week @ 2025-06-06 1358/week @ 2025-06-13 1102/week @ 2025-06-20

4,892 downloads per month
Used in 25 crates (18 directly)

MIT/Apache

21KB
331 lines

maintenance: passively maintained

utf8-chars

Char-by-char iterator and read_char method for BufRead.

use std::io::stdin;
use utf8_chars::BufReadCharsExt;

fn main() {
    for c in stdin().lock().chars().map(|x| x.unwrap()) {
        println!("{}", c);
    }
}

Dependencies

~68KB