#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

#207 in Encoding

Download history 1393/week @ 2024-08-21 1069/week @ 2024-08-28 1787/week @ 2024-09-04 1066/week @ 2024-09-11 1138/week @ 2024-09-18 2297/week @ 2024-09-25 2087/week @ 2024-10-02 1867/week @ 2024-10-09 2002/week @ 2024-10-16 1417/week @ 2024-10-23 1826/week @ 2024-10-30 1521/week @ 2024-11-06 967/week @ 2024-11-13 1302/week @ 2024-11-20 1459/week @ 2024-11-27 1952/week @ 2024-12-04

5,964 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