Crates.io | utf8-chars |
lib.rs | utf8-chars |
version | 3.0.3 |
source | src |
created_at | 2019-09-05 17:26:32.066706 |
updated_at | 2024-05-18 10:15:12.571766 |
description | Char-by-char iterator and `read_char` method for `BufRead`. |
homepage | |
repository | https://github.com/A1-Triard/utf8-chars |
max_upload_size | |
id | 162476 |
size | 21,560 |
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);
}
}