Crates.io | utf8-chars |
lib.rs | utf8-chars |
version | |
source | src |
created_at | 2019-09-05 17:26:32.066706 |
updated_at | 2024-10-19 15:03:33.792912 |
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 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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);
}
}