utf8-parser
A stateful one-byte-at-a-time UTF-8 parser. This is useful for things like building characters from bytes pulled from a UART.
Example
use Utf8Parser;
let mut parser = new;
assert!;
assert!;
assert!;
assert_eq!;
Crate Features
std
- Enables the std::error::Error implementation onUtf8ParserError
error_in_core
- Same asstd
, but with core::error::Error. Currently requires Nightly and#![feature(error_in_core)]
. Has no effect if thestd
feature is enabled.
Similar crates
- utf8parse - by the Alacritty project
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option.