UTF-8 decode
This crates provides incremental UTF-8 decoders implementing the Iterator trait.
Thoses iterators are wrappers around u8 bytes iterators.
Decoder
The Decoder struct wraps Iterator<Item = u8> iterators.
You can use it, for instance, to decode u8 slices.
extern crate utf8_decode;
use Decoder;
UnsafeDecoder
The UnsafeDecoder wraps Iterator<Item = std::io::Result<u8>> iterators.
You can use it, for instance, to decode UTF-8 encoded files.
extern crate utf8_decode;
use File;
use Read;
use UnsafeDecoder;
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.