• Home
  • Raw
  • Download

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.
33 the I/O convenience functions provided for reading line-by-line quickly.
35 This first example simply shows how to efficiently iterate over lines in stdin,
42 fn main() -> Result<(), Box<dyn Error>> {
43 let stdin = io::stdin();
46 stdin.lock().for_byte_line_with_terminator(|line| {
56 This example shows how to count all of the words (Unicode-aware) in stdin,
57 line-by-line:
63 fn main() -> Result<(), Box<dyn Error>> {
64 let stdin = io::stdin();
66 stdin.lock().for_byte_line_with_terminator(|line| {
75 This example shows how to convert a stream on stdin to uppercase without
76 performing UTF-8 validation _and_ amortizing allocation. On standard ASCII
78 library APIs. (N.B. Any invalid UTF-8 bytes are passed through unchanged.)
84 fn main() -> Result<(), Box<dyn Error>> {
85 let stdin = io::stdin();
89 stdin.lock().for_byte_line_with_terminator(|line| {
100 clusters) from each line, where invalid UTF-8 sequences are generally treated
107 fn main() -> Result<(), Box<dyn Error>> {
108 let stdin = io::stdin();
111 stdin.lock().for_byte_line_with_terminator(|line| {
132 * `std` - **Enabled** by default. This provides APIs that require the standard
135 * `alloc` - **Enabled** by default. This provides APIs that require allocations
137 * `unicode` - **Enabled** by default. This provides APIs that require sizable
140 as UTF-8 decoding is still included. Note that currently, enabling this
143 * `serde` - Enables implementations of serde traits for `BStr`, and also
199 [`Utf8Error`](https://doc.rust-lang.org/std/str/struct.Utf8Error.html) can be
202 …[`unicode-segmentation`](https://unicode-rs.github.io/unicode-segmentation/unicode_segmentation/in…
220 micro-crate ecosystem that appears to be evolving. Namely, it is a goal of
230 * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
231 https://www.apache.org/licenses/LICENSE-2.0)
232 * MIT license ([LICENSE-MIT](LICENSE-MIT) or
238 ([LICENSE-UNICODE](https://www.unicode.org/copyright.html#License)), although