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

utf8-chars

Char-by-char iterator and read_char method for BufRead

30 releases (10 stable)

3.0.1 Aug 22, 2023
3.0.0 Jun 23, 2023
2.1.0 May 27, 2023
2.0.3 Dec 11, 2022
0.1.2 Sep 30, 2019

#1 in #chars

Download history 657/week @ 2023-06-02 581/week @ 2023-06-09 1176/week @ 2023-06-16 694/week @ 2023-06-23 550/week @ 2023-06-30 619/week @ 2023-07-07 813/week @ 2023-07-14 728/week @ 2023-07-21 733/week @ 2023-07-28 736/week @ 2023-08-04 873/week @ 2023-08-11 1042/week @ 2023-08-18 1005/week @ 2023-08-25 1023/week @ 2023-09-01 1158/week @ 2023-09-08 1121/week @ 2023-09-15

4,632 downloads per month
Used in 8 crates (7 directly)

MIT/Apache

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

~67KB