#utf-8 #iterator #char #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

#176 in Encoding

Download history 2365/week @ 2025-01-29 1478/week @ 2025-02-05 2036/week @ 2025-02-12 1493/week @ 2025-02-19 1234/week @ 2025-02-26 1414/week @ 2025-03-05 1702/week @ 2025-03-12 2142/week @ 2025-03-19 1680/week @ 2025-03-26 1488/week @ 2025-04-02 1431/week @ 2025-04-09 1830/week @ 2025-04-16 1727/week @ 2025-04-23 1958/week @ 2025-04-30 1357/week @ 2025-05-07 1368/week @ 2025-05-14

6,923 downloads per month
Used in 25 crates (18 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