#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

#184 in Encoding

Download history 1320/week @ 2024-11-21 1647/week @ 2024-11-28 2352/week @ 2024-12-05 2319/week @ 2024-12-12 1664/week @ 2024-12-19 1635/week @ 2024-12-26 1871/week @ 2025-01-02 1409/week @ 2025-01-09 1069/week @ 2025-01-16 1276/week @ 2025-01-23 2304/week @ 2025-01-30 1731/week @ 2025-02-06 1929/week @ 2025-02-13 1350/week @ 2025-02-20 1294/week @ 2025-02-27 1388/week @ 2025-03-06

6,393 downloads per month
Used in 21 crates (16 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