#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

#185 in Encoding

Download history 2093/week @ 2024-11-30 2570/week @ 2024-12-07 2096/week @ 2024-12-14 1284/week @ 2024-12-21 1869/week @ 2024-12-28 1875/week @ 2025-01-04 1177/week @ 2025-01-11 1194/week @ 2025-01-18 1176/week @ 2025-01-25 2354/week @ 2025-02-01 2051/week @ 2025-02-08 1672/week @ 2025-02-15 1357/week @ 2025-02-22 1392/week @ 2025-03-01 1438/week @ 2025-03-08 1556/week @ 2025-03-15

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

~68KB