Lines Matching +full:- +full:- +full:stdin
4 their use as byte strings, where byte strings are _conventionally_ UTF-8. This
6 not required to be valid UTF-8, but may be fully or partially valid UTF-8.
20 <https://docs.rs/bstr/1.*/bstr/#when-should-i-use-byte-strings>.
23 incorrect to require valid UTF-8.
39 the I/O convenience functions provided for reading line-by-line quickly.
41 This first example simply shows how to efficiently iterate over lines in stdin,
48 fn main() -> Result<(), Box<dyn Error>> {
49 let stdin = io::stdin();
52 stdin.lock().for_byte_line_with_terminator(|line| {
62 This example shows how to count all of the words (Unicode-aware) in stdin,
63 line-by-line:
69 fn main() -> Result<(), Box<dyn Error>> {
70 let stdin = io::stdin();
72 stdin.lock().for_byte_line_with_terminator(|line| {
81 This example shows how to convert a stream on stdin to uppercase without
82 performing UTF-8 validation _and_ amortizing allocation. On standard ASCII
84 library APIs. (N.B. Any invalid UTF-8 bytes are passed through unchanged.)
90 fn main() -> Result<(), Box<dyn Error>> {
91 let stdin = io::stdin();
95 stdin.lock().for_byte_line_with_terminator(|line| {
106 clusters) from each line, where invalid UTF-8 sequences are generally treated
113 fn main() -> Result<(), Box<dyn Error>> {
114 let stdin = io::stdin();
117 stdin.lock().for_byte_line_with_terminator(|line| {
138 * `std` - **Enabled** by default. This provides APIs that require the standard
141 * `alloc` - **Enabled** by default. This provides APIs that require allocations
143 * `unicode` - **Enabled** by default. This provides APIs that require sizable
146 as UTF-8 decoding is still included. Note that currently, enabling this
149 * `serde` - Enables implementations of serde traits for `BStr`, and also
205 [`Utf8Error`](https://doc.rust-lang.org/std/str/struct.Utf8Error.html) can be
208 …[`unicode-segmentation`](https://unicode-rs.github.io/unicode-segmentation/unicode_segmentation/in…
226 micro-crate ecosystem that appears to be evolving. Namely, it is a goal of
236 * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
237 https://www.apache.org/licenses/LICENSE-2.0)
238 * MIT license ([LICENSE-MIT](LICENSE-MIT) or
244 ([LICENSE-UNICODE](https://www.unicode.org/copyright.html#License)), although