Crate decoded_char

Source
Expand description

This is a very simple utility crate that provides a wrapper over char values, DecodedChar, additionally storing the original byte length of the character in the encoded source file.

It also provides wrappers around char iterators to produce DecodedChar iterators from UTF-8/16 encoded sources.

Structs§

DecodedChar
Decoded character.
FallibleUtf8Decoded
Iterator wrapper around fallible UTF-8 encoded sources.
FallibleUtf16Decoded
Iterator wrapper around fallible UTF-16 encoded sources.
Utf8Decoded
Iterator wrapper around UTF-8 encoded sources.
Utf16Decoded
Iterator wrapper around UTF-16 encoded sources.

Traits§

DecodedChars
Extension for str providing the decoded_char method.