#utf-8 #iterator #chars #read-char

utf8-chars

Char-by-char iterator and read_char method for BufRead

31 releases (11 stable)

3.0.2 Feb 19, 2024
3.0.1 Aug 22, 2023
3.0.0 Jun 23, 2023
2.1.0 May 27, 2023
0.1.2 Sep 30, 2019

#214 in Encoding

Download history 956/week @ 2024-01-25 1088/week @ 2024-02-01 1401/week @ 2024-02-08 1196/week @ 2024-02-15 1852/week @ 2024-02-22 1383/week @ 2024-02-29 1395/week @ 2024-03-07 1150/week @ 2024-03-14 878/week @ 2024-03-21 1034/week @ 2024-03-28 1162/week @ 2024-04-04 895/week @ 2024-04-11 1037/week @ 2024-04-18 1321/week @ 2024-04-25 1223/week @ 2024-05-02 1125/week @ 2024-05-09

4,865 downloads per month
Used in 11 crates (10 directly)

MIT/Apache

21KB
329 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

~66KB