#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

#200 in Encoding

Download history 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 1117/week @ 2024-11-18 1232/week @ 2024-11-25 2407/week @ 2024-12-02 2536/week @ 2024-12-09 2007/week @ 2024-12-16 1268/week @ 2024-12-23 1744/week @ 2024-12-30 1871/week @ 2025-01-06 1094/week @ 2025-01-13 1234/week @ 2025-01-20

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