#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

#203 in Encoding

Download history 1778/week @ 2024-10-20 1650/week @ 2024-10-27 1733/week @ 2024-11-03 1092/week @ 2024-11-10 1138/week @ 2024-11-17 1173/week @ 2024-11-24 2232/week @ 2024-12-01 2556/week @ 2024-12-08 2081/week @ 2024-12-15 1242/week @ 2024-12-22 1795/week @ 2024-12-29 1938/week @ 2025-01-05 1116/week @ 2025-01-12 1200/week @ 2025-01-19 1853/week @ 2025-01-26 1524/week @ 2025-02-02

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