utf16_iter provides iteration by char
over potentially-invalid UTF-16 &[u16]
such that UTF-16 errors are replaced with the REPLACEMENT CHARACTER.
Iteration by Result<char,Utf16CharsError>
is provided as an alternative that
distinguishes unpaired surrogates from U+FFFD appearing in the input.
This is a no_std
crate.
TL;DR: Apache-2.0 OR MIT
Please see the file named COPYRIGHT.
Generated API documentation is available online.
- Add iteration by
Result<char,Utf16CharsError>
.
char_indices()
implementation.
- Tweak inlining.
- Implemented
DoubleEndedIterator
.
- Added
as_slice()
method.
The initial release.