#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

#186 in Encoding

Download history 1136/week @ 2024-11-15 1309/week @ 2024-11-22 1799/week @ 2024-11-29 2595/week @ 2024-12-06 2005/week @ 2024-12-13 1622/week @ 2024-12-20 1668/week @ 2024-12-27 2032/week @ 2025-01-03 1161/week @ 2025-01-10 1076/week @ 2025-01-17 1288/week @ 2025-01-24 2340/week @ 2025-01-31 1854/week @ 2025-02-07 1843/week @ 2025-02-14 1397/week @ 2025-02-21 915/week @ 2025-02-28

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