#utf-8 #iterator #chars #read-char

utf8-chars

Char-by-char iterator and read_char method for BufRead

31 releases (11 stable)

3.0.2 Feb 19, 2024
3.0.1 Aug 22, 2023
3.0.0 Jun 23, 2023
2.1.0 May 27, 2023
0.1.2 Sep 30, 2019

#191 in Encoding

Download history 653/week @ 2023-12-18 251/week @ 2023-12-25 1040/week @ 2024-01-01 1102/week @ 2024-01-08 681/week @ 2024-01-15 897/week @ 2024-01-22 973/week @ 2024-01-29 1158/week @ 2024-02-05 1169/week @ 2024-02-12 1937/week @ 2024-02-19 1390/week @ 2024-02-26 1404/week @ 2024-03-04 1223/week @ 2024-03-11 918/week @ 2024-03-18 994/week @ 2024-03-25 1735/week @ 2024-04-01

4,919 downloads per month
Used in 11 crates (10 directly)

MIT/Apache

21KB
329 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

~66KB