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

utf8-chars

Char-by-char iterator and read_char method for BufRead

34 releases (14 stable)

new 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

#175 in Encoding

Download history 1118/week @ 2024-07-02 1257/week @ 2024-07-09 1569/week @ 2024-07-16 1156/week @ 2024-07-23 1337/week @ 2024-07-30 1176/week @ 2024-08-06 1498/week @ 2024-08-13 1411/week @ 2024-08-20 1054/week @ 2024-08-27 1685/week @ 2024-09-03 1076/week @ 2024-09-10 1135/week @ 2024-09-17 2065/week @ 2024-09-24 2268/week @ 2024-10-01 1905/week @ 2024-10-08 1709/week @ 2024-10-15

8,154 downloads per month
Used in 17 crates (13 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

~69KB