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

utf8-chars

Char-by-char iterator and read_char method for BufRead

32 releases (12 stable)

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

#191 in Encoding

Download history 942/week @ 2024-03-17 986/week @ 2024-03-24 1297/week @ 2024-03-31 853/week @ 2024-04-07 975/week @ 2024-04-14 1285/week @ 2024-04-21 1142/week @ 2024-04-28 1365/week @ 2024-05-05 1318/week @ 2024-05-12 1087/week @ 2024-05-19 988/week @ 2024-05-26 1687/week @ 2024-06-02 1445/week @ 2024-06-09 1583/week @ 2024-06-16 1307/week @ 2024-06-23 669/week @ 2024-06-30

5,132 downloads per month
Used in 16 crates (12 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

~66KB