#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

#181 in Encoding

Download history 1284/week @ 2024-07-29 1192/week @ 2024-08-05 1466/week @ 2024-08-12 1440/week @ 2024-08-19 1209/week @ 2024-08-26 1430/week @ 2024-09-02 1193/week @ 2024-09-09 1136/week @ 2024-09-16 1835/week @ 2024-09-23 2418/week @ 2024-09-30 1898/week @ 2024-10-07 1818/week @ 2024-10-14 1692/week @ 2024-10-21 1714/week @ 2024-10-28 1673/week @ 2024-11-04 1075/week @ 2024-11-11

6,306 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