#utf-8 #iterator #chars #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

#197 in Encoding

Download history 1105/week @ 2024-09-14 1540/week @ 2024-09-21 2260/week @ 2024-09-28 2221/week @ 2024-10-05 1732/week @ 2024-10-12 1885/week @ 2024-10-19 1544/week @ 2024-10-26 1820/week @ 2024-11-02 1080/week @ 2024-11-09 1114/week @ 2024-11-16 1204/week @ 2024-11-23 2093/week @ 2024-11-30 2570/week @ 2024-12-07 2096/week @ 2024-12-14 1284/week @ 2024-12-21 1473/week @ 2024-12-28

7,845 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