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

utf8-chars

Char-by-char iterator and read_char method for BufRead

32 releases (12 stable)

new 3.0.3 May 18, 2024
3.0.2 Feb 19, 2024
3.0.1 Aug 22, 2023
3.0.0 Jun 23, 2023
0.1.2 Sep 30, 2019

#212 in Encoding

Download history 898/week @ 2024-01-27 1290/week @ 2024-02-03 1211/week @ 2024-02-10 1383/week @ 2024-02-17 1913/week @ 2024-02-24 1364/week @ 2024-03-02 1248/week @ 2024-03-09 949/week @ 2024-03-16 978/week @ 2024-03-23 1283/week @ 2024-03-30 897/week @ 2024-04-06 938/week @ 2024-04-13 1262/week @ 2024-04-20 1194/week @ 2024-04-27 1334/week @ 2024-05-04 987/week @ 2024-05-11

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

MIT/Apache

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